Divooka Reference

Weed Meshes

11 nodes

On this page 11

Area

Function

Total mesh surface area in squared model units.

Signature
Area(mesh: Mesh) -> Number
double Area(Mesh mesh)

Parameters

nametypedefaultdescription
meshMesh—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Meshes
Package
CAD

Catmull Clark

Function

Catmull-Clark subdivision with cubic boundary rules. Rejects nonmanifold edges; crease tags and face attributes are not supported.

Signature
CatmullClark(mesh: Mesh, iterations: Integer) -> Mesh
Mesh CatmullClark(Mesh mesh, int iterations = 1)

Parameters

nametypedefaultdescription
meshMesh—
iterationsInteger1

Returns

resultMesh
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Meshes
Package
CAD

Collection

Function

Wraps an owned mesh copy as a one-item collection.

Signature
Collection(mesh: Mesh) -> Mesh Array
Mesh[] Collection(Mesh mesh)

Parameters

nametypedefaultdescription
meshMesh—

Returns

resultMesh Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Meshes
Package
CAD

From Points

Function

Creates an open quad mesh from a U-major rectangular point grid; optional V wrapping closes a periodic seam without duplicate vertices.

Signature
FromPoints -> Mesh
    points: Point3d Array
    countU: Integer
    countV: Integer
    wrapV: Truth
Mesh FromPoints(
    Point3d[] points,
    int countU,
    int countV,
    bool wrapV = false)

Parameters

nametypedefaultdescription
pointsPoint3d Array—
countUInteger—
countVInteger—
wrapVTruthFalse

Returns

resultMesh
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Meshes
Package
CAD

From Tree

Function

Creates a quad mesh from a rectangular point tree in its supplied branch order.

Signature
FromTree(points: Cad Tree of Point3d, wrapV: Truth) -> Mesh
Mesh FromTree(CadTree<Point3d> points, bool wrapV = false)

Parameters

nametypedefaultdescription
pointsCad Tree of Point3d—
wrapVTruthFalse

Returns

resultMesh
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Meshes
Package
CAD

Join

Function

Combines meshes without welding or changing vertex order.

Signature
Join(meshes: Mesh Array) -> Mesh
Mesh Join(Mesh[] meshes)

Parameters

nametypedefaultdescription
meshesMesh Array—

Returns

resultMesh
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Meshes
Package
CAD

Merge

Function

Combines two meshes without welding or discarding disconnected components.

Signature
Merge(first: Mesh, second: Mesh) -> Mesh
Mesh Merge(Mesh first, Mesh second)

Parameters

nametypedefaultdescription
firstMesh—
secondMesh—

Returns

resultMesh
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Meshes
Package
CAD

Plane Grid

Function

Constructs a regular quad grid on a plane over the given local domains.

Signature
PlaneGrid -> Mesh
    plane: Plane
    x: Interval
    y: Interval
    xCount: Integer
    yCount: Integer
Mesh PlaneGrid(
    Plane plane,
    Interval x,
    Interval y,
    int xCount = 30,
    int yCount = 30)

Parameters

nametypedefaultdescription
planePlane—
xInterval—
yInterval—
xCountInteger30
yCountInteger30

Returns

resultMesh
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Meshes
Package
CAD

Read Obj

Function

Reads an OBJ mesh through the existing geometry importer; disconnected components are preserved.

Signature
ReadObj(path: Text) -> Mesh
Mesh ReadObj(string path)

Parameters

nametypedefaultdescription
pathText—

Returns

resultMesh
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Meshes
Package
CAD

Triangulate

Function

Splits 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.

Signature
Triangulate(mesh: Mesh) -> Mesh
Mesh Triangulate(Mesh mesh)

Parameters

nametypedefaultdescription
meshMesh—

Returns

resultMesh
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Meshes
Package
CAD

Weld

Function

Returns an independently owned mesh with merged nearby vertices.

Signature
Weld(mesh: Mesh, tolerance: Number) -> Mesh
Mesh Weld(Mesh mesh, double tolerance = 1E-06)

Parameters

nametypedefaultdescription
meshMesh—
toleranceNumber1E-06

Returns

resultMesh
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Meshes
Package
CAD