Constraint Cad
9 nodes
On this page 9
Curves
FunctionThe model's solved curves, exact, in millimetres: every line, arc, circle, spline and text outline its sketches draw, and what its extrusions, lathes and repeats make of them - their copies, and the edges an extrusion runs between the copies of their ends - with construction lines and hidden groups left out. With a group name, that group's curves alone.
Curves(model: Constraint Model, group: Text) -> Curve Array
Curve[] Curves(ConstraintModel model, string group)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Constraint Model | — | |
| group | Text | — |
Returns
| result | Curve Array |
Remarks
Round 25: what a sketch looks like once solved, as curves the CAD toolbox takes - and what the 3D view draws of a model, over its solid. A circle, a long arc or a spline Kerf keeps in several pieces comes out as one curve.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Constraint Cad
- Package
- CAD
Dimensions
FunctionThe dimensions that drive the model, with their names (the constraints' comments) and values.
Dimensions(model: Constraint Model) -> Constraint Dimension Array
ConstraintDimension[] Dimensions(ConstraintModel model)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Constraint Model | — |
Returns
| result | Constraint Dimension Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Constraint Cad
- Package
- CAD
Exact Solid
FunctionThe model's solid made exactly by the CAD kernel, in millimetres: every extrusion, lathe and revolve made from its sketch's exact curves rather than triangles, every repeat copied, each combined with the solid before it as the model combines it - joined, cut away, kept where they meet, or kept beside it. With a group name, the solid as it stands after that group.
ExactSolid -> Cad Model
model: Constraint Model
group: Text
name: TextCadModel ExactSolid(
ConstraintModel model,
string group,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| model | Constraint Model | — | The constraint model. |
| group | Text | — | The sketch group to stop after; empty for the whole model. |
| name | Text | — | What the solid's group is called; empty for "Exact Solid". |
Returns
| result | Cad Model |
Remarks
Round 26, Charles: "exact solids for sketches ... through the CAD kernel, not a mesh approximation". The model's own solid stays the triangle mesh Kerf builds (ConstraintCad.Solid); this is the same history made again from the solved curves, so its volume is the shape's own rather than a polygon's, its circles are cylinders, and every CAD node - fillets, sections, measuring, STEP - takes it. A helix and a linked part have no exact form here, and say so as the model's failure.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Constraint Cad
- Package
- CAD
Groups
FunctionThe model's feature history: each group's name, type, remaining degrees of freedom and errors.
Groups(model: Constraint Model) -> Constraint Group Array
ConstraintGroup[] Groups(ConstraintModel model)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Constraint Model | — |
Returns
| result | Constraint Group Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Constraint Cad
- Package
- CAD
Regions
FunctionThe closed regions a sketch bounds, exact, in millimetres: each the area inside an outer contour and outside the contours within it, its lines and arcs kept as lines and arcs. With a group name, that sketch's regions; without, every visible sketch's.
Regions -> Curve Region Array
model: Constraint Model
group: TextCurveRegion[] Regions(ConstraintModel model, string group)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Constraint Model | — | |
| group | Text | — |
Returns
| result | Curve Region Array |
Remarks
Round 26, Charles: "exact solids for sketches". A region is what the CAD toolbox extrudes, revolves or fills - Extrude Regions makes the sketch's solid from these without a triangle in between.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Constraint Cad
- Package
- CAD
Set Dimension
FunctionA new model with one dimension changed and everything re-solved: lengths in millimetres, angles in degrees. The dimension is found by its name (the constraint's comment) or by "#index" from ConstraintCad.Dimensions.
SetDimension -> Constraint Model
model: Constraint Model
dimension: Text
value: NumberConstraintModel SetDimension(
ConstraintModel model,
string dimension,
double value)Parameters
| name | type | default | description |
|---|---|---|---|
| model | Constraint Model | — | |
| dimension | Text | — | |
| value | Number | — |
Returns
| result | Constraint Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Constraint Cad
- Package
- CAD
Solid
FunctionThe solid the whole history builds, as a triangle mesh with shared vertices and normals; null when the model builds none. With a group name, the solid as it stands after that group.
Solid(model: Constraint Model, group: Text) -> Mesh
Mesh Solid(ConstraintModel model, string group)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Constraint Model | — | |
| group | Text | — |
Returns
| result | Mesh |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Constraint Cad
- Package
- CAD
Surface Area
FunctionThe surface area of the model's solid, in square millimetres; 0 when it builds none.
SurfaceArea(model: Constraint Model) -> Number
double SurfaceArea(ConstraintModel model)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Constraint Model | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Constraint Cad
- Package
- CAD
Volume
FunctionThe volume of the model's solid, in cubic millimetres; 0 when it builds none.
Volume(model: Constraint Model) -> Number
double Volume(ConstraintModel model)
Parameters
| name | type | default | description |
|---|---|---|---|
| model | Constraint Model | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Constraint Cad
- Package
- CAD