unionFunction in std::solid
Union two or more solids into a single solid.
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
| Name | Type | Description | Required |
|---|---|---|---|
solids | [Solid; 2+] | The solids to union. Every input solid is consumed by this operation. | Yes |
tolerance | number(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 |
legacyMethod | bool | Deprecated 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+]