Divooka Reference

Weed Geometry

27 nodes

On this page 27

Amplitude

Function

Sets vector length; negative amplitude reverses its direction. Zero vectors cannot be assigned a direction.

Signature
Amplitude(vector: Vector3d, length: Number) -> Vector3d
Vector3d Amplitude(Vector3d vector, double length)

Parameters

nametypedefaultdescription
vectorVector3d—
lengthNumber—

Returns

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

Circle

Function

Circle on a plane.

Signature
Circle(plane: Plane, radius: Number) -> Curve
Curve Circle(Plane plane, double radius)

Parameters

nametypedefaultdescription
planePlane—
radiusNumber—

Returns

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

Construct Plane

Function

Frame from an origin and two independent direction vectors.

Signature
ConstructPlane -> Plane
    origin: Point3d
    xAxis: Vector3d
    yAxis: Vector3d
Plane ConstructPlane(
    Point3d origin,
    Vector3d xAxis,
    Vector3d yAxis)

Parameters

nametypedefaultdescription
originPoint3d—
xAxisVector3d—
yAxisVector3d—

Returns

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

Distance

Function

Euclidean point distance.

Signature
Distance(first: Point3d, second: Point3d) -> Number
double Distance(Point3d first, Point3d second)

Parameters

nametypedefaultdescription
firstPoint3d—
secondPoint3d—

Returns

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

Divide Curve

Function

Returns count + 1 equal arc-length samples; closed curves include the repeated seam endpoint.

Signature
DivideCurve(curve: Curve, count: Integer) -> Point3d Array
Point3d[] DivideCurve(Curve curve, int count = 10)

Parameters

nametypedefaultdescription
curveCurve—
countInteger10

Returns

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

Divide Surface

Function

Divides an untrimmed surface into (uCount + 1) branches of (vCount + 1) points. UV sampling spans native domains.

Signature
DivideSurface -> Cad Tree of Point3d
    surface: Surface
    uCount: Integer
    vCount: Integer
CadTree<Point3d> DivideSurface(
    Surface surface,
    int uCount = 10,
    int vCount = 10)

Parameters

nametypedefaultdescription
surfaceSurface—
uCountInteger10
vCountInteger10

Returns

resultCad Tree of Point3d
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Geometry
Package
CAD

Dot

Function

Vector dot product.

Signature
Dot(first: Vector3d, second: Vector3d) -> Number
double Dot(Vector3d first, Vector3d second)

Parameters

nametypedefaultdescription
firstVector3d—
secondVector3d—

Returns

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

Evaluate Curve

Function

Evaluates the native curve parameter, without silently normalizing its domain.

Signature
EvaluateCurve(curve: Curve, parameter: Number) -> Point3d
Point3d EvaluateCurve(Curve curve, double parameter)

Parameters

nametypedefaultdescription
curveCurve—
parameterNumber—

Returns

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

Evaluate Length

Function

Evaluates arc length from the start. Normalized length is a fraction of total curve length, not a NURBS parameter.

Signature
EvaluateLength -> Point3d
    curve: Curve
    length: Number
    normalized: Truth
Point3d EvaluateLength(
    Curve curve,
    double length,
    bool normalized = true)

Parameters

nametypedefaultdescription
curveCurve—
lengthNumber—
normalizedTruthTrue

Returns

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

Extrude

Function

Creates an uncapped extrusion: a surface, open at both ends.

Signature
Extrude(curve: Curve, direction: Vector3d) -> Cad Model
CadModel Extrude(Curve curve, Vector3d direction)

Parameters

nametypedefaultdescription
curveCurve—
directionVector3d—

Returns

resultCad Model
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Geometry
Package
CAD

Line SDL

Function

Line from start, direction and length.

Signature
LineSDL -> Curve
    start: Point3d
    direction: Vector3d
    length: Number
Curve LineSDL(Point3d start, Vector3d direction, double length)

Parameters

nametypedefaultdescription
startPoint3d—
directionVector3d—
lengthNumber—

Returns

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

Loft

Function

Creates an uncapped normal loft through ordered sections.

Signature
Loft(sections: Curve Array) -> Cad Model
CadModel Loft(Curve[] sections)

Parameters

nametypedefaultdescription
sectionsCurve Array—

Returns

resultCad Model
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Weed Geometry
Package
CAD

Move Curve

Function

Moves an independently owned curve.

Signature
MoveCurve(curve: Curve, motion: Vector3d) -> Curve
Curve MoveCurve(Curve curve, Vector3d motion)

Parameters

nametypedefaultdescription
curveCurve—
motionVector3d—

Returns

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

Move Points

Function

Moves points using longest-list point/vector matching.

Signature
MovePoints -> Point3d Array
    points: Point3d Array
    vectors: Vector3d Array
Point3d[] MovePoints(Point3d[] points, Vector3d[] vectors)

Parameters

nametypedefaultdescription
pointsPoint3d Array—
vectorsVector3d Array—

Returns

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

Point

Function

Constructs a point from finite coordinates.

Signature
Point(x: Number, y: Number, z: Number) -> Point3d
Point3d Point(double x, double y, double z = 0)

Parameters

nametypedefaultdescription
xNumber—
yNumber—
zNumber0

Returns

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

Points

Function

Constructs points using longest-list matching independently in x, y and z.

Signature
Points -> Point3d Array
    x: Number Array
    y: Number Array
    z: Number Array
Point3d[] Points(double[] x, double[] y, double[] z)

Parameters

nametypedefaultdescription
xNumber Array—
yNumber Array—
zNumber Array—

Returns

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

Polar Points

Function

Creates a polar point sequence, optionally repeating the first point to close it.

Signature
PolarPoints -> Point3d Array
    angles: Number Array
    radii: Number Array
    height: Number
    close: Truth
Point3d[] PolarPoints(
    double[] angles,
    double[] radii,
    double height = 0,
    bool close = false)

Parameters

nametypedefaultdescription
anglesNumber Array—
radiiNumber Array—
heightNumber0
closeTruthFalse

Returns

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

Rectangle

Function

Polyline rectangle from directed local X and Y domains, without corner fillets.

Signature
Rectangle(plane: Plane, x: Interval, y: Interval) -> Curve
Curve Rectangle(Plane plane, Interval x, Interval y)

Parameters

nametypedefaultdescription
planePlane—
xInterval—
yInterval—

Returns

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

Rotate Curve

Function

Rotates a curve in a plane by a radian angle.

Signature
RotateCurve(curve: Curve, angle: Number, plane: Plane) -> Curve
Curve RotateCurve(Curve curve, double angle, Plane plane)

Parameters

nametypedefaultdescription
curveCurve—
angleNumber—
planePlane—

Returns

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

Rotate Vector

Function

Rotates a vector around a nonzero axis by a radian angle.

Signature
RotateVector -> Vector3d
    vector: Vector3d
    axis: Vector3d
    angle: Number
Vector3d RotateVector(
    Vector3d vector,
    Vector3d axis,
    double angle)

Parameters

nametypedefaultdescription
vectorVector3d—
axisVector3d—
angleNumber—

Returns

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

Scale Curve

Function

Nonuniformly scales a curve relative to a local plane.

Signature
ScaleCurve -> Curve
    curve: Curve
    plane: Plane
    x: Number
    y: Number
    z: Number
Curve ScaleCurve(
    Curve curve,
    Plane plane,
    double x,
    double y,
    double z)

Parameters

nametypedefaultdescription
curveCurve—
planePlane—
xNumber—
yNumber—
zNumber—

Returns

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

Shatter

Function

Splits a curve at native parameters strictly inside its domain.

Signature
Shatter(curve: Curve, parameters: Number Array) -> Curve Array
Curve[] Shatter(Curve curve, double[] parameters)

Parameters

nametypedefaultdescription
curveCurve—
parametersNumber Array—

Returns

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

Unit X

Function

X-axis vector multiplied by factor.

Signature
UnitX(factor: Number) -> Vector3d
Vector3d UnitX(double factor = 1)

Parameters

nametypedefaultdescription
factorNumber1

Returns

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

Unit Y

Function

Y-axis vector multiplied by factor.

Signature
UnitY(factor: Number) -> Vector3d
Vector3d UnitY(double factor = 1)

Parameters

nametypedefaultdescription
factorNumber1

Returns

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

Unit Z

Function

Z-axis vector multiplied by factor.

Signature
UnitZ(factor: Number) -> Vector3d
Vector3d UnitZ(double factor = 1)

Parameters

nametypedefaultdescription
factorNumber1

Returns

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

Vector Two Points

Function

Vector from first to second point, optionally unitized.

Signature
VectorTwoPoints -> Vector3d
    first: Point3d
    second: Point3d
    unitize: Truth
Vector3d VectorTwoPoints(
    Point3d first,
    Point3d second,
    bool unitize = false)

Parameters

nametypedefaultdescription
firstPoint3d—
secondPoint3d—
unitizeTruthFalse

Returns

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

XY Plane

Function

XY plane with the supplied origin.

Signature
XYPlane(origin: Point3d) -> Plane
Plane XYPlane(Point3d origin)

Parameters

nametypedefaultdescription
originPoint3d—

Returns

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