How this calculation works
Construct the intersection of two convex spatial hulls and distinguish empty, contact-only and positive-volume results.
P∩Q={x: ni·x≤hi for every supporting plane of either solid}.A worked example
The cubes [0,2]³ and [1,3]³ intersect in [1,2]³, which has volume 1 and surface area 6.
Good to know
Each solid has 4–12 finite spatial points spanning a 3D convex hull. Combined-plane triple enumeration; intersection limited to 35 resolved vertices. Floating predicates; near-contact positive violations or unresolved geometry are rejected rather than classified.
Reference: CGAL authors: Boolean operations on polygon meshes (opens in a new tab) ↗
Intersection means shared three-dimensional material
The common part of two solids contains only locations that lie in both. Adding their volumes would count an entirely different quantity, while taking a hull around their combined points would fill space that belongs to neither solid. This calculator constructs the shared convex region explicitly.
Each entered point cloud defines its convex hull. Interior observations are harmless but do not change that solid. Both clouds must span three dimensions; a flat sheet is not treated as an extremely thin solid with an invented volume. The shared region itself can legitimately have lower dimension.
Compare this with the Convex polyhedron calculator from half space inequalities. Construct the common3Dsolid of two supplied convex hulls and compute its volume, boundary and degeneracy status.
Coordinates and the convexity assumption
Enter one spatial point per row in each solid's list. The points need not already follow a surface traversal, and no face list is required. The hull construction determines the outward supporting planes that enclose each supplied cloud in a single common coordinate system.
Coordinates must use the same unit and reference frame for both solids. A translated second cloud describes another placement, not a harmless formatting change. If the intended object is concave, its point-cloud hull fills the concavities, so this interface cannot represent that object faithfully.
A cube example with a hand-checkable answer
The first default cube extends from zero to two along every coordinate axis. The second extends from one to three. Their simultaneous coordinate inequalities reduce to one through two on all three axes, leaving a unit cube in the overlap.
Its volume is one cubic unit and its total exposed surface area is six square units. The eight returned vertices should use only coordinate values one and two. This simple example checks both the location of the region and its mass-independent geometry, rather than checking just one scalar volume.
Combining supporting halfspaces
A point lies in the intersection exactly when it satisfies every supporting halfspace from both hulls. Candidate vertices arise where three independent boundary planes meet. The implementation solves those small systems, rejects candidates outside any halfspace and merges numerically coincident candidates before constructing the resulting hull.
The resulting facets and triangles describe the overlap boundary, not the original input boundaries in full. Some input planes become inactive because the other solid cuts away their faces. Coincident supporting planes can describe the same final facet and must not artificially duplicate its geometric area.
Empty regions and contact cases
Two separated convex solids have an empty intersection. Two solids touching only along a face, line or point have a nonempty intersection but zero three-dimensional volume. The returned dimension and status distinguish those mathematical possibilities instead of making zero volume carry every interpretation.
A very narrow positive gap or overlap can be smaller than the numerical predicate margin. Such a configuration is not safely resolved by simply accepting all nearly satisfied inequalities. The implementation rejects detected ambiguous near-contact violations so that a strict gap is not confidently reported as exact contact.
Residuals and numerical scale
The maximum halfspace violation checks the constructed candidate vertices against all the retained inequalities. It is a useful consistency diagnostic, but a tiny displayed residual is not an exact interval proof for arbitrary floating coordinates. Extremely slanted planes or clustered vertices can still make triple-plane intersections sensitive.
The calculation recenters both clouds before geometric operations, reducing avoidable error from a large shared translation. Changing coordinate units should scale volume cubically and area quadratically. When comparing runs, apply that scaling to the numerical tolerances and interpretation as well as to the expected geometry.
Using and checking the constructed overlap
For axis-aligned boxes, compute the three overlap lengths independently and multiply them. Exchanging the first and second solids should preserve the shared region. If one solid is strictly contained in the other, the intersection should reproduce the inner solid rather than introduce new exposed boundary pieces.
Use the returned vertices and faces to inspect a small convex clipping problem. A dedicated robust solid-modeling library is preferable for uncertain measurements, many faces or repeated Boolean operations. This page does not union concave meshes, repair surface topology or infer material uncertainty from the point coordinates.
A few questions, answered
Can one solid be concave?
Not as represented here. Each supplied cloud is replaced by its convex hull.
Does zero volume always mean empty?
No. Contact along a face, line or point can be nonempty while having zero 3D volume.
Can I swap the solids?
Yes. Intersection is symmetric; the geometric result should remain unchanged.
Are near-touching solids always classified?
No. Numerically unresolved near-contact cases can be rejected instead of receiving a false contact or volume claim.