Cast¶

The Cast modifier shifts the shape of a mesh towards a predefined shape (sphere, cylinder, prism, UV Sphere).
Mimics and expands the Blender Cast Modifier (https://docs.blender.org/manual/en/latest/modeling/modifiers/deform/cast.html).
The node accepts regular Python lists and Numpy Arrays. (Flat Arrays for scalars and two-axis arrays for vectors).
Inputs & Parameters¶
Parameters |
Description |
---|---|
Shape |
Sphere, Cylinder, Prism, UV Sphere |
Origin |
Determine where the origin of the shape should be:
|
Size |
Determine where the origin of the shape should be:
|
Inputs |
Description |
---|---|
Vertices |
Vertices of the mesh to cast |
Shape Scale |
Axis scaling of the base mesh |
Effect Scale |
Axis scaling of the displacement vector |
Origin |
Origin of the base mesh |
Size |
Base size of the base mesh |
Strength |
Scalar scaling of the displacement vector |
Meridians |
Horizontal divisions. If less than 2 it will be interpreted as circular |
Parallels |
Vertical divisions. If less than 1 it will be interpreted as circular |
Advanced Parameters¶
In the N-Panel (and on the right-click menu) you can find:
Output NumPy: Output NumPy arrays in stead of regular lists (makes the node faster)
List Match: Define how list with different lengths should be matched
Examples¶
Basic example

Generator-> Box
Matrix-> Matrix In
Viz-> Viewer Draw
Cast a box to a octahedron:

Generator-> Box
Matrix-> Matrix In
Viz-> Viewer Draw
Cast a UV Sphere to a pentagonal prism:

Generator-> Sphere
Viz-> Viewer Draw
Matrix-> Matrix In
Casting Suzzane to different height prisms

Generator-> Line
Generator-> Suzanne
Number-> Number Range
Vector-> Vector In
Matrix-> Matrix In
List->List Struct-> List Split
Viz-> Viewer Draw
Text-> Stethoscope
Casting a plane to a scaled sphere using external origin

Generator-> Plane
Vector-> Vector In
Viz-> Matrix View
Viz-> Viewer Draw
Multiple concatenation of casts

Generator-> Plane
Vector-> Vector In
Viz-> Viewer Draw
All parameters are vectorized. In this example multiple origins are passed to the same shape

Generator-> Circle
Generator-> Plane
Analyzers-> KDT Closest Verts
ADD: Vector-> Vector Math
Matrix-> Matrix In
List->List Main-> List Join
Viz-> Viewer Draw
To get a tetrahedron Meridians:3 Parallels: 1.5 Shape scale: (1.08888, 1.08888, 0.8889)

Generator-> Box
Vector-> Vector In
Vector-> Vector In
Matrix-> Matrix In
Viz-> Viewer Draw