Shapes & spaces

Triangle mesh plane section calculator with contour loops

Intersect a triangular surface mesh with a plane and assemble the resulting segments into contour loops or open chains.

Your numbers

Rows on separate lines; comma-separated values within each row.
Rows on separate lines; comma-separated values within each row.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Intersect a triangular surface mesh with a plane and assemble the resulting segments into contour loops or open chains. The page reports contour lengths and an area only when the section forms supported closed loops. Coplanar triangular faces and unresolved branching degeneracies are rejected. This is a surface-plane section calculation, not a full solid Boolean operation or a repair tool for defective meshes.

THE FORMULAIntersect every triangle with the plane, deduplicate section edges, and assemble degree-two loops or open chains.

A worked example

A horizontal plane z=1/2 through the unit cube cuts a unit square. Triangulated side faces may add collinear intermediate contour vertices, but area remains one and perimeter four. A coplanar triangular face is an explicitly unsupported area ambiguity in this version.

Good to know

≤100 spatial vertices/triangular faces. Source nonmanifold edges, duplicate/degenerate faces and branched contours rejected. Coplanar faces unsupported; isolated vertex touches counted separately. Open chains have no total section-area claim; nested closed loops use even-odd area.

Vertices, faces and plane coefficients

Vertices are three-dimensional coordinates, and each face is a triple of vertex indices. The cutting plane is normal dot position equals offset, with a nonzero normal.

Scaling both normal and offset by the same nonzero factor preserves the plane. Indices must refer to the supplied vertex list. The mesh need not be globally closed for an intersection to exist, but an open surface can produce open section chains rather than a bounded planar region.

A horizontal cube section is a square despite triangle subdivisionsPlane z = 1/2Area = 1Perimeter = 4
A horizontal plane z=1/2 through the unit cube cuts a unit square. Triangulated side faces may add collinear intermediate contour vertices, but area remains one and perimeter four. A coplanar triangular face is an explicitly unsupported area ambiguity in this version. Static schematic; numerical labels define the example.

Constructs a slice boundary and its topology; whole-solid volume and moments do not supply section contours. The Four bar linkage position calculator with assembly branches offers a complementary calculation under its own stated assumptions.

Intersecting individual triangles

Signed vertex distances classify each triangle relative to the plane. Opposite signs create interpolated edge intersections, while a vertex exactly on the plane needs careful deduplication across neighboring triangles.

A fully coplanar face is not a unique line segment and is deliberately unsupported here. Silently treating it as three ordinary crossing edges would double-count or invent section boundaries. Tangent contacts can be recorded without contributing a positive-length contour segment.

Worked example and mathematical rule

A horizontal plane z=1/2 through the unit cube cuts a unit square. Triangulated side faces may add collinear intermediate contour vertices, but area remains one and perimeter four. A coplanar triangular face is an explicitly unsupported area ambiguity in this version.

Intersect every triangle with the plane, deduplicate section edges, and assemble degree-two loops or open chains.

Stitching segments into contours

Shared endpoint positions are merged within numerical tolerance and segments are connected into loops or chains. A closed contour has degree two at ordinary nodes; a chain has endpoints of degree one.

Branches can indicate nonmanifold geometry or an unresolved degeneracy and are rejected rather than arbitrarily joined. Collinear intermediate points may be simplified for polygon validation while their original segment geometry still determines the contour length.

When area is meaningful

A closed planar contour can bound an area, with nesting and orientation handled according to the supported section convention. An open chain has no unique enclosed area and must not receive a fabricated zero-area solid interpretation.

Multiple contours may represent separate components or holes. The page is bounded to supported non-self-intersecting section geometry; it does not infer a watertight solid from an arbitrary triangle soup. Check topology before using section area as material cross-section.

Mesh quality and numerical precision

Repeated faces, nonmanifold edges, inconsistent geometry and near-zero triangles can undermine section assembly. A very fine mesh does not automatically improve topology if coordinates are noisy or duplicate vertices remain unmerged.

Conversely, overly large tolerances can merge genuinely separate nearby contours. Keep coordinate magnitudes and units sensible, and compare a nearby cutting plane to identify sensitivity. The result is for the polygonal mesh supplied, not the exact smooth object it may approximate.

Independent checks for simple solids

A unit cube cut halfway between parallel faces should produce a unit-square contour with perimeter four and area one. Moving the plane outside the cube should produce no crossing contour.

Rotating both the mesh and plane consistently should preserve lengths and areas. Retain the plane equation, mesh indexing and closed-versus-open status with a result. Engineering volume or manufacturing decisions may require a robust solid-model kernel beyond this bounded educational section routine.

A few questions, answered

Why are coplanar faces rejected?

Their intersection is two-dimensional, requiring different boundary handling from ordinary crossing segments.

Can an open mesh be entered?

Yes where supported, but its section can be an open chain with no enclosed area.

Does this repair a nonmanifold mesh?

No. Branching or defective section topology is reported rather than repaired silently.

Is the area for the original smooth object?

No. It is for the supplied piecewise-planar mesh section.

Find your calculator

Start typing to explore the library.