3D Modeling
The 3D Modeling toolbox builds 3D models in two ways.
- CAD: exact solids, surfaces and curves. Boxes, cylinders and spheres; extrude, revolve, loft and sweep; fillet, chamfer and shell; union, subtract and intersect; text as solids; sketches solved by their constraints; measure area and volume; read and write STEP, STL, 3MF, DXF, OFF and SVG.
- Meshes: polygon models made from primitives (box, cylinder, ico sphere, gems), edited by selecting and extruding, beveling and bridging faces, grown by shape grammars and recursive trees, and placed in a preview scene.
Use CAD for parts with real dimensions, such as brackets, enclosures and plates. Use meshes for procedural art, buildings and plants.
- Included in: Divooka Explore and Divooka Compute Standard. In Compute, start a document from the CAD workload for the CAD nodes, or the Procedural Generation workload for the mesh nodes.
- Maturity: Usable · Support: Tier 2 (proposed) · what these mean
- Open it: node library (
Ctrl+Shift+Space) → 3D Modeling, or search for a node withCtrl+Space. - Examples and reference:
Ctrl+Shift+E→ 3D Modeling (87 examples) · node reference
New to graphs? Start with Your first program.
Main ideas
Models are values. A CAD node returns a new model; changing a number upstream builds a new model downstream. Lengths are in your chosen units (the examples use millimeters), angles in radians, Z is up.
Two ways to write the same model. Every CAD example comes twice: Functional, a Flows graph where wires carry models; and Procedural, a Routine where a CAD Builder collects edits step by step (Begin, Append, Cut, Build).
Example: a bore through a cylinder
The task: a cylinder 10 mm in radius and 12 mm tall, with a hole 3 mm in radius through its center.
Open 3D Modeling > Through Bore (Functional) (Ctrl+Shift+E):
- Cylinder, Radius 10, Height 12. The part.
- Cylinder, Radius 3, Height 14, then Translate, Z -1. The cutter. CAD cylinders stand on Z = 0, so moving it down 1 mm makes it stick out at both ends and cut clean through.
- Subtract, Subject the part, Cutter the moved cylinder.
- Volume measures the result, and Print Line prints it.
Run it with F5 and select Subtract to inspect the model. The volume is π × (10² − 3²) × 12, about 3,431 mm³.
To try more: change the cutter's Radius from 3 to 4. The bore grows; the outer cylinder stays 10. Then open Through Bore (Procedural) to see the same part built with a CAD Builder.
To use your own model: Read Step and Read Mesh in CAD Import bring in a STEP file or a mesh; Write Step and Write Stl write your result for other CAD programs or a 3D printer.
More examples to open
| Example | What it shows |
|---|---|
| Linear Pattern, Polar Pattern | Copies in a row and around a circle |
| Two Section Loft, Pipe Along Rail | Surfaces between curves |
| Raised Text, Engraved Text | Text fused onto or cut into a plate |
| Bracket with Fillets | A practical part with rounded edges |
| Instrument Enclosure | A box with walls, openings and mounting |
| Divooka Shape Grammar | A building grown by rules, as a mesh |
| OpenWeed folder | Parametric modeling with lists; see OpenWeed |
Tips and limits
- Exact geometry is slower than meshes. CAD booleans and fillets on exact surfaces take longer than mesh edits; keep counts in patterns modest while you design.
- Make cutters overlap. A cutter that only touches a face can leave a paper-thin skin; extend it past the part, as the bore example does.
- Text needs a font. System Font uses an installed font such as Arial; Read File loads a font file.
- Render it. To render a model with lights and materials, pass it to 3D Staging with Staging Model.
Goes well with: OpenWeed, 3D Staging, 3D Rendering.
What is in the toolbox
| Category | Some of its nodes |
|---|---|
| Mesh Primitive Selection | Brush Select Faces Box, Brush Select Faces Sphere, Brush Select Vertices Box, Brush Select Vertices Sphere and 103 more |
| CAD | Area, Assemble, Bodies, Bounds and 75 more |
| Transform | M00, M01, M02, M03 and 38 more |
| 3D Geometry | Array Copy, Bevel Edges, Bevel Faces, Bevel Mesh and 38 more |
| CAD Builder | Make CAD Builder, Add, Append, Build and 28 more |
| CAD Curves | Arc, Area, Blend, Boolean Regions and 30 more |
| Constraint Sketch | Angle, Arc, Build, Circle and 23 more |
| CAD 2D Shapes | Area, Bounds, Circle, Difference and 21 more |
| CAD Shape Builder | Make CAD Shape Builder, Add, Build, Clear and 20 more |
| 3D Preview Scene | Assign Object Color Material, Assign Random Object Color, Combine, Place and 5 more |
| CAD Surfaces | Area, Boundary, Closest Point, Curvature At and 13 more |
| Mesh Editing | Bevel, Bridge Edge Loops, Extrude Faces, Extrude Individual Faces and 4 more |
| Geometry Converters | Build Rpr Mesh Data, Build Triangle Mesh Indices, Build Vertex Buffer, Half Edge Mesh To N Gon and 6 more |
| Self Replicating Tree | Analyze, Example, Example2, Generate Mesh and 5 more |
| Constraint Cad | Curves, Dimensions, Exact Solid, Groups and 5 more |
| Declarative DSG Routines | Apply, Empty Shape, Evaluate Tree, Face Component Action and 3 more |
| CAD Evaluation | Count, Log, Message, Success and 2 more |
| CAD Export | Write3mf, Write Dxf, Write Off, Write Step and 2 more |
| Constraint Model | Dimensions, Groups, Is Sound, To Kerf Bytes and 2 more |
| Custom Tree Nodes | Configure Replication, Create Tree Node |
| CAD Surface Interpolation | Closed Cubic Loft, Cubic Curve, Cubic Loft, Cubic Loft At Parameters |
| CAD Import Result | Curves, Model, Surfaces, Warnings |
| CAD Fonts | From Data, Read File, System Font |
| CAD Text | Outlines, Regions, Solid |
| CAD Data Trees | Collect, Tree, Union Branches |
| CAD Import | Read Mesh, Read Shape, Read Step |
| Constraint Files | Export, Open, Save |
| Sketcher | Sketch |
See also
- 3D Modeling node reference
- Toolboxes - every other toolbox.