WOLFRAM

Insphere[{p1,,pn+1}]

gives the sphere that can be inscribed in the simplex defined by points pi in .

Insphere[poly]

gives the insphere of a polyhedron or polygon poly.

Details

  • Insphere is also known as incircle, inscribed circle, or inscribed disk.
  • Insphere gives the Sphere of largest measure (arc length, area, etc.) that can be inscribed in the simplex (triangle, tetrahedron, etc.) defined by points pi.
  • Insphere evaluates to a Sphere[c,r], where the center c is known as the incenter and radius r is known as the inradius for the related simplex.
  • Insphere is defined for and affinely independent.
  • For polyhedra, Insphere[poly] returns a sphere that is contained within the polyhedron poly and tangent to each of the polyhedron faces.
  • For polygons, Insphere[poly] returns a sphere that is contained within the polygon poly and tangent to each of the polygon edges.
  • Insphere can be used with symbolic points in GeometricScene.

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

An insphere in 2D:

Out[1]=1

And in 3D:

Out[2]=2

The insphere of the regular octahedron:

Out[1]=1
Out[2]=2

Its surface area:

Out[3]=3

Scope  (17)Survey of the scope of standard use cases

Graphics  (6)

Specification  (2)

Inspheres in different dimensions:

Out[1]=1
Out[2]=2

Insphere evaluates to a Sphere:

Out[1]=1

Get the center and radius:

Out[2]=2

Styling  (4)

Colored circumspheres:

Out[2]=2

Different properties can be specified for the front and back of faces using FaceForm:

Out[2]=2

Inspheres with different specular exponents:

Out[2]=2

Black circumsphere that glows red:

Out[3]=3

Opacity specifies the face opacity:

Out[2]=2

Regions  (11)

Insphere works in any number of dimensions:

Out[1]=1

Get the circumcenter and circumradius:

Out[2]=2

Embedding dimension is the dimension of the space in which the sphere lives:

Out[2]=2

Geometric dimension is the dimension of the shape itself:

Out[3]=3

Membership testing:

Out[2]=2

Get conditions for membership:

Out[3]=3

Area:

Out[2]=2

Centroid:

Out[3]=3
Out[4]=4

Distance from a point:

Out[2]=2

Plot it:

Out[3]=3

Signed distance from a point:

Out[2]=2

Plot it:

Out[3]=3

Nearest point in the region:

Out[1]=1
Out[2]=2

Nearest points to an enclosing sphere:

Out[5]=5

A sphere is bounded:

Out[2]=2

Find its range:

Out[3]=3
Out[4]=4

Integrate over an Insphere:

Out[2]=2
Out[3]=3

Optimize over it:

Out[2]=2

Solve equations over an Insphere:

Out[2]=2

Applications  (3)Sample problems that can be solved with this function

Recursively construct inscribed triangles and disks:

Out[4]=4

Use Insphere to generate a circle packing for a triangulated region. First triangulate the region:

Out[1]=1

Use Insphere to compute a circle for each triangle:

Out[3]=3

Compute the packing density:

Out[4]=4
Out[5]=5
Out[6]=6

Use Insphere to generate a sphere packing for a triangulated region. First discretize and triangulate the region:

Out[1]=1

Use Insphere to compute spheres for each tetrahedron:

Out[3]=3

Compute the packing density:

Out[4]=4
Out[5]=5
Out[6]=6

Properties & Relations  (2)Properties of the function, and connections to other functions

Insphere is the largest Sphere that can be inscribed in a Simplex:

Out[2]=2

In 3D:

Out[4]=4

Use Circumsphere to get a Sphere (blue) that circumscribes a Simplex:

Out[2]=2

In 3D:

Out[4]=4

Neat Examples  (1)Surprising or curious use cases

Random insphere collections:

Out[1]=1
Out[2]=2
Wolfram Research (2015), Insphere, Wolfram Language function, https://reference.wolfram.com/language/ref/Insphere.html (updated 2019).
Wolfram Research (2015), Insphere, Wolfram Language function, https://reference.wolfram.com/language/ref/Insphere.html (updated 2019).

Text

Wolfram Research (2015), Insphere, Wolfram Language function, https://reference.wolfram.com/language/ref/Insphere.html (updated 2019).

Wolfram Research (2015), Insphere, Wolfram Language function, https://reference.wolfram.com/language/ref/Insphere.html (updated 2019).

CMS

Wolfram Language. 2015. "Insphere." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Insphere.html.

Wolfram Language. 2015. "Insphere." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Insphere.html.

APA

Wolfram Language. (2015). Insphere. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Insphere.html

Wolfram Language. (2015). Insphere. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Insphere.html

BibTeX

@misc{reference.wolfram_2025_insphere, author="Wolfram Research", title="{Insphere}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Insphere.html}", note=[Accessed: 21-May-2025 ]}

@misc{reference.wolfram_2025_insphere, author="Wolfram Research", title="{Insphere}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Insphere.html}", note=[Accessed: 21-May-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_insphere, organization={Wolfram Research}, title={Insphere}, year={2019}, url={https://reference.wolfram.com/language/ref/Insphere.html}, note=[Accessed: 21-May-2025 ]}

@online{reference.wolfram_2025_insphere, organization={Wolfram Research}, title={Insphere}, year={2019}, url={https://reference.wolfram.com/language/ref/Insphere.html}, note=[Accessed: 21-May-2025 ]}