Weed Curve Lists
15 nodes
On this page 15
Alternating Branches
FunctionSelects alternating branches, retaining their paths and copying curve geometry.
AlternatingBranches -> Cad Tree of Curve
curves: Cad Tree of Curve
first: TruthCadTree<Curve> AlternatingBranches(
CadTree<Curve> curves,
bool first = true)Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — | |
| first | Truth | True |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD
Alternating Points
FunctionSelects alternating point items in each branch, starting with even indices when first is true.
AlternatingPoints -> Cad Tree of Point3d
points: Cad Tree of Point3d
first: TruthCadTree<Point3d> AlternatingPoints(
CadTree<Point3d> points,
bool first = true)Parameters
| name | type | default | description |
|---|---|---|---|
| points | Cad Tree of Point3d | — | |
| first | Truth | True |
Returns
| result | Cad Tree of Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD
Bounds Center
FunctionReturns the center of the accurate union bounding box of a nonempty curve list.
BoundsCenter(curves: Curve Array) -> Point3d
Point3d BoundsCenter(Curve[] curves)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — |
Returns
| result | Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD
Control Points
FunctionReturns the control vertices of each curve in its own child branch.
ControlPoints(curves: Cad Tree of Curve) -> Cad Tree of Point3d
CadTree<Point3d> ControlPoints(CadTree<Curve> curves)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — |
Returns
| result | Cad Tree of Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD
Cull Point Index
FunctionRemoves one point index from each branch, appending the single index-operation output path.
CullPointIndex -> Cad Tree of Point3d
points: Cad Tree of Point3d
index: IntegerCadTree<Point3d> CullPointIndex(
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 Curve Lists
- Package
- CAD
Extrude Groups
FunctionExtrudes each curve-group branch along Z by its corresponding height, keeping open profiles uncapped.
ExtrudeGroups -> Cad Model
curves: Cad Tree of Curve
heights: Number Array
capped: TruthCadModel ExtrudeGroups(
CadTree<Curve> curves,
double[] heights,
bool capped = false)Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — | |
| heights | Number Array | — | |
| capped | Truth | False |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD
Interleave
FunctionInterleaves two equally sized lists, equivalent to merging paired singleton branches and then flattening.
Interleave -> Curve Array
first: Curve Array
second: Curve ArrayCurve[] Interleave(Curve[] first, Curve[] second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | Curve Array | — | |
| second | Curve Array | — |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD
Item
FunctionReturns a curve from a list using cyclic or strict indexing.
Item(curves: Curve Array, index: Integer, wrap: Truth) -> Curve
Curve Item(Curve[] curves, int index = 0, bool wrap = true)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — | |
| index | Integer | 0 | |
| wrap | Truth | True |
Returns
| result | Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD
Merge
FunctionConcatenates two curve lists in source order.
Merge(first: Curve Array, second: Curve Array) -> Curve Array
Curve[] Merge(Curve[] first, Curve[] second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | Curve Array | — | |
| second | Curve Array | — |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD
Mirror X
FunctionMirrors a curve across the world YZ plane.
MirrorX(curve: Curve) -> Curve
Curve MirrorX(Curve curve)
Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — |
Returns
| result | Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD
Move Groups X
FunctionMoves each curve-group branch along X by its corresponding distance. Counts must agree.
MoveGroupsX -> Cad Tree of Curve
curves: Cad Tree of Curve
distances: Number ArrayCadTree<Curve> MoveGroupsX(
CadTree<Curve> curves,
double[] distances)Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — | |
| distances | Number Array | — |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD
Rectangular Cells
FunctionConstructs rectangular cells in the XY plane, one branch per X column and Y varying inside each branch.
RectangularCells -> Cad Tree of Curve
sizeX: Number
sizeY: Number
countX: Integer
countY: IntegerCadTree<Curve> RectangularCells(
double sizeX = 1,
double sizeY = 1,
int countX = 1,
int countY = 10)Parameters
| name | type | default | description |
|---|---|---|---|
| sizeX | Number | 1 | |
| sizeY | Number | 1 | |
| countX | Integer | 1 | |
| countY | Integer | 10 |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD
Scale Groups X
FunctionCopies a curve group for each X scale factor around a supplied center; each transformed group occupies one branch.
ScaleGroupsX -> Cad Tree of Curve
curves: Curve Array
factors: Number Array
center: Point3dCadTree<Curve> ScaleGroupsX(
Curve[] curves,
double[] factors,
Point3d center)Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — | |
| factors | Number Array | — | |
| center | Point3d | — |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD
Vertices
FunctionReturns a curve's control vertices, optionally reversing their order explicitly.
Vertices(curve: Curve, reverse: Truth) -> Point3d Array
Point3d[] Vertices(Curve curve, bool reverse = false)
Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — | |
| reverse | Truth | False |
Returns
| result | Point3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD
Widths
FunctionReturns the accurate X extent of each curve-group branch.
Widths(curves: Cad Tree of Curve) -> Number Array
double[] Widths(CadTree<Curve> curves)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Curve Lists
- Package
- CAD