Cast Curve¶
Functionality¶
This node generates a Curve object by casting (projecting) another Curve onto one of predefined shapes.
Curve domain: the same as the curve being projected.
Inputs¶
This node has the following inputs:
Curve. Curve to be projected. This input is mandatory.
Center. The meaning of this input depends on Target form parameter:
for Plane, this is a point on the plane;
for Sphere, this is the center of the sphere;
for Cylinder, this is a point on cylinder’s axis line.
Direction. This parameter is available only when Target form parameter is set to Plane or Cylinder. It’s meaning depends on target form:
for Plane, this is the normal direction of the plane;
for Cyinder, this is the directing vector of cylinder’s axis line.
Radius. This parameter is available only when Target form parameter is set to Sphere or Cylinder. It’s meaning depends on target form:
for Sphere, this is the radius of the sphere;
for Cylinder, this is the radius of the cylinder.
Coefficient. Casting effect coefficient. 0 means no effect, 1.0 means output the curve on the target form. Use other values for linear interpolation or linear extrapolation. The default value is 1.0.
Parameters¶
This node has the following parameter:
Target form. The available forms are:
Plane is defined by Center (a point on the plane) and Direction (plane normal vector direction).
Sphere is defined by Center of the sphere and Radius.
Cylinder is defined by Center (a point on cylinder’s axis), Direction (directing vector of the cylinder’s axis) and Radius of the cylinder.
Use control points. If checked, then for NURBS curves the node will project only control points of the curve, instead of projecting each point of the curve. For non-NURBS curves, the node will raise an error (become red), and processing will stop. Unchecked by default.
Outputs¶
This node has the following output:
Curve. The casted curve.
Example of usage¶
A line and the same line casted onto the unit sphere:
Curves->Curve Primitives-> Line (Curve)
Curves-> Evaluate Curve
Viz-> Viewer Draw
Generator-> NGon
Generator-> Plane
Generator-> Segment
Generator-> IcoSphere
Generator-> Cylinder
Curves-> Approximate Bezier Curve
Curves-> Evaluate Curve
Transform-> Noise Displace
Transform-> Rotate
Number-> A Number
DEGREES: Number-> Scalar Math
Vector-> Vector In
Vector-> Vector Polar Input
Matrix-> Matrix In
Viz-> Viewer Draw
Viz-> Viewer Draw Curve