Weed Planar Curves
36 nodes
On this page 36
Centroid
FunctionComputes a closed planar profile's area centroid.
Centroid -> Point3d
curve: Curve
plane: Plane
tolerance: NumberPoint3d Centroid(
Curve curve,
Plane plane,
double tolerance = 0.001)Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — | |
| plane | Plane | — | |
| tolerance | Number | 0.001 |
Returns
| result | Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Centroids
FunctionComputes the area centroid of each closed planar curve.
Centroids -> Point3d Array
curves: Curve Array
plane: Plane
tolerance: NumberPoint3d[] Centroids(
Curve[] curves,
Plane plane,
double tolerance = 0.001)Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — | |
| plane | Plane | — | |
| tolerance | Number | 0.001 |
Returns
| result | Point3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Close
FunctionAdds a straight closing segment to each open curve; closed inputs are copied unchanged.
Close(curves: Curve Array, tolerance: Number) -> Curve Array
Curve[] Close(Curve[] curves, double tolerance = 0.001)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — | |
| tolerance | Number | 0.001 |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Collection
FunctionCopies a single curve into a list.
Collection(curve: Curve) -> Curve Array
Curve[] Collection(Curve curve)
Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Difference
FunctionSubtracts closed planar curve regions, retaining outer boundaries and holes as separate loops in each region's order.
Difference -> Curve Array
subjects: Curve Array
cutters: Curve Array
plane: Plane
tolerance: NumberCurve[] Difference(
Curve[] subjects,
Curve[] cutters,
Plane plane,
double tolerance = 0.001)Parameters
| name | type | default | description |
|---|---|---|---|
| subjects | Curve Array | — | |
| cutters | Curve Array | — | |
| plane | Plane | — | |
| tolerance | Number | 0.001 |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
End
FunctionReturns the curve end point.
End(curve: Curve) -> Point3d
Point3d End(Curve curve)
Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — |
Returns
| result | Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
End Points
FunctionReturns every start followed by every end, matching merged endpoint lists.
EndPoints(curves: Curve Array) -> Point3d Array
Point3d[] EndPoints(Curve[] curves)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — |
Returns
| result | Point3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Ends
FunctionReturns the end of each curve in source order.
Ends(curves: Curve Array) -> Point3d Array
Point3d[] Ends(Curve[] curves)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — |
Returns
| result | Point3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Explode
FunctionExplodes composite curves into their constituent segments, adding each curve's item index to the path.
Explode(curves: Cad Tree of Curve) -> Cad Tree of Curve
CadTree<Curve> Explode(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 Planar Curves
- Package
- CAD
Graft
FunctionCopies each profile into its own singleton branch.
Graft(curves: Curve Array) -> Cad Tree of Curve
CadTree<Curve> Graft(Curve[] curves)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Heights
FunctionReturns world Y bounding extents of curves.
Heights(curves: Curve Array) -> Number Array
double[] Heights(Curve[] curves)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Intersection Parameters
FunctionReturns intersection parameters on the first curve, including both limits of overlapping intervals.
IntersectionParameters -> Number Array
first: Curve
second: Curve
tolerance: Numberdouble[] IntersectionParameters(
Curve first,
Curve second,
double tolerance = 0.001)Parameters
| name | type | default | description |
|---|---|---|---|
| first | Curve | — | |
| second | Curve | — | |
| tolerance | Number | 0.001 |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Items
FunctionReturns one curve per branch, with cyclic indexing so -1 selects the last section.
Items(curves: Cad Tree of Curve, index: Integer) -> Curve Array
Curve[] Items(CadTree<Curve> curves, int index = -1)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — | |
| index | Integer | -1 |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Join Branches
FunctionJoins each branch independently and flattens the resulting curves in branch order.
JoinBranches -> Curve Array
curves: Cad Tree of Curve
tolerance: NumberCurve[] JoinBranches(
CadTree<Curve> curves,
double tolerance = 0.001)Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — | |
| tolerance | Number | 0.001 |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Lines Between
FunctionCreates lines between longest-matched endpoint lists.
LinesBetween -> Curve Array
starts: Point3d Array
ends: Point3d ArrayCurve[] LinesBetween(Point3d[] starts, Point3d[] ends)
Parameters
| name | type | default | description |
|---|---|---|---|
| starts | Point3d Array | — | |
| ends | Point3d Array | — |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Loft Branches
FunctionCreates one normal cubic loft per branch of ordered section curves.
LoftBranches(sections: Cad Tree of Curve) -> Cad Model
CadModel LoftBranches(CadTree<Curve> sections)
Parameters
| name | type | default | description |
|---|---|---|---|
| sections | Cad Tree of Curve | — |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Loft Branches At Parameters
FunctionLofts every branch at the same explicit section parameters, so common segment endpoints produce coincident patch boundaries.
LoftBranchesAtParameters -> Cad Model
sections: Cad Tree of Curve
parameters: Number ArrayCadModel LoftBranchesAtParameters(
CadTree<Curve> sections,
double[] parameters)Parameters
| name | type | default | description |
|---|---|---|---|
| sections | Cad Tree of Curve | — | |
| parameters | Number Array | — |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Mirror At X
FunctionMirrors corresponding curves across YZ planes at supplied origins.
MirrorAtX -> Curve Array
curves: Curve Array
origins: Point3d ArrayCurve[] MirrorAtX(Curve[] curves, Point3d[] origins)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — | |
| origins | Point3d Array | — |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Mirror Chords
FunctionMirrors each planar curve across the vertical plane through its endpoint chord.
MirrorChords(curves: Curve Array) -> Curve Array
Curve[] MirrorChords(Curve[] curves)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Move Points
FunctionMoves every point by a common vector.
MovePoints -> Point3d Array
points: Point3d Array
motion: Vector3dPoint3d[] MovePoints(Point3d[] points, Vector3d motion)
Parameters
| name | type | default | description |
|---|---|---|---|
| points | Point3d Array | — | |
| motion | Vector3d | — |
Returns
| result | Point3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Move Sections
FunctionMoves each branch's curve items along Z by corresponding heights; list lengths must agree.
MoveSections -> Cad Tree of Curve
curves: Cad Tree of Curve
heights: Number ArrayCadTree<Curve> MoveSections(
CadTree<Curve> curves,
double[] heights)Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Cad Tree of Curve | — | |
| heights | Number Array | — |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Offset Toward
FunctionOffsets each profile toward a matched side point at every supplied distance; each profile owns one branch of ordered sections.
OffsetToward -> Cad Tree of Curve
curves: Curve Array
sidePoints: Point3d Array
distances: Number Array
plane: Plane
tolerance: NumberCadTree<Curve> OffsetToward(
Curve[] curves,
Point3d[] sidePoints,
double[] distances,
Plane plane,
double tolerance = 0.001)Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — | |
| sidePoints | Point3d Array | — | |
| distances | Number Array | — | |
| plane | Plane | — | |
| tolerance | Number | 0.001 |
Returns
| result | Cad Tree of Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Orient Increasing X
FunctionOrients an open curve from the endpoint with the smaller world X coordinate. This makes a join's otherwise unspecified direction explicit.
OrientIncreasingX(curve: Curve) -> Curve
Curve OrientIncreasingX(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 Planar Curves
- Package
- CAD
Planar Faces
FunctionCreates independent planar faces from closed profiles.
PlanarFaces(curves: Curve Array, tolerance: Number) -> Cad Model
CadModel PlanarFaces(Curve[] curves, double tolerance = 0.001)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — | |
| tolerance | Number | 0.001 |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Point Y
FunctionReturns world Y coordinates.
PointY(point: Point3d) -> Number
double PointY(Point3d point)
Parameters
| name | type | default | description |
|---|---|---|---|
| point | Point3d | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Rotate At Origins
FunctionRotates copies around corresponding origins and angles using longest-list matching.
RotateAtOrigins -> Curve Array
curve: Curve
origins: Point3d Array
angles: Number ArrayCurve[] RotateAtOrigins(
Curve curve,
Point3d[] origins,
double[] angles)Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — | |
| origins | Point3d Array | — | |
| angles | Number Array | — |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Scale
FunctionUniformly scales a curve about a supplied center.
Scale(curve: Curve, center: Point3d, factor: Number) -> Curve
Curve Scale(Curve curve, Point3d center, double factor)
Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — | |
| center | Point3d | — | |
| factor | Number | — |
Returns
| result | Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Shatter Closed
FunctionSplits a closed curve into cyclic pieces; the original seam is joined through unless it is itself a cut.
ShatterClosed -> Curve Array
curve: Curve
parameters: Number Array
tolerance: NumberCurve[] ShatterClosed(
Curve curve,
double[] parameters,
double tolerance = 0.001)Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — | |
| parameters | Number Array | — | |
| tolerance | Number | 0.001 |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Sort Centroid Y
FunctionSorts closed profiles by their area centroid's world Y coordinate.
SortCentroidY -> Curve Array
curves: Curve Array
plane: Plane
tolerance: NumberCurve[] SortCentroidY(
Curve[] curves,
Plane plane,
double tolerance = 0.001)Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — | |
| plane | Plane | — | |
| tolerance | Number | 0.001 |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Sort Length
FunctionSorts curves by measured arc length, retaining stable order for ties.
SortLength(curves: Curve Array) -> Curve Array
Curve[] SortLength(Curve[] curves)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Start
FunctionReturns the curve start point.
Start(curve: Curve) -> Point3d
Point3d Start(Curve curve)
Parameters
| name | type | default | description |
|---|---|---|---|
| curve | Curve | — |
Returns
| result | Point3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Starts
FunctionReturns the start of each curve in source order.
Starts(curves: Curve Array) -> Point3d Array
Point3d[] Starts(Curve[] curves)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — |
Returns
| result | Point3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Sublist
FunctionExtracts an inclusive interval of list indices with strict bounds.
Sublist -> Curve Array
curves: Curve Array
first: Integer
last: IntegerCurve[] Sublist(Curve[] curves, int first = 0, int last = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — | |
| first | Integer | 0 | |
| last | Integer | 1 |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Transpose Sections
FunctionTransposes segment items against the final section-path index: {A;B}(i) becomes {A;i}(B). Missing segments are rejected so an incomplete surface cannot appear successful.
TransposeSections(segments: Cad Tree of Curve) -> Cad Tree of Curve
CadTree<Curve> TransposeSections(CadTree<Curve> segments)
Parameters
| name | type | default | description |
|---|---|---|---|
| segments | 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 Planar Curves
- Package
- CAD
Vectors Between
FunctionConstructs vectors between corresponding points using longest-list matching.
VectorsBetween -> Vector3d Array
starts: Point3d Array
ends: Point3d ArrayVector3d[] VectorsBetween(Point3d[] starts, Point3d[] ends)
Parameters
| name | type | default | description |
|---|---|---|---|
| starts | Point3d Array | — | |
| ends | Point3d Array | — |
Returns
| result | Vector3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD
Widths
FunctionReturns world X bounding extents of curves.
Widths(curves: Curve Array) -> Number Array
double[] Widths(Curve[] curves)
Parameters
| name | type | default | description |
|---|---|---|---|
| curves | Curve Array | — |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Planar Curves
- Package
- CAD