InscribedBall[{p1,p2,…}]
gives the largest ball that lies inside the convex hull of the points p1,p2,….
InscribedBall
InscribedBall[{p1,p2,…}]
gives the largest ball that lies inside the convex hull of the points p1,p2,….
Details
- InscribedBall is also known as plug gauge circle or maximum inscribed circle.
- InscribedBall gives the Ball of largest measure (arc length, area, etc.) that can be inscribed in the convex hull of a set of points.
Examples
open all close allBasic Examples (2)
A 2D inscribed ball from points:
pts = RandomReal[{-1, 1}, {50, 2}];ℛ = InscribedBall[pts]The region is the largest ball that lies inside the convex hull of the points:
Region[ℛ, Epilog -> {Opacity[.5], ConvexHullRegion[pts], Black, Point[pts]}]A 3D inscribed ball from points:
pts = RandomReal[{-1, 1}, {50, 3}];ℛ = InscribedBall[pts]The region is the largest ball that lies inside the convex hull of the points:
Show[{Region[ℛ], Region[Style[ConvexHullRegion[pts], Opacity[.5]]]}]Scope (1)
Create a 1D inscribed ball from a set of points:
pts = RandomReal[{-1, 1}, {50, 1}];ℛ = InscribedBall[pts]pts = RandomReal[{-1, 1}, {50, 2}];ℛ = InscribedBall[pts]pts = RandomReal[{-1, 1}, {50, 3}];ℛ = InscribedBall[pts]Applications (1)
Inscribed balls inside a Voronoi mesh:
ℛ = VoronoiMesh[RandomReal[{-1, 1}, {100, 3}]]InscribedBall[PolyhedronCoordinates[#]]& /@ MeshPrimitives[ℛ, 3];Show[{MeshRegion[ℛ, PlotTheme -> "Lines", MeshCellShapeFunction -> {1 -> (Tube[#1, .04]&)}, BaseStyle -> Hue[0.6, 0.77, 0.85]], Graphics3D[{Purple, %}]}, BaseStyle -> {Specularity[White, 25]}]Properties & Relations (3)
InscribedBall is the largest Ball that lies inside the convex hull of points:
pts = {{0, 0}, {1, 0}, {2 / 3, 1 / 2}, {0, 1}};Graphics[{GrayLevel[.5, .5], ConvexHullRegion[pts], Red, Point[pts], Blue, InscribedBall[pts]}]Use CircumscribedBall to get the smallest Ball that encloses the points:
pts = {{0, 0}, {1, 0}, {2 / 3, 1 / 2}, {0, 1}};Graphics[{ GrayLevel[.5, .5], CircumscribedBall[pts], Red, Point[pts]}]Use Insphere to get the Sphere that can be inscribed in the simplex defined by points:
pts = {{0, 0}, {1, 0}, {0, 1}};Graphics[{GrayLevel[.5, .5], Simplex[pts], Red, Point[pts], Blue, Insphere[pts]}]See Also
Related Guides
History
Text
Wolfram Research (2023), InscribedBall, Wolfram Language function, https://reference.wolfram.com/language/ref/InscribedBall.html.
CMS
Wolfram Language. 2023. "InscribedBall." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/InscribedBall.html.
APA
Wolfram Language. (2023). InscribedBall. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/InscribedBall.html
BibTeX
@misc{reference.wolfram_2026_inscribedball, author="Wolfram Research", title="{InscribedBall}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/InscribedBall.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_inscribedball, organization={Wolfram Research}, title={InscribedBall}, year={2023}, url={https://reference.wolfram.com/language/ref/InscribedBall.html}, note=[Accessed: 12-June-2026]}