Plumb 3D is a deterministic, 100% pure safe Rust 3D DCC suite uniting parametric B-Rep CAD (sealed at v1.27.17 LTS) with Generation 2 Digital Sculpting (v2.33.0).
Toolchain: Rust 1.78+ stable (when building from source).
Installing from Source
git clone https://github.com/The-No-Hands-company/Plumb-3D.git
cd Plumb-3D
cargo test --workspace
cargo run -p app --release
Packaging a Release Bundle
Use scripts/package_release.sh to compile the release binary and bundle docs/, assets/, and README.md into dist/ with a SHA-256 checksum:
bash scripts/package_release.sh
Getting Started / Workspace Layout & Docking
Workspace Layout & Docking
Plumb 3D uses egui and egui_dock for a distraction-free, hardware-accelerated interface with zero panel overlap.
Core UI Regions
Top Menu & Workspace Switcher: File/Edit/Add/Render menus plus one-click templates (General, Hard-Surface, CAD Precision, Sculpting, UV & Retopo, LookDev).
Context Header Ribbon: Adapts automatically to the active mode — hiding CAD snapping controls in Sculpt Mode to keep the ribbon clean and scrollbar-free.
Scene Outliner: Hierarchical DAG tree, visibility toggles, and undo/redo action history.
Drag-and-Drop Docking: Enable under Window → Drag-and-Drop Docking Workspace to dock 3D Viewport, Outliner, Inspector, Geometry Nodes, UV Editor, Timeline, and Rhai Console.
Getting Started / Viewport Navigation & Shortcuts
Viewport Navigation & Shortcuts
Consistent navigation across Object, Edit, Sculpt, Curve, and Sketch modes.
ZBrush-Style Sculpt Orbiting: In Sculpt Mode, clicking and dragging on empty canvas orbits the camera automatically without deselecting your clay mesh.
Direct polygonal modeling backed by a strict 2-manifold Half-Edge BMesh kernel.
Core Edit Operators
Extrude (E): Region or individual face extrusion constructing watertight sidewalls.
Direct Push-Pull (Shift+E): Click-drag face extrusion with automatic boolean union/subtraction.
Inset (I): Inward border framing on selected faces.
Bevel (Ctrl+B): Multi-segment chamfering and profile rounding on edges or vertices.
Loop Cut (Ctrl+R) & Knife (K): Edge ring slicing and point-to-point surface cuts.
8-Directional Pie Menu (V): Gesture-driven radial tool selector at the cursor.
Selection Algorithms
Use Alt+L for Topological Edge Loops, L for Manifold Linked Shells, B for Marquee Box Select, Ctrl+I for Selection Inversion, and Shortest-Path Dijkstra selection.
Non-destructive parametric modeling fused seamlessly with exact analytic CAD surfaces.
3ds Max-Style Modifier Stack
Add, reorder, disable, or collapse modifiers non-destructively: Subdivide, CatmullClark, Bevel, Mirror, Weld, Boolean, Decimate, Displace, Taper, Morpher, WeightedNormal, and GeometryNodes.
2D Constraint Sketcher
Sketch Points, Lines, Circles, and Arcs on any 3D CAD Workplane (Alt+W), apply distance/angular constraints, solve deterministically, and extrude, revolve, loft, or sweep into watertight solids.
Trimmed NURBS & Class-A Diagnostics
Inspect Class-A continuity with Zebra reflection stripes, Gaussian/Mean curvature heatmaps, and porcupine curvature combs. Import/export via STEP/IGES interchange.
User Manual · Modeler & CAD / Engineering & Manufacturing
FEA, Sheet Metal, Mold Tooling & CAM
Industrial engineering pipelines built natively on top of Plumb 3D's BMesh and volumetric kernels.
FEA Structural Solver: 4-node tetrahedral (Tet4) linear elasticity, Cauchy stress recovery, Von Mises yield heatmaps, and Factor of Safety.
Sheet Metal: DIN 6935 K-factor bend deductions, base/edge flanges, bend reliefs, and CNC flat-pattern unfolding.
Injection Mold Tooling: Draft angle diagnostics, silhouette parting line extraction, and A/B core-cavity mold block splitting with polymer shrinkage factors (ABS, PP, PC, Nylon 66).
Mark seams in the 2D UV Editor or by dihedral angle, run Conformal Tutte Disk / LSCM unwrap or Smart UV projection, pack islands with area weighting, and inspect stretch via the ABF++ heatmap.
Switch to Sculpt Mode or the Sculpting workspace tab for a dedicated ZBrush / SculptForge digital clay environment.
Dedicated Sculptor Chrome
Left Shelf Tiles: 5 tactile preview tiles for Active Brush, Stroke Mode (Dots/DragRect/DragDot/Airbrush/Anchored), Alpha Texture, MatCap LookDev (Clay, Red Wax, Chrome, Normal, Studio), and Stencil Projection.
Bottom Brush Dock: Floating pill dock with all 14 primary brushes and hotkey badges.
Upper-Right Multi-Res HUD: Clickable Catmull-Clark level pips (1..5) with live vertex/quad counts.
Spacebar / RMB Quick Radial HUD: Press Space or Right-Click anywhere on the canvas to summon brushes, Radius/Strength sliders, Alpha stencils, and toggles for every specialized Sculpt HUD right under your cursor.
User Manual · The Sculptor / Brushes & Stroke Dynamics
30+ Brushes, LazyMouse & Symmetry
Primary Brush Hotkeys
D Draw · C Clay · B Clay Buildup · I Inflate · F Flatten
S Scrape · P Polish · G Grab · K Snake Hook · M Mask
[ / ] Brush Radius · - / = Brush Strength · X Toggle X Symmetry
LazyMouse Trailing Leash (Shift+L)
Enables spring-damped stroke stabilization. A glowing terracotta leash cord connects your cursor to the stabilized anchor bead, preventing jitter and accidental divots during crisp creasing.
Radial & Mirror Symmetry
Supports bilateral X/Y/Z mirroring plus rotational RadialSymmetry from 1 to 64 segments around arbitrary axes.
User Manual · The Sculptor / Multi-Res, DynTopo & OpenVDB
Multi-Res Pyramids, DynTopo & Voxel Remesh
Catmull-Clark Multi-Resolution
Ctrl+D: Subdivide to the next Catmull-Clark level (up to Level 5).
D / Shift+D: Step up to fine detail or down to coarse anatomical blocking non-destructively.
Corner-Table DynTopo & OpenVDB DynaMesh
Toggle DynTopo for localized adaptive edge splitting/collapsing inside the brush radius, or run OpenVDB Voxel Remesh / DynaMesh to fuse intersecting meshes into a single clean manifold surface.
User Manual · The Sculptor / Stencils, VDM & FaceSets
Screen-Space Stencils, 3D VDM & FaceSets
Screen-Space Stencil Projection (Shift+S)
Projects procedural alpha patterns (Leather, ChippedStone, Knurl, Pores, Noise, Scales) across the viewport with real-time Scale, Angle, and Opacity controls.
3D Vector Displacement (VDM)
Unlike scalar heightmaps, Mesh::apply_vdm_stamp displaces vertices in full tangent-space 3D (T, B, N), enabling overhangs, horns, and dragon scales.
FaceSets / Polygroups (Shift+F)
Paint a mask with M, press Ctrl+W to convert the masked region into a color-coded FaceSet, and use Alt+M to clear the mask.
User Manual · The Sculptor / Topology, Deformers & Diagnostics
Topology, Deformers & Diagnostics (v2.28–v2.33)
Access all specialized tool HUDs directly from the Spacebar Quick Radial HUD.
Slice / Array / Ridge Sharpen (v2.29.0): Slice along X=0 or Y=0 into polygroups without discarding halves; build Linear/Radial/Grid ArrayMeshes; auto-crease dihedral edges and sharpen ridges.
Solidify / Deform / Shrinkwrap (v2.30.0): Thicken open shells into watertight solids with rim quads; apply Twist/Bend/Taper/Spherize; shrinkwrap onto target meshes.
UV Relax / Attribute Transfer / Flat Subdivide (v2.33.0): Pin-border UV relaxation; transfer polypaint and masks across retopology; subdivide hard-surface meshes without smoothing silhouettes.
User Tutorials / Tutorial 1
Tutorial 1: Sci-Fi Cargo Crate (Box Modeling)
Learn classical box modeling in 10 minutes using Inset (I), Extrude (E), and Bevel (Ctrl+B).
Start in General 3D with the default 2m cube and press Tab to enter Edit Mode.
Press 3 for Face Mode, select the top face, press I to Inset by 0.15m.
Press E and drag downward -0.12m to recess the top panel. Repeat on the 4 side faces.
Switch to Inspector → Modifiers and add a Bevel Modifier (Width 0.03m, Segments 2) to catch studio highlights.
Assign a metallic PBR material and press F12 to path-trace your crate.
User Tutorials / Tutorial 2
Tutorial 2: Medieval Citadel Masterclass
Build a multi-tower fortress with battered talus bases, battlements, PBR stone/brass shaders, and night-sky path tracing.
Switch to the Hard-Surface workspace and delete the default cube.
Donjon Keep: Add a Cylinder (R=3.2m, H=2.0m, 24 segs) at Y=1.0m for the talus plinth, then stack the main tower (R=2.6m, H=7.5m) at Y=5.75m with a Bevel modifier.
Battlements: Inset the tower roof, extrude the parapet wall, and use ArrayMesh (Radial mode) to place crenelated merlons around the rim.
Curtain Walls & Bastions: Place rampart boxes and corner cylinders, then add warm point lights inside the gatehouse windows.
Render: Enable the 360 skybox and press F12 for progressive Monte Carlo path tracing.
User Tutorials / Tutorial 3
Tutorial 3: Organic Sculpting & Multi-Res Bust
Block out anatomy on a pinch-free Quad-Sphere, subdivide with Catmull-Clark, and stamp pores using Screen-Space Stencils.
Switch to the Sculpting workspace tab and spawn a Clay Sphere (6,144 uniform quads, zero polar pinching).
Use Grab (G) and Snake Hook (K) with X symmetry (X) to pull out the jaw, brow ridge, and neck.
Press Ctrl+D twice to reach Multi-Res Level 3, then block muscle forms with Clay Buildup (B) and smooth with Smooth.
Press Shift+L to enable the LazyMouse leash and carve crisp eyelids and lips with Crease.
Press Shift+S for Stencil Projection, select Pores or Leather, and stroke fine skin micro-detail.
Turn sculpted masks into crisp, 3D-printable armored plates.
On a sculpted torso mesh, press M and paint a chestplate mask.
Press Space → open Poke/Mask and click Blur / Sharpen for clean plate borders.
Press Ctrl+W to convert the mask into a new FaceSet polygroup.
Open Panels/Paint and click Extrude Panel Loops to bevel and raise armored seams, or use Solidify Shell to give extracted plates watertight 3D-printable thickness, then verify with Wall Thickness.
User Tutorials / Tutorial 5
Tutorial 5: Parametric Sketch to CAM G-Code
Design a precision bracket with 2D constraints, run FEA stress validation, and export CNC toolpaths.
Switch to CAD Precision, create a 2D Sketch on the XY workplane, and constrain an L-bracket profile with exact millimeter dimensions.
Extrude the sketch into a solid, add mounting holes, and apply a rolling-ball fillet.
Open Inspector → Analyze & Make and run the Tet4 FEA Solver to inspect Von Mises stress.
Switch to the CAM tab, select a flat endmill, generate 2.5D facing + contour toolpaths, and export RS-274 / GRBL G-code.
Developer Docs / System Architecture
7-Crate Architecture & Zero-Unsafe Policy
Why Plumb 3D is split into 7 strictly decoupled Cargo crates with zero foreign C/C++ FFI and zero unsafe blocks.
Headless Testability: geo-kernel and render-pathtracer have zero windowing or GPU dependencies — 600+ geometry tests run in seconds in CI without a display server.
Memory Safety Without C/C++ ABI Risk: Unlike Blender or ZBrush plugins, no C++ pointers or raw FFI can cause use-after-free crashes. All mesh arenas use generational SlotMap keys.
Developer Docs / Why 7 Geometric Kernels?
Why Plumb 3D Has 7 Geometric Kernels
No single mesh data structure excels at every 3D task. Plumb 3D implements 7 specialized representations and a Universal Bridge to convert between them.
Key Implementation Rules (Lessons from the Kernel)
Always call delete_face(fk) before replacing faces: Removing only from self.faces leaves stale half-edges in self.half_edges, causing subsequent add_face calls on those edges to fail with NonManifoldEdge.
Boundary Half-Edge Winding: When add_face creates a new edge A → B, it inserts a twin half-edge B → A with face: None and next: HalfEdgeKey::default(). Any tool stitching rim quads onto open boundaries (like solidify_shell) must traverse (he.origin, he.target) of the face: None half-edge so adjacent faces run in opposite directions.
Euler Invariant: Closed 2-manifold meshes satisfy V - E + F = 2(1 - g).
Developer Docs / Rendering Pipelines
wgpu 22 Viewport & SAH-BVH Path Tracer
Real-Time Viewport (render-viewport)
Built on wgpu 22 with WGSL shaders for infinite adaptive grids, MatCap Clay/Red Wax/Chrome shaders, RTAO contact shadows, NPR cel/halftone outlines, EWA-projected 3D Gaussian Splats, and GPU-driven Meshlet culling.
Monte Carlo Path Tracer (render-pathtracer)
Uses a Surface Area Heuristic (SAH) BVH built in parallel with rayon, importance-sampled Principled BSDF, subsurface scattering random walks, thin-lens camera DOF, and edge-preserving denoising.
Developer Docs / Engineering Rules & Contributing
Engineering Rules & Contributing
Zero unsafe: Every crate must remain 100% safe Rust.
Strict File Size Ceiling ($\le 630$ lines): Every new or modified .rs file must stay at or below 630 lines; decompose large features into focused submodules.
Zero Warnings: Run cargo clippy --workspace -- -D warnings and cargo test --workspace before every commit.
7-Bit ASCII in UI: Keep UI labels clean and compatible across all system fonts.
Plumb 3D Library & API / geo-kernel Module Atlas
Complete geo-kernel Module Library
Searchable reference of the core geometry, sculpting, CAD, and simulation modules inside crates/geo-kernel/src/.
Safe, sandboxed automation with infinite-loop instruction caps and direct access to Vec3, Primitives, and SceneGraph.
Vector Math & Primitives
// Create a procedural tower in Rhai
let p = vec3(0.0, 2.5, 0.0);
let dir = normalize(vec3(1.0, 1.0, 0.0));
let cube = Primitives::create_cube(2.0);
let cyl = Primitives::create_cylinder(1.2, 5.0, 24);
let torus = Primitives::create_torus(2.0, 0.4, 32, 16);
Safety Guarantees
Zero C FFI: Pure Rust execution inside the app process.
Instruction Budget: Infinite loops terminate cleanly without hanging the viewport.