Overview
/
KCL Standard Library
/
Functions
/
intersect

intersectFunction in std::solid

Intersect returns the shared volume between multiple solids, preserving only overlapping regions.

Intersect computes the geometric intersection of multiple solid bodies, returning a new solid representing the volume that is common to all input solids. This operation is useful for determining shared material regions, verifying fit, and analyzing overlapping geometries in assemblies.

This operation consumes every input solid. After it succeeds, the original solid variables cannot be used in another modeling operation. Assign the returned solid or solids to a new variable and use that result for any subsequent operations.

Arguments

NameTypeDescriptionRequired
solids[Solid; 2+]The solids to intersect. Every input solid is consumed by this operation.Yes
tolerancenumber(Length)Defines the smallest distance below which two entities are considered coincident, intersecting, coplanar, or similar. For most use cases, it should not be changed from its default value of 10^-7 millimeters.No
legacyMethodboolDeprecated as of KCL 2.0. You probably shouldn't set this or care about this, it's for opting back into an older version of an engine algorithm. If true, revert to older engine SSI algorithm. Defaults to false.No

Returns

[Solid; 1+]

Examples