CAD Shape Builder
24 nodes
On this page 24
Make CAD Shape Builder
FunctionCreates an empty session with a fixed, positive modeling tolerance.
CadShapeBuilder(tolerance: Number) -> Cad Shape Builder
CadShapeBuilder CadShapeBuilder(double tolerance = 1E-06)
Parameters
| name | type | default | description |
|---|---|---|---|
| tolerance | Number | 1E-06 |
Returns
| CAD Shape Builder | Cad Shape Builder |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Add
FunctionAdds a shape by union.
Add(Cad Shape Builder: Cad Shape Builder, shape: Cad Shape)
void Add(CadShapeBuilder Cad Shape Builder, CadShape shape)
Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| shape | Cad Shape | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Build
FunctionReturns the shape drawn so far.
Build(Cad Shape Builder: Cad Shape Builder) -> Cad Shape
CadShape Build(CadShapeBuilder Cad Shape Builder)
Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — |
Returns
| result | Cad Shape |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Clear
FunctionRemoves everything drawn.
Clear(Cad Shape Builder: Cad Shape Builder)
void Clear(CadShapeBuilder Cad Shape Builder)
Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Cut
FunctionTakes a shape away from everything drawn so far.
Cut(Cad Shape Builder: Cad Shape Builder, shape: Cad Shape)
void Cut(CadShapeBuilder Cad Shape Builder, CadShape shape)
Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| shape | Cad Shape | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Difference
FunctionAdds the first child of a block less every other: OpenSCAD's difference() { ... } of 2D children.
Difference
Cad Shape Builder: Cad Shape Builder
children: Action<Cad Shape Builder>void Difference(
CadShapeBuilder Cad Shape Builder,
Action<CadShapeBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| children | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Fill
FunctionAdds what a block draws without its holes: OpenSCAD's fill() { ... }.
Fill
Cad Shape Builder: Cad Shape Builder
children: Action<Cad Shape Builder>void Fill(
CadShapeBuilder Cad Shape Builder,
Action<CadShapeBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| children | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Children
FunctionThe children added so far, in order, each placed.
Children(Cad Shape Builder: Cad Shape Builder) -> Cad Shape Array
CadShape[] Children(CadShapeBuilder Cad Shape Builder)
Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — |
Returns
| result | Cad Shape Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Current
FunctionThe shape drawn so far.
Current(Cad Shape Builder: Cad Shape Builder) -> Cad Shape
CadShape Current(CadShapeBuilder Cad Shape Builder)
Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — |
Returns
| result | Cad Shape |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Tolerance
FunctionThe tolerance used by the session's booleans, in model units.
Tolerance(Cad Shape Builder: Cad Shape Builder) -> Number
double Tolerance(CadShapeBuilder Cad Shape Builder)
Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Hull
FunctionAdds the convex hull of everything a block draws: OpenSCAD's hull() { ... } of 2D children (Cad2D.Hull), exact.
Hull
Cad Shape Builder: Cad Shape Builder
children: Action<Cad Shape Builder>void Hull(
CadShapeBuilder Cad Shape Builder,
Action<CadShapeBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| children | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Intersect
FunctionKeeps only what everything drawn so far has in common with a shape.
Intersect
Cad Shape Builder: Cad Shape Builder
shape: Cad Shapevoid Intersect(
CadShapeBuilder Cad Shape Builder,
CadShape shape)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| shape | Cad Shape | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Intersection
FunctionAdds what every child of a block has in common: OpenSCAD's intersection() { ... } of 2D children.
Intersection
Cad Shape Builder: Cad Shape Builder
children: Action<Cad Shape Builder>void Intersection(
CadShapeBuilder Cad Shape Builder,
Action<CadShapeBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| children | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Minkowski
FunctionAdds the Minkowski sum of everything a block draws, each child added to the next: OpenSCAD's minkowski() { ... } of 2D children (Cad2D.Minkowski).
Minkowski
Cad Shape Builder: Cad Shape Builder
children: Action<Cad Shape Builder>void Minkowski(
CadShapeBuilder Cad Shape Builder,
Action<CadShapeBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| children | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Mirror
FunctionAdds what a block draws, mirrored in the line through the origin square to a direction: OpenSCAD's mirror([x, y]) { ... }.
Mirror
Cad Shape Builder: Cad Shape Builder
normalX: Number
normalY: Number
children: Action<Cad Shape Builder>void Mirror(
CadShapeBuilder Cad Shape Builder,
double normalX,
double normalY,
Action<CadShapeBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| normalX | Number | — | The mirror line's normal, along X. |
| normalY | Number | — | Along Y. |
| children | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Offset
FunctionAdds what a block draws, grown or shrunk with round corners: OpenSCAD's offset(r) { ... }.
Offset
Cad Shape Builder: Cad Shape Builder
radius: Number
children: Action<Cad Shape Builder>void Offset(
CadShapeBuilder Cad Shape Builder,
double radius,
Action<CadShapeBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| radius | Number | — | How far: positive grows, negative shrinks. |
| children | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Offset Delta
FunctionAdds what a block draws, grown or shrunk with sharp or cut corners: OpenSCAD's offset(delta, chamfer) { ... }.
OffsetDelta
Cad Shape Builder: Cad Shape Builder
delta: Number
chamfer: Truth
children: Action<Cad Shape Builder>void OffsetDelta(
CadShapeBuilder Cad Shape Builder,
double delta,
bool chamfer,
Action<CadShapeBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| delta | Number | — | How far: positive grows, negative shrinks. |
| chamfer | Truth | — | Cut the corners across. |
| children | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Projection
FunctionAdds the shadow of what a 3D block builds on the XY plane, or with Cut the cut through it at Z = 0: OpenSCAD's projection(cut) { ... } (Cad.Projection).
Projection
Cad Shape Builder: Cad Shape Builder
cut: Truth
children: Action<Cad Builder>void Projection(
CadShapeBuilder Cad Shape Builder,
bool cut,
Action<CadBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| cut | Truth | — | Whether to cut at Z = 0 rather than cast the whole shadow. |
| children | Action<Cad Builder> | — | The block, given a 3D session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Resize
FunctionAdds what a block draws, scaled about the origin to a size: OpenSCAD's resize([x, y], auto) { ... }.
Resize
Cad Shape Builder: Cad Shape Builder
width: Number
height: Number
auto: Truth
children: Action<Cad Shape Builder>void Resize(
CadShapeBuilder Cad Shape Builder,
double width,
double height,
bool auto,
Action<CadShapeBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| width | Number | — | The new width; zero to leave it. |
| height | Number | — | The new height; zero to leave it. |
| auto | Truth | — | Scale a direction given zero with the other. |
| children | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Rotate
FunctionAdds what a block draws, turned about the origin counter-clockwise: OpenSCAD's rotate(a) { ... }, in radians.
Rotate
Cad Shape Builder: Cad Shape Builder
angle: Number
children: Action<Cad Shape Builder>void Rotate(
CadShapeBuilder Cad Shape Builder,
double angle,
Action<CadShapeBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| angle | Number | — | How far, in radians. |
| children | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Scale
FunctionAdds what a block draws, scaled about the origin: OpenSCAD's scale([x, y]) { ... }.
Scale
Cad Shape Builder: Cad Shape Builder
x: Number
y: Number
children: Action<Cad Shape Builder>void Scale(
CadShapeBuilder Cad Shape Builder,
double x,
double y,
Action<CadShapeBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| x | Number | — | The factor along X. |
| y | Number | — | The factor along Y. |
| children | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Slice
FunctionAdds the cut through what a 3D block builds at Z = 0: OpenSCAD's projection(cut = true) { ... }.
Slice
Cad Shape Builder: Cad Shape Builder
children: Action<Cad Builder>void Slice(
CadShapeBuilder Cad Shape Builder,
Action<CadBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| children | Action<Cad Builder> | — | The block, given a 3D session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Translate
FunctionAdds what a block draws, moved: OpenSCAD's translate([x, y]) { ... }.
Translate
Cad Shape Builder: Cad Shape Builder
x: Number
y: Number
children: Action<Cad Shape Builder>void Translate(
CadShapeBuilder Cad Shape Builder,
double x,
double y,
Action<CadShapeBuilder> children)Parameters
| name | type | default | description |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| x | Number | — | How far along X. |
| y | Number | — | How far along Y. |
| children | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD
Begin
FunctionCreates an empty flat session from a graph node.
Begin(tolerance: Number) -> Cad Shape Builder
CadShapeBuilder Begin(double tolerance = 1E-06)
Parameters
| name | type | default | description |
|---|---|---|---|
| tolerance | Number | 1E-06 |
Returns
| result | Cad Shape Builder |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- CAD Shape Builder
- Package
- CAD