Torus[{x,y,z},{rinner,router}]
{x,y,z}を中心とする,内径 rinner,外径 routerのトーラスを表す.
Torus
Torus[{x,y,z},{rinner,router}]
{x,y,z}を中心とする,内径 rinner,外径 routerのトーラスを表す.
詳細とオプション
- Torusは回転のトーラスとしても知られている.
- Torusは幾何学的領域としても3Dグラフィックスプリミティブとしても使うことができる.
- Torus[]はTorus[{0,0,0},{1/2,1}]に等しい.
- トーラスはシェル
を表す. - トーラスはGraphics3Dで使うことができる.
- グラフィックスの描画は,FaceForm,Specularity,Opacity,色等の指示子の影響を受ける.
例題
すべて開く すべて閉じる例 (2)
Graphics3D[Torus[]]Area[Torus[{Subscript[c, 1], Subscript[c, 2], Subscript[c, 3]}, {Subscript[r, inner], Subscript[r, outer]}]]RegionCentroid[Torus[{Subscript[c, 1], Subscript[c, 2], Subscript[c, 3]}, {Subscript[r, inner], Subscript[r, outer]}]]スコープ (18)
グラフィックス (9)
指定 (4)
Graphics3D[{Opacity[0.5], Torus[{0, 0, 0}, {1 / 2, 1}]}]Graphics3D[{Opacity[0.5], Torus[{0, 0, 0}, {1 / 2, 1}], FilledTorus[{3, 0, 0}, {1 / 2, 2}]}]Graphics3D[{FaceForm[Yellow, Blue], Torus[{0, 0, 0}, {1 / 2, 1}], FaceForm[Yellow, Blue], FilledTorus[{2, 0, 0}, {1 / 4, 1}]}, PlotRange -> {{-1, 3}, {-.2, 1}, {-1, 1}}]Graphics3D[{Opacity[0.5], Torus[]}, Axes -> True]スタイル付け (4)
Table[Graphics3D[{Opacity[0.5], c, Torus[]}], {c, {Red, Green, Blue, Yellow}}]FaceFormを使って前面と背面に異なる特性が指定できる:
Graphics3D[{FaceForm[Yellow, Blue], Torus[]}, PlotRange -> {{-1, 1}, {-.3, 1}, {-1, 1}}]Table[Graphics3D[{Orange, Specularity[White, n], Opacity[0.5], Torus[]}], {n, {5, 20, 100}}]Graphics3D[{Glow[Red], White, Opacity[0.5], Torus[]}]Opacityは表面の不透明度を指定する:
Table[Graphics3D[{Opacity[o], Torus[]}], {o, {0.3, 0.5, 0.9}}]座標 (1)
点はDynamicでもよい:
DynamicModule[{x}, {Slider[Dynamic[x], {-0.5, 0.5}], Graphics3D[{Torus[], Torus[Dynamic[{x, 1, 1}], {1 / 8, 1 / 4}]}]}]領域 (9)
RegionEmbeddingDimension[Torus[{Subscript[c, 1], Subscript[c, 2], Subscript[c, 3]}, {Subscript[``r``, ``inner``], Subscript[``r``, ``outer``]}]]RegionDimension[Torus[{Subscript[c, 1], Subscript[c, 2], Subscript[c, 3]}, {Subscript[``r``, ``inner``], Subscript[``r``, ``outer``]}]]ℛ = Torus[{0, 0, 0}, {1 / 2, 1}];{RegionMember[ℛ, {1, 0, 0}], RegionMember[ℛ, {0, 0, 0}], RegionMember[ℛ, {1, 1, 1}]}RegionMember[Torus[{Subscript[c, 1], Subscript[c, 2], Subscript[c, 3]}, {Subscript[``r``, ``inner``], Subscript[``r``, ``outer``]}], {x, y, z}]ℛ = Torus[{0, 0, 0}, {1 / 2, 1}];{Area[ℛ], RegionMeasure[ℛ]}c = RegionCentroid[ℛ]Graphics3D[{{Opacity[0.5], LightBlue, ℛ}, {PointSize[Large], Red, Point[c]}}]ℛ = Torus[{0, 0, 0}, {3 / 4, 1}];{RegionDistance[ℛ, {1, 0, 0}], RegionDistance[ℛ, {0, 0, 0}], RegionDistance[ℛ, {1, 1, 1}]}ContourPlot3D[Evaluate@RegionDistance[ℛ, {x, y, z}], {x, -2, 2}, {y, 0, 2}, {z, -2, 2}, Mesh -> None, Contours -> {0.25, 0.5, 1}, BoxRatios -> Automatic]ℛ = Torus[{0, 0, 0}, {1 / 2, 1}];{SignedRegionDistance[ℛ, {1, 0, 0}], SignedRegionDistance[ℛ, {1 / 2, 1 / 2, 0}], SignedRegionDistance[ℛ, {1, 1, 1}]}ℛ = Torus[{0, 0, 0}, {1 / 2, 1}];{RegionNearest[ℛ, {1, 0, 0}], RegionNearest[ℛ, {1 / 2, 1 / 2, 1 / 2}]}spherePoints[{n_, m_}, c_, r_] :=
Flatten[Table[c + r{Cos[k 2π / n]Sin[l π / m], Sin[k 2π / n]Sin[l π / m], Cos[l π / m]}, {k, 0., n - 1}, {l, 0., m - 1}], 1];pl = spherePoints[{16, 8}, RegionCentroid[ℛ], 2];
npl = Table[RegionNearest[ℛ, p], {p, pl}];Legended[Graphics3D[{ℛ, {Thin, Gray, Line[Transpose[{pl, npl}]]}, {Red, Point[pl]}, {PointSize[Medium], Blue, Point[npl]}}, Lighting -> "Neutral", Boxed -> False], PointLegend[{Red, Blue}, {"start", "nearest"}]]BoundedRegionQ[Torus[{Subscript[c, 1], Subscript[c, 2], Subscript[c, 3]}, {Subscript[``r``, ``inner``], Subscript[``r``, ``outer``]}]]RegionBounds[Torus[{0, 0, 0}, {Subscript[``r``, ``inner``], Subscript[``r``, ``outer``]}]]ℛ = Torus[{0, 0, 0}, {1 / 2, 1}];BoundedRegionQ[ℛ]b = RegionBounds[ℛ]Graphics3D[{{EdgeForm[White], Opacity[0.2, Yellow], Cuboid@@Transpose[b]}, ℛ}, Boxed -> False]ℛ = Torus[{1, 2, 3}, {2, 4}];MinValue[{x y z - x y, {x, y, z}∈ℛ}, {x, y, z}]ℛ = Torus[{1, 2, 1}, 3];Reduce[x^2 + y^2 + z^2 == 9 && z^2 == x y + (1/4) && {x, y, z}∈ℛ, {x, y, z}]アプリケーション (2)
Graphics3D[With[{c = ColorData["SouthwestColors"]}, {Opacity[.7], Specularity[White, 20], Table[{c[i / 7], Torus[{Cos[2 Pi i / 6], Sin[2Pi i / 6], 0}, {1 / 4, 1}]}, {i, 6}]}], Lighting -> "Neutral", Boxed -> False, ViewPoint -> Top]Torusを使ってGraphPlot3D内のノードを描画する:
GraphPlot3D[Table[i -> Mod[i ^ 2, 50], {i, 0, 50}], SelfLoopStyle -> None, EdgeShapeFunction -> ({Cylinder[#1, 0.1]}&), VertexShapeFunction -> ({Torus[#, 0.3]}&)]特性と関係 (3)
ContourPlot3Dによって生成されたトーラスの陰的指定:
ContourPlot3D[(-(3/4) + Sqrt[x^2 + y^2])^2 + z^2 == (1/16), {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Mesh -> None]ParametricPlot3Dによって生成されたトーラスのパラメトリック指定:
ParametricPlot3D[{((3/4) + (Cos[ϕ]/4)) Cos[θ], ((3/4) + (Cos[ϕ]/4)) Sin[θ], (Sin[ϕ]/4)}, {ϕ, 0, 2π}, {θ, 0, 2π}, Mesh -> None]TorusはFilledTorusのRegionBoundaryである:
RegionBoundary[FilledTorus[{x, y, z}, r]]おもしろい例題 (3)
Graphics3D[Table[{Opacity[.5, Hue[RandomReal[]]], Rotate[Torus[RandomReal[2, {3}], RandomReal[3 / 4]], RandomReal[{0, 2 Pi}], RandomReal[{-1, 1}, 3]]}, {50}]]Graphics3D[{Specularity[White, 30], Table[With[{x = 2Cos[t], y = 2Sin[t], p = 2Sin[t + Pi], q = 2Sin[t + Pi]}, {Hue[t / (5Pi)], Arrowheads[0], Arrow[Tube[{{x, y, t}, {p, q, t}}, .1], .3], Torus[{x, y, t}, .3], Torus[{p, q, t}, .3]}], {t, 0, 5Pi, .3}]}, Boxed -> False, Background -> GrayLevel[.2]]Graphics3D[{Table[{ColorData[35, "ColorList"][[i]], Torus[{0, 0, 0}, {i / 7, 7 - i} ]}, {i, 1, 6}]}, ClipPlanes -> InfinitePlane[{{0, 0, 0}, {0, 0, 1}, {1, 0, 1}}]]関連するガイド
-
▪
- グラフィックスオブジェクト ▪
- 基本的な特殊領域 ▪
- 立体幾何学
テキスト
Wolfram Research (2021), Torus, Wolfram言語関数, https://reference.wolfram.com/language/ref/Torus.html.
CMS
Wolfram Language. 2021. "Torus." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Torus.html.
APA
Wolfram Language. (2021). Torus. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Torus.html
BibTeX
@misc{reference.wolfram_2026_torus, author="Wolfram Research", title="{Torus}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/Torus.html}", note=[Accessed: 04-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_torus, organization={Wolfram Research}, title={Torus}, year={2021}, url={https://reference.wolfram.com/language/ref/Torus.html}, note=[Accessed: 04-November-2026]}