Weed Tree Geometry
26 nodes
On this page 26
Average Points
FunctionComputes the arithmetic point mean independently per nonempty branch.
AveragePoints(points: Cad Tree of Point3d) -> Cad Tree of Point3d
CadTree<Point3d> AveragePoints(CadTree<Point3d> points)
Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — |
Returns
| result | Cad Tree of Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Control Point Curves
FunctionCreates one clamped NURBS from each control-point branch; these are control vertices, not interpolated samples.
ControlPointCurves -> Cad Tree of Curve
points: Cad Tree of Point3d
degree: IntegerCadTree<Curve> ControlPointCurves(
CadTree<Point3d> points,
int degree = 3)Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — | |
| degree | Integer | 3 |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Cull Curve Index
FunctionRemoves one curve item per branch, appending the culling operation's item path.
CullCurveIndex -> Cad Tree of Curve
curves: Cad Tree of Curve
index: IntegerCadTree<Curve> CullCurveIndex(
CadTree<Curve> curves,
int index = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — | |
| index | Integer | 0 |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Cull Duplicate Points
FunctionRemoves points closer than tolerance within each branch, preserving the first representative and its order.
CullDuplicatePoints -> Cad Tree of Point3d
points: Cad Tree of Point3d
tolerance: NumberCadTree<Point3d> CullDuplicatePoints(
CadTree<Point3d> points,
double tolerance = 0.01)Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — | |
| tolerance | Number | 0.01 |
Returns
| result | Cad Tree of Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Flatten Curves
FunctionCollects curves in numeric branch order for a subsequent explicit loft or other list operation.
FlattenCurves(curves: Cad Tree of Curve) -> Curve Array
Curve[] FlattenCurves(CadTree<Curve> curves)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Flatten Points
FunctionCollects points in branch order.
FlattenPoints(points: Cad Tree of Point3d) -> Point3d Array
Point3d[] FlattenPoints(CadTree<Point3d> points)
Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — |
Returns
| result | Point3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Move Curves
FunctionMoves matched curves by vectors, returning owned geometry.
MoveCurves -> Cad Tree of Curve
curves: Cad Tree of Curve
vectors: Cad Tree of Vector3dCadTree<Curve> MoveCurves(
CadTree<Curve> curves,
CadTree<Vector3d> vectors)Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — | |
| vectors | Cad Tree of Vector3d | — |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Move Points
FunctionMoves matched points by vectors.
MovePoints -> Cad Tree of Point3d
points: Cad Tree of Point3d
vectors: Cad Tree of Vector3dCadTree<Point3d> MovePoints(
CadTree<Point3d> points,
CadTree<Vector3d> vectors)Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — | |
| vectors | Cad Tree of Vector3d | — |
Returns
| result | Cad Tree of Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Planes
FunctionConstructs local frames from matched origins and X axes, with a shared independent Y direction.
Planes -> Cad Tree of Plane
origins: Cad Tree of Point3d
xAxes: Cad Tree of Vector3d
yAxis: Vector3dCadTree<Plane> Planes(
CadTree<Point3d> origins,
CadTree<Vector3d> xAxes,
Vector3d yAxis)Parameters
| name | type | default | description |
|---|---|---|---|
| origins | Cad Tree of Point3d | — | |
| xAxes | Cad Tree of Vector3d | — | |
| yAxis | Vector3d | — |
Returns
| result | Cad Tree of Plane |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Point Branch Count
FunctionReturns the number of point branches as one scalar.
PointBranchCount(points: Cad Tree of Point3d) -> Cad Tree of Number
CadTree<double> PointBranchCount(CadTree<Point3d> points)
Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — |
Returns
| result | Cad Tree of Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Point Counts
FunctionReturns the number of points in each branch.
PointCounts(points: Cad Tree of Point3d) -> Cad Tree of Number
CadTree<double> PointCounts(CadTree<Point3d> points)
Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — |
Returns
| result | Cad Tree of Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Point Items
FunctionSelects one point from each branch, retaining branch order in the flattened output.
PointItems -> Point3d Array
points: Cad Tree of Point3d
index: Integer
wrap: TruthPoint3d[] PointItems(
CadTree<Point3d> points,
int index = 0,
bool wrap = true)Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — | |
| index | Integer | 0 | |
| wrap | Truth | True |
Returns
| result | Point3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Points
FunctionConstructs points with longest item and branch matching across coordinates.
Points -> Cad Tree of Point3d
x: Cad Tree of Number
y: Cad Tree of Number
z: Cad Tree of NumberCadTree<Point3d> Points(
CadTree<double> x,
CadTree<double> y,
CadTree<double> z)Parameters
| name | type | default | description |
|---|---|---|---|
| x | Cad Tree of Number | — | |
| y | Cad Tree of Number | — | |
| z | Cad Tree of Number | — |
Returns
| result | Cad Tree of Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Polylines
FunctionCreates a polyline per branch, optionally closing it with a final segment.
Polylines -> Cad Tree of Curve
points: Cad Tree of Point3d
closed: TruthCadTree<Curve> Polylines(
CadTree<Point3d> points,
bool closed = false)Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — | |
| closed | Truth | False |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Prefix Points
FunctionPrepends a common ancestor index to every point-tree branch.
PrefixPoints -> Cad Tree of Point3d
points: Cad Tree of Point3d
index: IntegerCadTree<Point3d> PrefixPoints(
CadTree<Point3d> points,
int index = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — | |
| index | Integer | 0 |
Returns
| result | Cad Tree of Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Rectangles
FunctionConstructs local rectangles on every frame.
Rectangles -> Cad Tree of Curve
planes: Cad Tree of Plane
x: Interval
y: IntervalCadTree<Curve> Rectangles(
CadTree<Plane> planes,
Interval x,
Interval y)Parameters
| name | type | default | description |
|---|---|---|---|
| planes | Cad Tree of Plane | — | |
| x | Interval | — | |
| y | Interval | — |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Rotate Curves
FunctionRotates matched curves within their local planes.
RotateCurves -> Cad Tree of Curve
curves: Cad Tree of Curve
planes: Cad Tree of Plane
angle: NumberCadTree<Curve> RotateCurves(
CadTree<Curve> curves,
CadTree<Plane> planes,
double angle)Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — | |
| planes | Cad Tree of Plane | — | |
| angle | Number | — |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Scale Curves
FunctionScales matched curves in local X and Y, keeping local Z unchanged.
ScaleCurves -> Cad Tree of Curve
curves: Cad Tree of Curve
planes: Cad Tree of Plane
x: Cad Tree of Number
y: Cad Tree of NumberCadTree<Curve> ScaleCurves(
CadTree<Curve> curves,
CadTree<Plane> planes,
CadTree<double> x,
CadTree<double> y)Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — | |
| planes | Cad Tree of Plane | — | |
| x | Cad Tree of Number | — | |
| y | Cad Tree of Number | — |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Scale Points
FunctionScales points along world axes about matched centers.
ScalePoints -> Cad Tree of Point3d
points: Cad Tree of Point3d
centers: Cad Tree of Point3d
x: Number
y: Number
z: NumberCadTree<Point3d> ScalePoints(
CadTree<Point3d> points,
CadTree<Point3d> centers,
double x = 1,
double y = 1,
double z = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — | |
| centers | Cad Tree of Point3d | — | |
| x | Number | 1 | |
| y | Number | 1 | |
| z | Number | 1 |
Returns
| result | Cad Tree of Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Simplify Curves
FunctionRemoves common leading path indices from a curve tree.
SimplifyCurves(curves: Cad Tree of Curve) -> Cad Tree of Curve
CadTree<Curve> SimplifyCurves(CadTree<Curve> curves)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Simplify Vectors
FunctionRemoves common leading vector-path indices.
SimplifyVectors(vectors: Cad Tree of Vector3d) -> Cad Tree of Vector3d
CadTree<Vector3d> SimplifyVectors(CadTree<Vector3d> vectors)
Parameters
| name | type | default | description |
|---|---|---|---|
| vectors | Cad Tree of Vector3d | — |
Returns
| result | Cad Tree of Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Sort Points
FunctionSorts point items by corresponding numeric keys independently in each matching branch.
SortPoints -> Cad Tree of Point3d
points: Cad Tree of Point3d
keys: Cad Tree of Number
descending: TruthCadTree<Point3d> SortPoints(
CadTree<Point3d> points,
CadTree<double> keys,
bool descending = false)Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — | |
| keys | Cad Tree of Number | — | |
| descending | Truth | False |
Returns
| result | Cad Tree of Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Unit X
FunctionScales the world X axis per factor, retaining branches.
UnitX(factors: Cad Tree of Number) -> Cad Tree of Vector3d
CadTree<Vector3d> UnitX(CadTree<double> factors)
Parameters
| name | type | default | description |
|---|---|---|---|
| factors | Cad Tree of Number | — |
Returns
| result | Cad Tree of Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Unit Y
FunctionScales the world Y axis per factor, retaining branches.
UnitY(factors: Cad Tree of Number) -> Cad Tree of Vector3d
CadTree<Vector3d> UnitY(CadTree<double> factors)
Parameters
| name | type | default | description |
|---|---|---|---|
| factors | Cad Tree of Number | — |
Returns
| result | Cad Tree of Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Unit Z
FunctionScales the world Z axis per factor, retaining branches.
UnitZ(factors: Cad Tree of Number) -> Cad Tree of Vector3d
CadTree<Vector3d> UnitZ(CadTree<double> factors)
Parameters
| name | type | default | description |
|---|---|---|---|
| factors | Cad Tree of Number | — |
Returns
| result | Cad Tree of Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD
Y Coordinates
FunctionExtracts world Y coordinates without changing point-tree paths.
YCoordinates(points: Cad Tree of Point3d) -> Cad Tree of Number
CadTree<double> YCoordinates(CadTree<Point3d> points)
Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — |
Returns
| result | Cad Tree of Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Tree Geometry
- Package
- CAD