Weed Geometry
27 nodes
On this page 27
Amplitude
FunctionSets vector length; negative amplitude reverses its direction. Zero vectors cannot be assigned a direction.
Amplitude(vector: Vector3d, length: Number) -> Vector3d
Vector3d Amplitude(Vector3d vector, double length)
Parameters
| name | type | default | description |
|---|---|---|---|
| vector | Vector3d | — | |
| length | Number | — |
Returns
| result | Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Circle
FunctionCircle on a plane.
Circle(plane: Plane, radius: Number) -> Curve
Curve Circle(Plane plane, double radius)
Parameters
| name | type | default | description |
|---|---|---|---|
| plane | Plane | — | |
| radius | Number | — |
Returns
| result | Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Construct Plane
FunctionFrame from an origin and two independent direction vectors.
ConstructPlane -> Plane
origin: Point3d
xAxis: Vector3d
yAxis: Vector3dPlane ConstructPlane(
Point3d origin,
Vector3d xAxis,
Vector3d yAxis)Parameters
| name | type | default | description |
|---|---|---|---|
| origin | Point3d | — | |
| xAxis | Vector3d | — | |
| yAxis | Vector3d | — |
Returns
| result | Plane |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Distance
FunctionEuclidean point distance.
Distance(first: Point3d, second: Point3d) -> Number
double Distance(Point3d first, Point3d second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | Point3d | — | |
| second | Point3d | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Divide Curve
FunctionReturns count + 1 equal arc-length samples; closed curves include the repeated seam endpoint.
DivideCurve(curve: Curve, count: Integer) -> Point3d Array
Point3d[] DivideCurve(Curve curve, int count = 10)
Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — | |
| count | Integer | 10 |
Returns
| result | Point3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Divide Surface
FunctionDivides an untrimmed surface into (uCount + 1) branches of (vCount + 1) points. UV sampling spans native domains.
DivideSurface -> Cad Tree of Point3d
surface: Surface
uCount: Integer
vCount: IntegerCadTree<Point3d> DivideSurface(
Surface surface,
int uCount = 10,
int vCount = 10)Parameters
| name | type | default | description |
|---|---|---|---|
| surface | Surface | — | |
| uCount | Integer | 10 | |
| vCount | Integer | 10 |
Returns
| result | Cad Tree of Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Dot
FunctionVector dot product.
Dot(first: Vector3d, second: Vector3d) -> Number
double Dot(Vector3d first, Vector3d second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | Vector3d | — | |
| second | Vector3d | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Evaluate Curve
FunctionEvaluates the native curve parameter, without silently normalizing its domain.
EvaluateCurve(curve: Curve, parameter: Number) -> Point3d
Point3d EvaluateCurve(Curve curve, double parameter)
Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — | |
| parameter | Number | — |
Returns
| result | Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Evaluate Length
FunctionEvaluates arc length from the start. Normalized length is a fraction of total curve length, not a NURBS parameter.
EvaluateLength -> Point3d
curve: Curve
length: Number
normalized: TruthPoint3d EvaluateLength(
Curve curve,
double length,
bool normalized = true)Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — | |
| length | Number | — | |
| normalized | Truth | True |
Returns
| result | Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Extrude
FunctionCreates an uncapped extrusion: a surface, open at both ends.
Extrude(curve: Curve, direction: Vector3d) -> Cad Model
CadModel Extrude(Curve curve, Vector3d direction)
Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — | |
| direction | Vector3d | — |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Line SDL
FunctionLine from start, direction and length.
LineSDL -> Curve
start: Point3d
direction: Vector3d
length: NumberCurve LineSDL(Point3d start, Vector3d direction, double length)
Parameters
| name | type | default | description |
|---|---|---|---|
| start | Point3d | — | |
| direction | Vector3d | — | |
| length | Number | — |
Returns
| result | Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Loft
FunctionCreates an uncapped normal loft through ordered sections.
Loft(sections: Curve Array) -> Cad Model
CadModel Loft(Curve[] sections)
Parameters
| name | type | default | description |
|---|---|---|---|
| sections | Curve Array | — |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Move Curve
FunctionMoves an independently owned curve.
MoveCurve(curve: Curve, motion: Vector3d) -> Curve
Curve MoveCurve(Curve curve, Vector3d motion)
Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — | |
| motion | Vector3d | — |
Returns
| result | Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Move Points
FunctionMoves points using longest-list point/vector matching.
MovePoints -> Point3d Array
points: Point3d Array
vectors: Vector3d ArrayPoint3d[] MovePoints(Point3d[] points, Vector3d[] vectors)
Parameters
| name | type | default | description |
|---|---|---|---|
| points | Point3d Array | — | |
| vectors | Vector3d Array | — |
Returns
| result | Point3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Point
FunctionConstructs a point from finite coordinates.
Point(x: Number, y: Number, z: Number) -> Point3d
Point3d Point(double x, double y, double z = 0)
Parameters
| name | type | default | description |
|---|---|---|---|
| x | Number | — | |
| y | Number | — | |
| z | Number | 0 |
Returns
| result | Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Points
FunctionConstructs points using longest-list matching independently in x, y and z.
Points -> Point3d Array
x: Number Array
y: Number Array
z: Number ArrayPoint3d[] Points(double[] x, double[] y, double[] z)
Parameters
| name | type | default | description |
|---|---|---|---|
| x | Number Array | — | |
| y | Number Array | — | |
| z | Number Array | — |
Returns
| result | Point3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Polar Points
FunctionCreates a polar point sequence, optionally repeating the first point to close it.
PolarPoints -> Point3d Array
angles: Number Array
radii: Number Array
height: Number
close: TruthPoint3d[] PolarPoints(
double[] angles,
double[] radii,
double height = 0,
bool close = false)Parameters
| name | type | default | description |
|---|---|---|---|
| angles | Number Array | — | |
| radii | Number Array | — | |
| height | Number | 0 | |
| close | Truth | False |
Returns
| result | Point3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Rectangle
FunctionPolyline rectangle from directed local X and Y domains, without corner fillets.
Rectangle(plane: Plane, x: Interval, y: Interval) -> Curve
Curve Rectangle(Plane plane, Interval x, Interval y)
Parameters
| name | type | default | description |
|---|---|---|---|
| plane | Plane | — | |
| x | Interval | — | |
| y | Interval | — |
Returns
| result | Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Rotate Curve
FunctionRotates a curve in a plane by a radian angle.
RotateCurve(curve: Curve, angle: Number, plane: Plane) -> Curve
Curve RotateCurve(Curve curve, double angle, Plane plane)
Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — | |
| angle | Number | — | |
| plane | Plane | — |
Returns
| result | Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Rotate Vector
FunctionRotates a vector around a nonzero axis by a radian angle.
RotateVector -> Vector3d
vector: Vector3d
axis: Vector3d
angle: NumberVector3d RotateVector(
Vector3d vector,
Vector3d axis,
double angle)Parameters
| name | type | default | description |
|---|---|---|---|
| vector | Vector3d | — | |
| axis | Vector3d | — | |
| angle | Number | — |
Returns
| result | Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Scale Curve
FunctionNonuniformly scales a curve relative to a local plane.
ScaleCurve -> Curve
curve: Curve
plane: Plane
x: Number
y: Number
z: NumberCurve ScaleCurve(
Curve curve,
Plane plane,
double x,
double y,
double z)Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — | |
| plane | Plane | — | |
| x | Number | — | |
| y | Number | — | |
| z | Number | — |
Returns
| result | Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Shatter
FunctionSplits a curve at native parameters strictly inside its domain.
Shatter(curve: Curve, parameters: Number Array) -> Curve Array
Curve[] Shatter(Curve curve, double[] parameters)
Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — | |
| parameters | Number Array | — |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Unit X
FunctionX-axis vector multiplied by factor.
UnitX(factor: Number) -> Vector3d
Vector3d UnitX(double factor = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| factor | Number | 1 |
Returns
| result | Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Unit Y
FunctionY-axis vector multiplied by factor.
UnitY(factor: Number) -> Vector3d
Vector3d UnitY(double factor = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| factor | Number | 1 |
Returns
| result | Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Unit Z
FunctionZ-axis vector multiplied by factor.
UnitZ(factor: Number) -> Vector3d
Vector3d UnitZ(double factor = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| factor | Number | 1 |
Returns
| result | Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
Vector Two Points
FunctionVector from first to second point, optionally unitized.
VectorTwoPoints -> Vector3d
first: Point3d
second: Point3d
unitize: TruthVector3d VectorTwoPoints(
Point3d first,
Point3d second,
bool unitize = false)Parameters
| name | type | default | description |
|---|---|---|---|
| first | Point3d | — | |
| second | Point3d | — | |
| unitize | Truth | False |
Returns
| result | Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD
XY Plane
FunctionXY plane with the supplied origin.
XYPlane(origin: Point3d) -> Plane
Plane XYPlane(Point3d origin)
Parameters
| name | type | default | description |
|---|---|---|---|
| origin | Point3d | — |
Returns
| result | Plane |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Geometry
- Package
- CAD