Divooka Reference

CAD Curves

34 nodes

On this page 34

Arc

Function

Circular arc, in radians, with end angle greater than start angle and a sweep no greater than one turn.

Signature
Arc -> Curve
    plane: Plane
    radius: Number
    startAngle: Number
    endAngle: Number
Curve Arc(
    Plane plane,
    double radius,
    double startAngle,
    double endAngle)

Parameters

nametypedefaultdescription
planePlane—
radiusNumber—
startAngleNumber—
endAngleNumber—

Returns

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

Area

Function

Area of a closed planar boundary, before subtracting holes.

Signature
Area(curve: Curve, plane: Plane, tolerance: Number) -> Number
double Area(Curve curve, Plane plane, double tolerance = 1E-06)

Parameters

nametypedefaultdescription
curveCurve—
planePlane—
toleranceNumber1E-06

Returns

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

Blend

Function

Creates a tangent or curvature continuous connector between the end of the first and start of the second curve.

Signature
Blend -> Curve
    first: Curve
    second: Curve
    continuity: Blend Continuity
    bulgeFirst: Number
    bulgeSecond: Number
Curve Blend(
    Curve first,
    Curve second,
    BlendContinuity continuity = BlendContinuity.Tangency,
    double bulgeFirst = 1,
    double bulgeSecond = 1)

Parameters

nametypedefaultdescription
firstCurve—
secondCurve—
continuityBlend ContinuityTangency
bulgeFirstNumber1
bulgeSecondNumber1

Returns

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

Boolean Regions

Function

Planar region boolean retaining outer/hole relationships. Open or noncoplanar inputs are rejected instead of being mistaken for an empty result.

Signature
BooleanRegions -> Curve Region Array
    first: Curve Array
    second: Curve Array
    plane: Plane
    operation: Curve Boolean Operation
    tolerance: Number
CurveRegion[] BooleanRegions(
    Curve[] first,
    Curve[] second,
    Plane plane,
    CurveBooleanOperation operation,
    double tolerance = 1E-06)

Parameters

nametypedefaultdescription
firstCurve Array—
secondCurve Array—
planePlane—
operationCurve Boolean Operation—
toleranceNumber1E-06

Returns

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

Circle

Function

Circle in a local frame. Radius must be finite and positive.

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
CAD Curves
Package
CAD

Closest Point

Function

Closest point on the curve.

Signature
ClosestPoint(curve: Curve, point: Point3d) -> Point3d
Point3d ClosestPoint(Curve curve, Point3d point)

Parameters

nametypedefaultdescription
curveCurve—
pointPoint3d—

Returns

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

Control Point Curve

Function

NURBS from control points with optional rational weights.

Signature
ControlPointCurve -> Curve
    points: Point3d Array
    degree: Integer
    weights: Number Array
Curve ControlPointCurve(
    Point3d[] points,
    int degree = 3,
    double[] weights)

Parameters

nametypedefaultdescription
pointsPoint3d Array—
degreeInteger3
weightsNumber Array—

Returns

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

Curvature At

Function

Curvature vector at a normalized parameter.

Signature
CurvatureAt(curve: Curve, parameter: Number) -> Vector3d
Vector3d CurvatureAt(Curve curve, double parameter)

Parameters

nametypedefaultdescription
curveCurve—
parameterNumber—

Returns

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

Divide Length

Function

Returns count+1 points dividing the curve into equal arc-length segments, including both endpoints.

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

Parameters

nametypedefaultdescription
curveCurve—
countInteger—

Returns

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

Divide Parameter

Function

Returns count+1 samples equally spaced in parameter space, including both endpoints; this is not equal arc-length division.

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

Parameters

nametypedefaultdescription
curveCurve—
countInteger—

Returns

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

Ellipse

Function

Elliptical curve in a local frame.

Signature
Ellipse(plane: Plane, radiusX: Number, radiusY: Number) -> Curve
Curve Ellipse(Plane plane, double radiusX, double radiusY)

Parameters

nametypedefaultdescription
planePlane—
radiusXNumber—
radiusYNumber—

Returns

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

Extend

Function

Extends one or both ends by model length using the selected continuation style.

Signature
Extend -> Curve
    curve: Curve
    end: Curve End
    length: Number
    style: Extend Style
Curve Extend(
    Curve curve,
    CurveEnd end,
    double length,
    ExtendStyle style = ExtendStyle.Smooth)

Parameters

nametypedefaultdescription
curveCurve—
endCurve End—
lengthNumber—
styleExtend StyleSmooth

Returns

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

Frame

Function

Creates a local frame from an origin and nonzero normal.

Signature
Frame(origin: Point3d, normal: Vector3d) -> Plane
Plane Frame(Point3d origin, Vector3d normal)

Parameters

nametypedefaultdescription
originPoint3d—
normalVector3d—

Returns

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

Frames

Function

Rotation minimizing frames at equal arc-length stations, suitable for orienting repeated components.

Signature
Frames(curve: Curve, segments: Integer) -> Plane Array
Plane[] Frames(Curve curve, int segments)

Parameters

nametypedefaultdescription
curveCurve—
segmentsInteger—

Returns

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

Interpolate

Function

NURBS interpolant through the supplied points. Degree is at least one and less than the point count.

Signature
Interpolate(points: Point3d Array, degree: Integer) -> Curve
Curve Interpolate(Point3d[] points, int degree = 3)

Parameters

nametypedefaultdescription
pointsPoint3d Array—
degreeInteger3

Returns

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

Intersections

Function

Curve intersections including overlap intervals; event parameters use each curve's native domain.

Signature
Intersections -> Curve Intersection Event Array
    first: Curve
    second: Curve
    tolerance: Number
CurveIntersectionEvent[] Intersections(
    Curve first,
    Curve second,
    double tolerance = 1E-06)

Parameters

nametypedefaultdescription
firstCurve—
secondCurve—
toleranceNumber1E-06

Returns

resultCurve Intersection Event Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
CAD Curves
Package
CAD

Join

Function

Joins curves whose endpoints meet within tolerance; disconnected chains remain separate.

Signature
Join(curves: Curve Array, tolerance: Number) -> Curve Array
Curve[] Join(Curve[] curves, double tolerance = 1E-06)

Parameters

nametypedefaultdescription
curvesCurve Array—
toleranceNumber1E-06

Returns

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

Length

Function

Curve length in model units.

Signature
Length(curve: Curve) -> Number
double Length(Curve curve)

Parameters

nametypedefaultdescription
curveCurve—

Returns

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

Line

Function

Line between distinct points.

Signature
Line(start: Point3d, end: Point3d) -> Curve
Curve Line(Point3d start, Point3d end)

Parameters

nametypedefaultdescription
startPoint3d—
endPoint3d—

Returns

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

Offset

Function

Offsets a planar curve by signed distance; reports failure when the kernel cannot construct the offset.

Signature
Offset -> Curve
    curve: Curve
    plane: Plane
    distance: Number
    tolerance: Number
Curve Offset(
    Curve curve,
    Plane plane,
    double distance,
    double tolerance = 1E-06)

Parameters

nametypedefaultdescription
curveCurve—
planePlane—
distanceNumber—
toleranceNumber1E-06

Returns

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

Offset Sharp

Function

Offsets a planar line/arc chain with sharp corners by intersecting the exact extended offset primitives. Positive distance lies to the left of travel. Collapsed or disconnected offsets report failure.

Signature
OffsetSharp -> Curve
    curve: Curve
    plane: Plane
    distance: Number
    tolerance: Number
Curve OffsetSharp(
    Curve curve,
    Plane plane,
    double distance,
    double tolerance = 1E-06)

Parameters

nametypedefaultdescription
curveCurve—
planePlane—
distanceNumber—
toleranceNumber1E-06

Returns

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

Pair

Function

Collects two independently copied curves in order, for loft sections or region inputs in visual graphs.

Signature
Pair(first: Curve, second: Curve) -> Curve Array
Curve[] Pair(Curve first, Curve second)

Parameters

nametypedefaultdescription
firstCurve—
secondCurve—

Returns

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

Point

Function

Creates a finite point.

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
CAD Curves
Package
CAD

Point At

Function

Evaluates a curve at a normalized parameter from zero through one.

Signature
PointAt(curve: Curve, parameter: Number) -> Point3d
Point3d PointAt(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
CAD Curves
Package
CAD

Polyline

Function

Polyline through copied points, optionally closing the last-to-first segment.

Signature
Polyline(points: Point3d Array, closed: Truth) -> Curve
Curve Polyline(Point3d[] points, bool closed = false)

Parameters

nametypedefaultdescription
pointsPoint3d Array—
closedTruthFalse

Returns

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

Project To Plane

Function

Orthogonally projects onto a plane; a collapsed projection reports failure.

Signature
ProjectToPlane -> Curve
    curve: Curve
    plane: Plane
    tolerance: Number
Curve ProjectToPlane(
    Curve curve,
    Plane plane,
    double tolerance = 1E-06)

Parameters

nametypedefaultdescription
curveCurve—
planePlane—
toleranceNumber1E-06

Returns

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

Rebuild

Function

Rebuilds a curve to a specified control point count and degree; this is an approximation.

Signature
Rebuild -> Curve
    curve: Curve
    controlPointCount: Integer
    degree: Integer
Curve Rebuild(
    Curve curve,
    int controlPointCount,
    int degree = 3)

Parameters

nametypedefaultdescription
curveCurve—
controlPointCountInteger—
degreeInteger3

Returns

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

Rectangle

Function

Rectangle in a local frame, beginning at its origin and extending in positive local X and Y.

Signature
Rectangle(plane: Plane, width: Number, height: Number) -> Curve
Curve Rectangle(Plane plane, double width, double height)

Parameters

nametypedefaultdescription
planePlane—
widthNumber—
heightNumber—

Returns

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

Reverse

Function

Reverses the curve without modifying its input.

Signature
Reverse(curve: Curve) -> Curve
Curve Reverse(Curve curve)

Parameters

nametypedefaultdescription
curveCurve—

Returns

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

Split

Function

Splits at normalized parameters strictly between zero and one, retaining all pieces.

Signature
Split(curve: Curve, parameters: Number Array) -> Curve Array
Curve[] Split(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
CAD Curves
Package
CAD

Tangent At

Function

Unit tangent at a normalized parameter.

Signature
TangentAt(curve: Curve, parameter: Number) -> Vector3d
Vector3d TangentAt(Curve curve, double parameter)

Parameters

nametypedefaultdescription
curveCurve—
parameterNumber—

Returns

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

Transformed

Function

Returns a transformed copy of a curve.

Signature
Transformed(curve: Curve, transform: Transform) -> Curve
Curve Transformed(Curve curve, Transform transform)

Parameters

nametypedefaultdescription
curveCurve—
transformTransform—

Returns

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

Trim

Function

Extracts the normalized interval [start,end] from a curve.

Signature
Trim(curve: Curve, start: Number, end: Number) -> Curve
Curve Trim(Curve curve, double start, double end)

Parameters

nametypedefaultdescription
curveCurve—
startNumber—
endNumber—

Returns

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

Vector

Function

Creates a finite vector.

Signature
Vector(x: Number, y: Number, z: Number) -> Vector3d
Vector3d Vector(double x, double y, double z)

Parameters

nametypedefaultdescription
xNumber—
yNumber—
zNumber—

Returns

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