CAD
79 nodes
On this page 79
Area
FunctionSums body surface areas in square model units, including interior faces of unfused groups.
Area(model: Cad Model) -> Number
double Area(CadModel model)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Assemble
FunctionCollects two models as separate assembly bodies. Its group is both.
Assemble -> Cad Model
first: Cad Model
second: Cad Model
name: TextCadModel Assemble(
CadModel first,
CadModel second,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| first | Cad Model | — | One model. |
| second | Cad Model | — | The other. |
| name | Text | — | What its groups are called; empty for "Assemble". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Bodies
FunctionReturns each body as an independently owned model for assembly manipulation.
Bodies(model: Cad Model) -> Cad Model Array
CadModel[] Bodies(CadModel model)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — |
Returns
| result | Cad Model Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Bounds
FunctionReturns combined bounds of trimmed geometry, or BoundingBox.Empty for an empty model.
Bounds(model: Cad Model) -> Bounding Box
BoundingBox Bounds(CadModel model)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — |
Returns
| result | Bounding Box |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Box
FunctionBox with a minimum corner at the origin, or centered on it when requested. Dimensions must exceed tolerance. Its groups: the whole box, and its sides "top", "bottom", "left", "right", "front" and "back", facing +Z, -Z, -X, +X, -Y and +Y.
Box -> Cad Model
width: Number
depth: Number
height: Number
centered: Truth
tolerance: Number
name: TextCadModel Box(
double width,
double depth,
double height,
bool centered = false,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| width | Number | — | Along X. |
| depth | Number | — | Along Y. |
| height | Number | — | Along Z. |
| centered | Truth | False | Centered on the origin rather than cornered on it. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Box". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Cap
FunctionCaps planar openings. Closed solids pass through unchanged; an open body that cannot be capped reports failure. Its groups: everything it gave, and "caps", the faces it closed the openings with.
Cap -> Cad Model
model: Cad Model
tolerance: Number
name: TextCadModel Cap(
CadModel model,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The open bodies. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Cap". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Chamfer
FunctionBevels the edges a description picks on one solid, cutting each back by a distance on both faces it joins. Its groups: everything it gave, and "chamfers", the flat faces it cut.
Chamfer -> Cad Model
model: Cad Model
edges: Text
distance: Number
tolerance: Number
name: TextCadModel Chamfer(
CadModel model,
string edges,
double distance,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The solid, one body. |
| edges | Text | — | Which edges, in words: "edges of the top face", "vertical edges", "all edges", "edges of Boss top". |
| distance | Number | — | How far back each edge is cut on both of its faces, in the model's units. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Chamfer". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Color
FunctionOverload 1 of 2
Color(model: Cad Model, color: Color, name: Text) -> Cad Model
CadModel Color(
CadModel model,
ColorElement color,
string name = "")Paints every face of the bodies, OpenSCAD's color(c): a face keeps its colour through whatever is done to it after - a union keeps each solid's colours, a cut face takes the colour of the cutter it came from, as OpenSCAD's preview shows them, and the faces a fillet or a shell makes take the colour most of the body is. A colour painted over another replaces it, as OpenSCAD's outer color() does. The colours go out to STEP and 3MF (Parametric.CadExport) and show in the 3D view. Its group is everything it painted.
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| color | Color | — | The colour, its alpha how opaque. |
| name | Text | — | What its group is called; empty for "Color". |
Returns
| result | Cad Model |
Overload 2 of 2
Color -> Cad Model
model: Cad Model
color: Text
alpha: Number
name: TextCadModel Color(
CadModel model,
string color,
double alpha = 1,
string name = "")Paints every face of the bodies a colour written as OpenSCAD writes one: color("red"), color("#ff8000"), color("SteelBlue", 0.5) (see Cad.ColorOf and Cad.Color).
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| color | Text | — | A colour's name, as CSS and OpenSCAD name colours, or "#rgb", "#rgba", "#rrggbb" or "#rrggbbaa". |
| alpha | Number | 1 | How opaque, from 0 to 1, times any alpha the text gives. |
| name | Text | — | What its group is called; empty for "Color". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Color Of
FunctionA colour written as OpenSCAD writes one: a name CSS and OpenSCAD both know, case aside ("red", "SteelBlue"), or a hex code "#rgb", "#rgba", "#rrggbb" or "#rrggbbaa".
ColorOf(color: Text, alpha: Number) -> Color
ColorElement ColorOf(string color, double alpha = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| color | Text | — | The colour's name or hex code. |
| alpha | Number | 1 | How opaque, from 0 to 1, times any alpha the text gives. |
Returns
| result | Color |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Color Rgb
FunctionA colour from its red, green and blue, each from 0 to 1, as OpenSCAD's color([r, g, b, a]) gives one.
ColorRgb -> Color
red: Number
green: Number
blue: Number
alpha: NumberColorElement ColorRgb(
double red,
double green,
double blue,
double alpha = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| red | Number | — | Red, from 0 to 1. |
| green | Number | — | Green, from 0 to 1. |
| blue | Number | — | Blue, from 0 to 1. |
| alpha | Number | 1 | How opaque, from 0 to 1. |
Returns
| result | Color |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Colors
FunctionThe colours a model's faces are painted, each once, in the order its bodies and faces first show them; empty for a model none of whose faces is painted.
Colors(model: Cad Model) -> Color Array
ColorElement[] Colors(CadModel model)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
Returns
| result | Color Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Cone
FunctionCapped cone with its base at Z=0 and apex on positive Z. Its groups: the whole cone, "bottom", its flat base, and "side", its slope.
Cone -> Cad Model
radius: Number
height: Number
tolerance: Number
name: TextCadModel Cone(
double radius,
double height,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| radius | Number | — | Its base's radius. |
| height | Number | — | Its height, along Z. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Cone". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Contains
FunctionTests whether a point is contained by any solid in the model.
Contains -> Truth
model: Cad Model
point: Point3d
strictlyInside: Truth
tolerance: Numberbool Contains(
CadModel model,
Point3d point,
bool strictlyInside = false,
double tolerance = 1E-06)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | |
| point | Point3d | — | |
| strictlyInside | Truth | False | |
| tolerance | Number | 1E-06 |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Cylinder
FunctionCapped cylinder along positive Z, base at Z=0 or centered in height. Its groups: the whole cylinder, "top" and "bottom", its flat ends, and "side", its round face.
Cylinder -> Cad Model
radius: Number
height: Number
centered: Truth
tolerance: Number
name: TextCadModel Cylinder(
double radius,
double height,
bool centered = false,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| radius | Number | — | Its radius. |
| height | Number | — | Its height, along Z. |
| centered | Truth | False | Centered on the origin in height rather than standing on it. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Cylinder". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Difference
FunctionSubtracts the union of every cutter body from the union of subject bodies. All disconnected output pieces are preserved. Its groups: everything it gave, "seams", the edges it made where the cut meets the subject, and "cut", the faces the cutters left - a hole's walls, a slot's floor.
Difference -> Cad Model
subject: Cad Model
cutters: Cad Model Array
tolerance: Number
name: TextCadModel Difference(
CadModel subject,
CadModel[] cutters,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| subject | Cad Model | — | What is cut. |
| cutters | Cad Model Array | — | What cuts it. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Difference". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Draft
FunctionTilts the flat faces a description picks on one solid by an angle, in radians, about where each meets a neutral plane - a mould's draft: positive angles narrow the part away from the plane. Its groups: everything it gave, and "drafted", the faces it tilted.
Draft -> Cad Model
model: Cad Model
faces: Text
angle: Number
neutralPlane: Plane
tolerance: Number
name: TextCadModel Draft(
CadModel model,
string faces,
double angle,
Plane neutralPlane,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The solid, one body. |
| faces | Text | — | Which faces, in words: "faces facing front and faces facing back", "flat faces except the top and bottom faces", "Box left and Box right". |
| angle | Number | — | How far each face tilts, in radians. |
| neutralPlane | Plane | — | The plane the faces keep their place on; its normal is the way the part is pulled from its mould. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Draft". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Edges
FunctionThe exact curves of the edges a description picks on every body - all of them unless told which - in body and edge order: what a fillet or a chamfer given the same words would round, to see before it does.
Edges(model: Cad Model, which: Text) -> Curve Array
Curve[] Edges(CadModel model, string which = "all edges")
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The model, of any number of bodies. |
| which | Text | all edges | Which edges, in words: "all edges", "edges parallel to Z", "edges of the top face", "circular edges", "edges of Boss top", "Fuse seams". |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Empty
FunctionA successful collection with no bodies; identity for union and difference tools.
Empty() -> Cad Model
CadModel Empty()
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Evaluate
FunctionExplicitly evaluates a graph value so its diagnostic result can be inspected in a node.
Evaluate(model: Cad Model) -> Cad Evaluation
CadEvaluation Evaluate(CadModel model)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — |
Returns
| result | Cad Evaluation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Extrude
FunctionExtrudes a copied planar profile with optional hole loops. Capped closed profiles produce solids; uncapped profiles produce sheets. Its groups: the whole extrusion, "start", the cap where the profile was, "end", the cap it was carried to, and "sides", every other face - the holes' walls among them.
Extrude -> Cad Model
profile: Curve
direction: Vector3d
capped: Truth
holes: Curve Array
tolerance: Number
name: TextCadModel Extrude(
Curve profile,
Vector3d direction,
bool capped = true,
Curve[] holes,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| profile | Curve | — | The closed or open profile, in a plane. |
| direction | Vector3d | — | Which way, and how far. |
| capped | Truth | True | Whether a closed profile's ends are capped into a solid. |
| holes | Curve Array | — | Closed loops inside the profile, cut through. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Extrude". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Extrude Face
FunctionPushes or pulls the one face a description picks on a solid along its outward normal by a distance: outward adds to the solid, a negative distance cuts into it. Its groups: everything it gave, "cap", the face it pushed out, and "walls", the faces it made between the two.
ExtrudeFace -> Cad Model
model: Cad Model
face: Text
distance: Number
tolerance: Number
name: TextCadModel ExtrudeFace(
CadModel model,
string face,
double distance,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The solid, one body. |
| face | Text | — | Which face, in words: "the top face", "the largest face", "Boss top". |
| distance | Number | — | How far, in the model's units: outward adds, a negative distance cuts in. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Extrude Face". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Extrude Regions
FunctionExtrudes planar boolean regions, preserving each region's holes. Its groups: the whole extrusion, "start", the caps where the regions were, "end", the caps they were carried to, and "sides", every other face.
ExtrudeRegions -> Cad Model
regions: Curve Region Array
direction: Vector3d
tolerance: Number
name: TextCadModel ExtrudeRegions(
CurveRegion[] regions,
Vector3d direction,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| regions | Curve Region Array | — | The regions, in one plane. |
| direction | Vector3d | — | Which way, and how far. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Extrude Regions". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Face Colors
FunctionThe colour each face of one body is painted, by face, or null for a face never painted.
FaceColors -> Optional Color Array
model: Cad Model
body: IntegerColorElement?[] FaceColors(CadModel model, int body = 0)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| body | Integer | 0 | Which body, counted from 0. |
Returns
| result | Optional Color Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Faces
FunctionThe faces a description picks on every body - all of them unless told which - each a sheet of its own in body and face order, its exact surface, holes and trims kept: what a shell or a draft given the same words would take, to see before it does.
Faces(model: Cad Model, which: Text) -> Cad Model Array
CadModel[] Faces(CadModel model, string which = "all faces")
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The model, of any number of bodies. |
| which | Text | all faces | Which faces, in words: "all faces", "the top face", "faces facing up", "cylindrical faces", "Boss top", "the top face of Plate". |
Returns
| result | Cad Model Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Faceted Sphere
FunctionOpenSCAD's faceted sphere, sphere(r, $fn = segments): rings of corners at (i + ½)·180°/rings from the top, rings being half the segments rounded up, each ring's first corner over +X; flat polygons close the top and the bottom and flat quadrilaterals join the rings. The exact sphere is Cad.Sphere. Its group is the solid.
FacetedSphere -> Cad Model
radius: Number
segments: Integer
tolerance: Number
name: TextCadModel FacetedSphere(
double radius,
int segments,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| radius | Number | — | The radius the corners lie on. |
| segments | Integer | — | The corners round each ring, at least three: OpenSCAD's $fn, or Cad2D.Fragments of the radius. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its group is called; empty for "Faceted Sphere". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Fillet
FunctionRounds the edges a description picks on one solid with a rolling ball of a radius: "edges parallel to Z", "edges of the top face", "edges of Boss top". Edges that run on smoothly from a picked one are rounded with it. Its groups: everything it gave, and "fillets", the round faces it made.
Fillet -> Cad Model
model: Cad Model
edges: Text
radius: Number
tolerance: Number
name: TextCadModel Fillet(
CadModel model,
string edges,
double radius,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The solid, one body. |
| edges | Text | — | Which edges, in words: "edges parallel to Z", "vertical edges", "edges of the top face", "edges of Boss top", "Boss rim". |
| radius | Number | — | The rolling ball's radius, in the model's units. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Fillet". |
Returns
| result | Cad Model |
Remarks
Round 26: picked by what they are, or by the groups the operations before gave them, rather than by index (Parametric.CadSelection), so a fillet keeps rounding the same edges after an edit upstream renumbers the body's edges.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
From Breps
FunctionImports independently owned copies of exact kernel geometry. Subsequent edits to the supplied B-reps cannot change this model.
FromBreps(breps: Brep Array) -> Cad Model
CadModel FromBreps(params Brep[] breps)
Parameters
| name | type | default | description |
|---|---|---|---|
| breps | Brep Array | — |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
From Surface
FunctionCreates an open B-rep from a copied surface. Solid-only operations report failure on open geometry. Its group is the sheet.
FromSurface -> Cad Model
surface: Surface
tolerance: Number
name: TextCadModel FromSurface(
Surface surface,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| surface | Surface | — | The surface. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "From Surface". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Frustum
FunctionA cone cut off square to its axis, standing on Z = 0 or centred on it - OpenSCAD's cylinder(h, r1, r2, center): its bottom radius and its top radius may differ, either may be zero for a point, and equal they make a cylinder. Given three or more segments it is OpenSCAD's faceted one, a frustum of a regular pyramid with a corner on +X ($fn = segments); otherwise its surfaces are exact. Its groups: the whole frustum, "top" and "bottom", its flat ends, and "side", every other face.
Frustum -> Cad Model
bottomRadius: Number
topRadius: Number
height: Number
centered: Truth
segments: Integer
tolerance: Number
name: TextCadModel Frustum(
double bottomRadius,
double topRadius,
double height,
bool centered = false,
int segments = 0,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| bottomRadius | Number | — | The radius at Z = 0 (or at the bottom when centred). |
| topRadius | Number | — | The radius at the top. |
| height | Number | — | Its height, along Z. |
| centered | Truth | False | Centred on the origin in height rather than standing on it. |
| segments | Integer | 0 | Zero for exact circles, or the number of corners of OpenSCAD's faceted one (at least three). |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Frustum". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Fuse
FunctionSet union of two models, retaining disconnected output bodies. Its groups: everything it gave, and "seams", the edges it made where the two cross.
Fuse -> Cad Model
first: Cad Model
second: Cad Model
tolerance: Number
name: TextCadModel Fuse(
CadModel first,
CadModel second,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| first | Cad Model | — | One model. |
| second | Cad Model | — | The other. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Fuse". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Group
FunctionCollects models without fusing touching or overlapping bodies. Arrays are copied when the node is created.
Group(models: Cad Model Array) -> Cad Model
CadModel Group(params CadModel[] models)
Parameters
| name | type | default | description |
|---|---|---|---|
| models | Cad Model Array | — |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Hull
FunctionThe convex hull of solids, OpenSCAD's hull(): the smallest convex solid holding them all. Exact where the solids allow it: solids of flat faces give the exact polyhedron of their corners, and solids standing upright between the same two heights - cylinders and prisms side by side, OpenSCAD's rounded plate - give the exact extrusion of the flat hull of their footprint. Other curved solids give the hull of their tessellation, a polyhedron within Chord of the true hull, and the result says so in its warnings. Its group is the hull.
Hull -> Cad Model
models: Cad Model Array
chord: Number
tolerance: Number
name: TextCadModel Hull(
CadModel[] models,
double chord = 0,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| models | Cad Model Array | — | The solids. |
| chord | Number | 0 | How far the tessellation of curved solids may stray from them, in model units; zero for a thousandth of the solids' size. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its group is called; empty for "Hull". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Hull Of Points
FunctionThe convex polyhedron of points: OpenSCAD's hull of points (the corners of tiny cubes, say), exact, its corners the given points. Its group is the hull.
HullOfPoints -> Cad Model
points: Point3d Array
tolerance: Number
name: TextCadModel HullOfPoints(
Point3d[] points,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| points | Point3d Array | — | At least four points not in one plane. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its group is called; empty for "Hull Of Points". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Intersection
FunctionIntersection of two body sets. Disjoint sets succeed with empty output. Its groups: everything it gave, and "seams", the edges it made where the two cross.
Intersection -> Cad Model
left: Cad Model
right: Cad Model
tolerance: Number
name: TextCadModel Intersection(
CadModel left,
CadModel right,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| left | Cad Model | — | One set. |
| right | Cad Model | — | The other. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Intersection". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Join
FunctionJoins coincident naked edges of open B-reps; does not boolean fuse overlapping solids. Its group is everything it gave.
Join -> Cad Model
models: Cad Model Array
tolerance: Number
name: TextCadModel Join(
CadModel[] models,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| models | Cad Model Array | — | The sheets. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Join". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Linear Array
FunctionCopies the model count times, including the original at index zero, without fusing bodies. A zero count returns empty. Each copy keeps the groups of what it copies, so "Boss top" is the top of every copy; its own group is all the copies.
LinearArray -> Cad Model
model: Cad Model
count: Integer
step: Vector3d
name: TextCadModel LinearArray(
CadModel model,
int count,
Vector3d step,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| count | Integer | — | How many, the original among them. |
| step | Vector3d | — | How far each copy is from the one before. |
| name | Text | — | What its group is called; empty for "Linear Array". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Linear Extrude
FunctionA flat shape carried up the Z axis into a solid, OpenSCAD's linear_extrude(height, center, twist, scale): as it rises the shape turns about the Z axis by up to Twist and is scaled about it along X and Y up to Scale X and Scale Y, turned first and then scaled. Without a twist the solid is exact; a twist's sides are fitted to the tolerance, since no exact surface makes them. Its groups: the whole extrusion, "start", the caps at the bottom, "end", the caps at the top, and "sides", every other face.
LinearExtrude -> Cad Model
shape: Cad Shape
height: Number
centered: Truth
twist: Number
scaleX: Number
scaleY: Number
tolerance: Number
name: TextCadModel LinearExtrude(
CadShape shape,
double height,
bool centered = false,
double twist = 0,
double scaleX = 1,
double scaleY = 1,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| shape | Cad Shape | — | The shape, in the XY plane. |
| height | Number | — | How high, in model units. |
| centered | Truth | False | Centred on Z = 0 in height rather than standing on it. |
| twist | Number | 0 | How far the top is turned, in radians, counter-clockwise seen from +Z. |
| scaleX | Number | 1 | The top's scale along X: 1 keeps the shape's size, 0 (with Scale Y) closes it at a point. |
| scaleY | Number | 1 | The top's scale along Y. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Linear Extrude". |
Returns
| result | Cad Model |
Remarks
OpenSCAD's twist is in degrees and turns clockwise seen from above; here it is in radians and counter-clockwise, so OpenSCAD's twist = 90 is -π/2. OpenSCAD's slices only set how finely its mesh follows the twist and have nothing to set here. Both scales zero close each region at an apex on the axis, a pyramid or a cone.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Loft
FunctionLofts ordered, copied cross-sections. Sections must have compatible topology and orientation. Its group is the loft.
Loft -> Cad Model
sections: Curve Array
capped: Truth
type: Loft Type
tolerance: Number
name: TextCadModel Loft(
Curve[] sections,
bool capped = true,
LoftType type = LoftType.Normal,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| sections | Curve Array | — | The sections, in order. |
| capped | Truth | True | Whether closed end sections are capped into a solid. |
| type | Loft Type | Normal | How the surface runs between the sections. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Loft". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Minkowski
FunctionThe Minkowski sum of solids, OpenSCAD's minkowski(): every point of one added to every point of the next. Exact where an exact sum is a solid the kernel makes. A solid plus a ball - OpenSCAD's rounded cube - is the solid offset by the radius with its outside edges rounded by it, checked against the definition at points all over it. Two solids standing upright between two heights, a cube and a cylinder, are the extrusion of the flat sum of their cross-sections. Two polyhedra give their exact polyhedral sum. Other curved solids are tessellated within Chord first, as OpenSCAD facets every curved solid, and the result says so in its warnings. Its group is the sum.
Minkowski -> Cad Model
models: Cad Model Array
chord: Number
tolerance: Number
name: TextCadModel Minkowski(
CadModel[] models,
double chord = 0,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| models | Cad Model Array | — | The solids, summed in turn. |
| chord | Number | 0 | How far the tessellation of curved solids may stray from them, in model units; zero for a thousandth of their size. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its group is called; empty for "Minkowski". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Mirror
FunctionMirrors in a plane. Its group is everything it mirrored.
Mirror(model: Cad Model, plane: Plane, name: Text) -> Cad Model
CadModel Mirror(CadModel model, Plane plane, string name = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| plane | Plane | — | The mirror's plane. |
| name | Text | — | What its group is called; empty for "Mirror". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Move Face
FunctionMoves the one flat face a description picks on a solid by X, Y and Z, and the faces around it follow: a wall made thicker, a step raised. Its groups: everything it gave, and "moved", the face it moved.
MoveFace -> Cad Model
model: Cad Model
face: Text
x: Number
y: Number
z: Number
tolerance: Number
name: TextCadModel MoveFace(
CadModel model,
string face,
double x,
double y,
double z,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The solid, one body. |
| face | Text | — | Which face, in words: "the right face", "the top face", "Boss right". |
| x | Number | — | How far along X, in the model's units. |
| y | Number | — | How far along Y. |
| z | Number | — | How far along Z. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Move Face". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Offset
FunctionOffsets a single closed solid without changing its topology. Unsupported topology changes produce a failed evaluation. Its group is everything it gave.
Offset -> Cad Model
model: Cad Model
distance: Number
tolerance: Number
name: TextCadModel Offset(
CadModel model,
double distance,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The solid, one body. |
| distance | Number | — | How far, outward, in the model's units. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its group is called; empty for "Offset". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Orient
FunctionOrients a model between local frames without scaling. Its group is everything it moved.
Orient -> Cad Model
model: Cad Model
from: Plane
to: Plane
name: TextCadModel Orient(
CadModel model,
Plane from,
Plane to,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| from | Plane | — | The frame they are in. |
| to | Plane | — | The frame they go to. |
| name | Text | — | What its group is called; empty for "Orient". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Pick Edges
FunctionWhich edges, chosen from a list instead of written: the words a Fillet's or a Chamfer's pin reads, made for it. With Of, among a group's edges, or of some faces.
PickEdges(which: Cad Edges, of: Text) -> Text
string PickEdges(CadEdges which = CadEdges.All, string of = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| which | Cad Edges | All | The edges to pick. |
| of | Text | — | Among what: a group's name, such as "Boss top", or words that pick faces, such as "the top face", for the edges that bound those faces. Empty for the whole solid. |
Returns
| Edges | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Pick Faces
FunctionWhich faces, chosen from a list instead of written: the words a Fillet's, a Shell's or a Draft's pin reads, made for it. With Of, among a group's faces, or of some edges.
PickFaces(which: Cad Faces, of: Text) -> Text
string PickFaces(CadFaces which = CadFaces.Top, string of = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| which | Cad Faces | Top | The faces to pick. |
| of | Text | — | Among what: a group's name, such as "Boss", or words that pick edges, such as "circular edges", for the faces those edges bound. Empty for the whole solid. |
Returns
| Faces | Text |
Remarks
Round 26's review, and Charles's answer to it: the words that pick are English and are not translated, being what a group's name is written among, so somebody working in another language chooses from a list here, which the editor shows in their language, and wires the result where the words would be typed. What comes out is those same words, so the two can be mixed: "Boss top" typed into Of, or this node's result joined to typed words downstream.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Pipe
FunctionPipe along a copied rail. Zero thickness makes a solid pipe; positive thickness makes a hollow pipe. Its group is the pipe.
Pipe -> Cad Model
rail: Curve
radius: Number
capped: Truth
thickness: Number
tolerance: Number
name: TextCadModel Pipe(
Curve rail,
double radius,
bool capped = true,
double thickness = 0,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| rail | Curve | — | The pipe's path. |
| radius | Number | — | Its outer radius. |
| capped | Truth | True | Whether its ends are capped. |
| thickness | Number | 0 | Its wall's thickness; zero for a solid rod. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Pipe". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Planar Face
FunctionCreates a planar trimmed sheet from a closed boundary and optional hole loops. Its group is the sheet.
PlanarFace -> Cad Model
boundary: Curve
holes: Curve Array
tolerance: Number
name: TextCadModel PlanarFace(
Curve boundary,
Curve[] holes,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| boundary | Curve | — | The closed boundary. |
| holes | Curve Array | — | Closed loops inside it, cut out. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Planar Face". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Polar Array
FunctionCopies around the world Z axis without fusing bodies. Full circles exclude a duplicate endpoint; partial arcs also use angle/count spacing. Each copy keeps the groups of what it copies; its own group is all the copies.
PolarArray -> Cad Model
model: Cad Model
count: Integer
angle: Number
name: TextCadModel PolarArray(
CadModel model,
int count,
double angle = 6.283185307179586,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| count | Integer | — | How many, the original among them. |
| angle | Number | 6.283185307179586 | The angle the copies spread over, in radians. |
| name | Text | — | What its group is called; empty for "Polar Array". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Polyhedron
FunctionA closed solid of flat faces through points, OpenSCAD's polyhedron(points, faces): each face a list of indices into the points. A face whose points lie in one plane is one exact planar face, of any number of sides; one whose points do not is cut into triangles, as OpenSCAD cuts it. The faces must close round a volume, each edge shared by two of them. OpenSCAD lists each face's points clockwise seen from outside; faces listed the other way round throughout are read too, and the solid turned outward. Its group is the solid.
Polyhedron -> Cad Model
points: Point3d Array
faces: Integer Array Array
tolerance: Number
name: TextCadModel Polyhedron(
Point3d[] points,
int[][] faces,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| points | Point3d Array | — | The corners. |
| faces | Integer Array Array | — | The faces, each a list of at least three indices into Points. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units: how far a face's points may stray from its plane and still be one flat face. |
| name | Text | — | What its group is called; empty for "Polyhedron". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Project Curve
FunctionProjects a curve in a direction onto all trimmed faces, retaining all resulting pieces.
ProjectCurve -> Curve Array
model: Cad Model
curve: Curve
direction: Vector3d
tolerance: NumberCurve[] ProjectCurve(
CadModel model,
Curve curve,
Vector3d direction,
double tolerance = 1E-06)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | |
| curve | Curve | — | |
| direction | Vector3d | — | |
| tolerance | Number | 1E-06 |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Projection
FunctionThe shadow of solids on the XY plane, OpenSCAD's projection(): everything a line parallel to Z through it would meet, as a flat shape; with Cut, the cut through them at Z = 0 instead, OpenSCAD's projection(cut = true) (Cad.Slice). The shadow's edges are the solids' own edges and the curves along which their faces turn from facing up to facing down, carried straight down: exact where those are lines and arcs - a box however it is turned, a cylinder lying down, a sphere, a torus with its hole - and fitted within the tolerance where the faces are freeform.
Projection -> Cad Shape
model: Cad Model
cut: Truth
tolerance: NumberCadShape Projection(
CadModel model,
bool cut = false,
double tolerance = 1E-06)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The solids. |
| cut | Truth | False | Whether to cut at Z = 0 rather than cast the whole shadow. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
Returns
| result | Cad Shape |
Remarks
Every edge and silhouette curve, carried down, cuts the plane into faces; a face is in the shadow when the solids lie over (or under) a point well inside it.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Pull Curve
FunctionPulls a curve onto trimmed B-rep faces by closest point.
PullCurve -> Curve Array
model: Cad Model
curve: Curve
tolerance: NumberCurve[] PullCurve(
CadModel model,
Curve curve,
double tolerance = 1E-06)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | |
| curve | Curve | — | |
| tolerance | Number | 1E-06 |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Resize
FunctionA solid scaled about the origin to a size, OpenSCAD's resize([x, y, z], auto): a size of zero keeps that direction as it is, or, with Auto, scales it by the largest factor of the sizes given, keeping the proportions. The sizes are read off the evaluated bodies' box. Its group is everything it scaled.
Resize -> Cad Model
model: Cad Model
x: Number
y: Number
z: Number
auto: Truth
name: TextCadModel Resize(
CadModel model,
double x,
double y,
double z,
bool auto = false,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| x | Number | — | The new size along X; zero to leave it. |
| y | Number | — | The new size along Y; zero to leave it. |
| z | Number | — | The new size along Z; zero to leave it. |
| auto | Truth | False | Scale the directions given zero with the others. |
| name | Text | — | What its group is called; empty for "Resize". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Revolve
FunctionRevolves a copied profile about a line. Angle is radians; cap behavior follows the profile and kernel. Its groups: the whole revolution, "caps", the flat faces closing a turn short of a whole one, and "sides", every face the profile swept.
Revolve -> Cad Model
profile: Curve
axisStart: Point3d
axisDirection: Vector3d
angle: Number
tolerance: Number
name: TextCadModel Revolve(
Curve profile,
Point3d axisStart,
Vector3d axisDirection,
double angle = 6.283185307179586,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| profile | Curve | — | The profile. |
| axisStart | Point3d | — | A point on the axis. |
| axisDirection | Vector3d | — | The axis's direction. |
| angle | Number | 6.283185307179586 | How far round, in radians. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Revolve". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Rotate
FunctionRotates around an axis through the supplied center, in radians. Its group is everything it turned.
Rotate -> Cad Model
model: Cad Model
angle: Number
axis: Vector3d
center: Point3d
name: TextCadModel Rotate(
CadModel model,
double angle,
Vector3d axis,
Point3d center,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| angle | Number | — | The angle, in radians. |
| axis | Vector3d | — | The axis's direction. |
| center | Point3d | — | A point on the axis. |
| name | Text | — | What its group is called; empty for "Rotate". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Rotate Extrude
FunctionA flat shape turned about the Z axis into a solid, OpenSCAD's rotate_extrude(angle): the shape's X becomes the distance from the axis and its Y the height, so the shape stands in the XZ plane, and it turns from there counter-clockwise seen from +Z. The solid is exact. Its groups: the whole revolution, "caps", the flat faces closing a turn short of a whole one, and "sides", every face the shape swept.
RotateExtrude -> Cad Model
shape: Cad Shape
angle: Number
tolerance: Number
name: TextCadModel RotateExtrude(
CadShape shape,
double angle = 6.283185307179586,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| shape | Cad Shape | — | The shape, in the XY plane, on one side of the Y axis. |
| angle | Number | 6.283185307179586 | How far round, in radians, counter-clockwise, or clockwise when negative: a whole turn by default. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Rotate Extrude". |
Returns
| result | Cad Model |
Remarks
As in OpenSCAD the shape must lie on one side of the Y axis, which becomes the Z axis; it may touch it along an edge. OpenSCAD's angle is in degrees; here it is in radians. A negative angle turns the other way, clockwise from the XZ plane, as OpenSCAD's does.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Rotate Xyz
FunctionA solid turned about the X, Y and Z axes in that order, each through the origin - OpenSCAD's rotate([x, y, z]), whose angles are in degrees where these are in radians. Its group is everything it turned.
RotateXyz -> Cad Model
model: Cad Model
x: Number
y: Number
z: Number
name: TextCadModel RotateXyz(
CadModel model,
double x,
double y,
double z,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| x | Number | — | The turn about X, first, in radians. |
| y | Number | — | The turn about Y, second. |
| z | Number | — | The turn about Z, last. |
| name | Text | — | What its group is called; empty for "Rotate XYZ". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Ruled
FunctionCreates an open ruled surface B-rep between copied curves. Its group is the sheet.
Ruled -> Cad Model
first: Curve
second: Curve
tolerance: Number
name: TextCadModel Ruled(
Curve first,
Curve second,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| first | Curve | — | One edge of the sheet. |
| second | Curve | — | The other. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Ruled". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Scale
FunctionScales about the origin. Factors may be negative for reflection but cannot be zero. Its group is everything it scaled.
Scale -> Cad Model
model: Cad Model
x: Number
y: Number
z: Number
name: TextCadModel Scale(
CadModel model,
double x,
double y,
double z,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| x | Number | — | The factor along X. |
| y | Number | — | The factor along Y. |
| z | Number | — | The factor along Z. |
| name | Text | — | What its group is called; empty for "Scale". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Section
FunctionReturns independently owned section curves through all bodies.
Section -> Curve Array
model: Cad Model
plane: Plane
tolerance: NumberCurve[] Section(
CadModel model,
Plane plane,
double tolerance = 1E-06)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | |
| plane | Plane | — | |
| tolerance | Number | 1E-06 |
Returns
| result | Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Select
FunctionNames a selection on a solid, as an operation names what it made: the faces or edges the words pick - over the solid's descriptions and its groups, "edges of Boss top", "vertical edges of Plate" - become a group of that Name, which later operations read as they read any group ("Boss rim"). The solid's geometry is untouched.
Select(model: Cad Model, name: Text, pick: Text) -> Cad Model
CadModel Select(CadModel model, string name, string pick)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The solid. |
| name | Text | — | The group's name: "Boss rim". |
| pick | Text | — | The words that pick its faces or edges: "edges of Boss top". |
Returns
| result | Cad Model |
Remarks
Round 26 (Charles): "The 'Bookkeep' can still be used to provide a generic set of operations and thus named as Select, which just adds new names to existing selections." The words are read when the group is, not before, and what they picked follows the solid's history as any group's members do. A name already a group on the solid is refused.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Shell
FunctionHollows one solid to walls of a thickness, leaving open the faces a description picks: "the top face" makes an open box. Left empty, it keeps every face and hollows the solid inside. Its groups: everything it gave, "inside", the walls and floor it lined the solid with, and "rim", what is left of the faces it opened.
Shell -> Cad Model
model: Cad Model
openFaces: Text
thickness: Number
tolerance: Number
name: TextCadModel Shell(
CadModel model,
string openFaces,
double thickness,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The solid, one body. |
| openFaces | Text | — | Which faces to leave open, in words: "the top face", "faces facing up", "Box top"; empty for none. |
| thickness | Number | — | The walls' thickness, inward from the outside. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Shell". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Slice
FunctionThe cut through a solid at a height, as a flat shape in the XY plane - OpenSCAD's projection(cut = true) of the solid moved down by Z. Bodies that overlap are cut together, as one.
Slice -> Cad Shape
model: Cad Model
z: Number
tolerance: NumberCadShape Slice(
CadModel model,
double z = 0,
double tolerance = 1E-06)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The solids. |
| z | Number | 0 | The height of the cut. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
Returns
| result | Cad Shape |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Snapshot
FunctionEvaluates and detaches construction history, preserving exact geometry.
Snapshot(model: Cad Model) -> Cad Model
CadModel Snapshot(CadModel model)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Sphere
FunctionSphere centered at the origin. Its group is the sphere.
Sphere -> Cad Model
radius: Number
tolerance: Number
name: TextCadModel Sphere(
double radius,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| radius | Number | — | Its radius. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Sphere". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Split
FunctionSplits every body by a plane, retaining both sides and all disconnected pieces. Its groups: everything it gave, and "seams", the edges it made along the plane.
Split -> Cad Model
model: Cad Model
plane: Plane
tolerance: Number
name: TextCadModel Split(
CadModel model,
Plane plane,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| plane | Plane | — | The plane that splits them. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Split". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Subtract
FunctionSubtracts one cutter model, including all of its bodies, from a subject model. Its groups: everything it gave, "seams", the edges it made where the cut meets the subject, and "cut", the faces the cutter left.
Subtract -> Cad Model
subject: Cad Model
cutter: Cad Model
tolerance: Number
name: TextCadModel Subtract(
CadModel subject,
CadModel cutter,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| subject | Cad Model | — | What is cut. |
| cutter | Cad Model | — | What cuts it. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Subtract". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Surface
FunctionA heightmap read from a file as a solid, OpenSCAD's surface(file, center, invert): a text file of heights, one row of numbers a line along X, the lines along Y, blank lines and lines starting with # skipped; or an image, each pixel's grey (its luminance, 0.2126 R + 0.7152 G + 0.0722 B) a height from 0 to 100, the top row of the image furthest along Y. See Cad.SurfaceFromHeights for the solid.
Surface -> Cad Model
file: Text
centered: Truth
invert: Truth
smooth: Truth
tolerance: Number
name: TextCadModel Surface(
string file,
bool centered = false,
bool invert = false,
bool smooth = false,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| file | Text | — | The text file (.dat or any other extension) or image (.png, .jpg, .bmp, .webp). |
| centered | Truth | False | Centred on the origin in X and Y. |
| invert | Truth | False | For an image, its heights turned upside down as OpenSCAD 2021.01 turns them, from 100/255 at black down to -99.6 at white; no effect on a text file. |
| smooth | Truth | False | The top an exact bicubic surface through the heights, rather than OpenSCAD's triangles. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its group is called; empty for "Surface". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Surface From Heights
FunctionA heightmap as a solid, OpenSCAD's surface() of numbers given here: height heights[y][x] over the point (x, y), one unit apart, closed by upright sides and a flat bottom at the lower of 0 and one unit under the lowest height, as OpenSCAD closes it (smooth, one unit under the lowest point of the top, which can dip between heights). As OpenSCAD draws it, each square between four heights is four triangles meeting over its middle at their mean height, and triangles lying in one plane are one face. Smooth, the top is instead an exact bicubic B-spline surface through every height, the sides flat faces under its edges.
SurfaceFromHeights -> Cad Model
heights: Number Array Array
centered: Truth
smooth: Truth
tolerance: Number
name: TextCadModel SurfaceFromHeights(
double[][] heights,
bool centered = false,
bool smooth = false,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| heights | Number Array Array | — | The heights, a row for each Y, each as long as the first; at least two by two. |
| centered | Truth | False | Centred on the origin in X and Y. |
| smooth | Truth | False | The top an exact bicubic surface through the heights, rather than OpenSCAD's triangles. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its group is called; empty for "Surface". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Sweep
FunctionSweeps a copied profile along one rail; freeform sweeps are fitted to tolerance. Its group is the sweep.
Sweep -> Cad Model
rail: Curve
profile: Curve
capped: Truth
tolerance: Number
name: TextCadModel Sweep(
Curve rail,
Curve profile,
bool capped = true,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| rail | Curve | — | The path. |
| profile | Curve | — | The section carried along it. |
| capped | Truth | True | Whether a closed profile's ends are capped into a solid. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Sweep". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Sweep Two Rails
FunctionSweeps a copied profile between two rails. Its group is the sweep.
SweepTwoRails -> Cad Model
rail1: Curve
rail2: Curve
profile: Curve
capped: Truth
tolerance: Number
name: TextCadModel SweepTwoRails(
Curve rail1,
Curve rail2,
Curve profile,
bool capped = true,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| rail1 | Curve | — | One rail. |
| rail2 | Curve | — | The other. |
| profile | Curve | — | The section carried between them. |
| capped | Truth | True | Whether a closed profile's ends are capped into a solid. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Sweep Two Rails". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Thicken
FunctionThickens a single open surface B-rep into a solid. Its group is everything it gave.
Thicken -> Cad Model
model: Cad Model
thickness: Number
tolerance: Number
name: TextCadModel Thicken(
CadModel model,
double thickness,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The sheet, one body. |
| thickness | Number | — | How thick, in the model's units. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its group is called; empty for "Thicken". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
To Mesh
FunctionTessellates exact bodies with shared face-boundary vertices, preserving solid topology for collision and analysis. Separate bodies remain separate components; chord tolerance and normal angle control approximation. Output geometry is independently owned.
ToMesh -> Mesh
model: Cad Model
chordTolerance: Number
angle: NumberMesh ToMesh(
CadModel model,
double chordTolerance = 0.01,
double angle = 0.15)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | |
| chordTolerance | Number | 0.01 | |
| angle | Number | 0.15 |
Returns
| result | Mesh |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Torus
FunctionRing torus around the Z axis. Major radius must exceed minor radius. Its group is the torus.
Torus -> Cad Model
majorRadius: Number
minorRadius: Number
tolerance: Number
name: TextCadModel Torus(
double majorRadius,
double minorRadius,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| majorRadius | Number | — | From the axis to the tube's middle. |
| minorRadius | Number | — | The tube's radius. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Torus". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Transformed
FunctionApplies a finite, invertible affine transform to every body. Transform composition uses column vectors: A*B applies B first. Its group is everything it moved.
Transformed -> Cad Model
model: Cad Model
transform: Transform
name: TextCadModel Transformed(
CadModel model,
Transform transform,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| transform | Transform | — | The transform. |
| name | Text | — | What its group is called; empty for "Transformed". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Translate
FunctionTranslates every body by a vector in model units. Its group is everything it moved.
Translate -> Cad Model
model: Cad Model
x: Number
y: Number
z: Number
name: TextCadModel Translate(
CadModel model,
double x,
double y,
double z,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| x | Number | — | How far along X. |
| y | Number | — | How far along Y. |
| z | Number | — | How far along Z. |
| name | Text | — | What its group is called; empty for "Translate". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Trim
FunctionTrims bodies to one side of a plane. Behind means opposite the plane normal. Its groups: everything it gave, and "seams", the edges it made along the plane.
Trim -> Cad Model
model: Cad Model
plane: Plane
keep: Cutter Side
tolerance: Number
name: TextCadModel Trim(
CadModel model,
Plane plane,
CutterSide keep = CutterSide.Behind,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — | The bodies. |
| plane | Plane | — | The plane that trims them. |
| keep | Cutter Side | Behind | Which side is kept. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Trim". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Union
FunctionUnites all bodies as a set. Disjoint bodies are retained, and an empty list produces an empty model. Its groups: everything it gave, and "seams", the edges it made where the bodies cross.
Union -> Cad Model
models: Cad Model Array
tolerance: Number
name: TextCadModel Union(
CadModel[] models,
double tolerance = 1E-06,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| models | Cad Model Array | — | The models. |
| tolerance | Number | 1E-06 | The model's tolerance, in its units. |
| name | Text | — | What its groups are called; empty for "Union". |
Returns
| result | Cad Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD
Volume
FunctionSums signed solid volumes, in cubic model units. Grouped overlapping bodies are counted separately; union them first for set volume.
Volume(model: Cad Model) -> Number
double Volume(CadModel model)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Cad Model | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD
- Package
- CAD