intersect()
[3D] The curve where two sets of faces meet, written outside a sketch.
The result holds one curve per connected chain of intersection edges, in
an order that does not change between rebuilds: edges(), start()
and end() read it. The faces are read, not used up.
Faces that only touch — along an edge, tangentially, or lying on each other — have no intersection curve.
Returns: IntersectionCurve | Reference
See the guide for detailed usage examples.
Signatures
intersect(first: SceneObject | SceneObject[], second: SceneObject | SceneObject[]): IntersectionCurve
[3D] The curve where two sets of faces meet, written outside a sketch.
The result holds one curve per connected chain of intersection edges, in
an order that does not change between rebuilds: edges(), start()
and end() read it. The faces are read, not used up.
Faces that only touch — along an edge, tangentially, or lying on each other — have no intersection curve.
| Parameter | Type | Description |
|---|---|---|
first | SceneObject | SceneObject[] | Faces: a face selection (of solids or surfaces), a surface, a solid (all its faces), or a list of those. |
second | SceneObject | SceneObject[] | Faces, as first takes them, or a plane(), taken as infinite. |
intersect(...sourceObjects: SceneObject[]): Reference
[2D] Intersects 3D objects with the current sketch plane, producing cross-section edges.
| Parameter | Type | Description |
|---|---|---|
...sourceObjects | SceneObject[] | The 3D objects to intersect (optional) |
Examples
// @screenshot hideGrid
import { sketch, circle, extrude, intersect, plane } from 'fluidcad/core';
sketch("xy", () => {
circle([0, 0], 40);
});
const body = extrude(60);
// Outside a sketch: the curve where the cylinder's wall meets a plane
// tilted 30° — one closed ellipse.
const ic = intersect(body.sideFaces(), plane("xy", { offset: 30, rotateX: 30 }));
