Weed Meshes
11 nodes
On this page 11
Area
FunctionTotal mesh surface area in squared model units.
Area(mesh: Mesh) -> Number
double Area(Mesh mesh)
Parameters
| name | type | default | description |
|---|---|---|---|
| mesh | Mesh | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Meshes
- Package
- CAD
Catmull Clark
FunctionCatmull-Clark subdivision with cubic boundary rules. Rejects nonmanifold edges; crease tags and face attributes are not supported.
CatmullClark(mesh: Mesh, iterations: Integer) -> Mesh
Mesh CatmullClark(Mesh mesh, int iterations = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| mesh | Mesh | — | |
| iterations | Integer | 1 |
Returns
| result | Mesh |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Meshes
- Package
- CAD
Collection
FunctionWraps an owned mesh copy as a one-item collection.
Collection(mesh: Mesh) -> Mesh Array
Mesh[] Collection(Mesh mesh)
Parameters
| name | type | default | description |
|---|---|---|---|
| mesh | Mesh | — |
Returns
| result | Mesh Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Meshes
- Package
- CAD
From Points
FunctionCreates an open quad mesh from a U-major rectangular point grid; optional V wrapping closes a periodic seam without duplicate vertices.
FromPoints -> Mesh
points: Point3d Array
countU: Integer
countV: Integer
wrapV: TruthMesh FromPoints(
Point3d[] points,
int countU,
int countV,
bool wrapV = false)Parameters
| name | type | default | description |
|---|---|---|---|
| points | Point3d Array | — | |
| countU | Integer | — | |
| countV | Integer | — | |
| wrapV | Truth | False |
Returns
| result | Mesh |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Meshes
- Package
- CAD
From Tree
FunctionCreates a quad mesh from a rectangular point tree in its supplied branch order.
FromTree(points: Cad Tree of Point3d, wrapV: Truth) -> Mesh
Mesh FromTree(CadTree<Point3d> points, bool wrapV = false)
Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — | |
| wrapV | Truth | False |
Returns
| result | Mesh |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Meshes
- Package
- CAD
Join
FunctionCombines meshes without welding or changing vertex order.
Join(meshes: Mesh Array) -> Mesh
Mesh Join(Mesh[] meshes)
Parameters
| name | type | default | description |
|---|---|---|---|
| meshes | Mesh Array | — |
Returns
| result | Mesh |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Meshes
- Package
- CAD
Merge
FunctionCombines two meshes without welding or discarding disconnected components.
Merge(first: Mesh, second: Mesh) -> Mesh
Mesh Merge(Mesh first, Mesh second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | Mesh | — | |
| second | Mesh | — |
Returns
| result | Mesh |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Meshes
- Package
- CAD
Plane Grid
FunctionConstructs a regular quad grid on a plane over the given local domains.
PlaneGrid -> Mesh
plane: Plane
x: Interval
y: Interval
xCount: Integer
yCount: IntegerMesh PlaneGrid(
Plane plane,
Interval x,
Interval y,
int xCount = 30,
int yCount = 30)Parameters
| name | type | default | description |
|---|---|---|---|
| plane | Plane | — | |
| x | Interval | — | |
| y | Interval | — | |
| xCount | Integer | 30 | |
| yCount | Integer | 30 |
Returns
| result | Mesh |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Meshes
- Package
- CAD
Read Obj
FunctionReads an OBJ mesh through the existing geometry importer; disconnected components are preserved.
ReadObj(path: Text) -> Mesh
Mesh ReadObj(string path)
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — |
Returns
| result | Mesh |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Meshes
- Package
- CAD
Triangulate
FunctionSplits every quad along its shorter diagonal, choosing A-C on ties. First triangles retain original face order; second triangles are appended. Vertices and existing triangles retain their indices.
Triangulate(mesh: Mesh) -> Mesh
Mesh Triangulate(Mesh mesh)
Parameters
| name | type | default | description |
|---|---|---|---|
| mesh | Mesh | — |
Returns
| result | Mesh |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Meshes
- Package
- CAD
Weld
FunctionReturns an independently owned mesh with merged nearby vertices.
Weld(mesh: Mesh, tolerance: Number) -> Mesh
Mesh Weld(Mesh mesh, double tolerance = 1E-06)
Parameters
| name | type | default | description |
|---|---|---|---|
| mesh | Mesh | — | |
| tolerance | Number | 1E-06 |
Returns
| result | Mesh |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Meshes
- Package
- CAD