Intersect Curve with Plane¶
Dependencies¶
This node requires SciPy library to work.
Functionality¶
This node tries to find all intersections of the specified Curve with a specified (infinite) plane. The plane is specified by providing a normal vector and a point on the plane.
To find all intersections, the node splits the curve into several segments and then searches for single intersection in each segment.
Vector-> Vector In
Matrix-> Matrix Normal
Viz-> Viewer Draw
Text-> Stethoscope
Scene-> Bezier Input
Inputs¶
This node has the following inputs:
Curve. The curve to find intersections with. This input is mandatory.
Point. The point on the plane. The default value is
(0, 0, 0)
.Normal. The normal vector of the plane. The default value is
(0, 0, 1)
. Thus, by default the plane is XOY coordinate plane.
Parameters¶
This node has the following parameters:
NURBS. If checked, the node will apply NURBS-specific algorithm for NURBS and NURBS-like curves. This algorithm can be about 50% faster comparing to generic algorithm. Unchecked by default.
Init resolution. Number of segments to subdivide the curve in. This defines the maximum number of intersection this node can potentially find. For example, if you set this to 1, but actually the curve intersects the plane in two places, then the node will actually find only one of intersections. The default value is 10.
Accuracy. This parameter is available in the N panel only. This defines the accuracy level - number of exact digits after decimal point. The default value is 4.
Outputs¶
This node has the following outputs:
Point. Intersection points.
T. Curve’s T parameter values corresponding to the intersection points.
Example of usage¶
Find intersections of some NURBS curve with XOY plane:
Vector-> Vector sort
Curves-> Interpolate NURBS Curve
Curves-> Evaluate Curve
Viz-> Viewer Draw
Scene-> Objects In Lite