New parametric CAD BREP kernel attempt
2 days ago
- #3D modeling
- #BREP workflows
- #Manifold CSG
- Feature-based modeling playground with BREP-style workflows on triangle meshes.
- Combines robust manifold CSG (via Manifold library) with face/edge representation, history pipeline, and Three.js visualization.
- Supports importing meshes (STL), repairing and grouping into faces, and performing boolean operations, fillets, chamfers, sweeps, lofts, etc.
- Active project with evolving APIs; expect rough edges.
- Key features include feature history pipeline, robust CSG, mesh-to-BREP conversion, mesh repair, and importers for STL and 3MF.
- Primitive solids and typical CAD features available (cube, sphere, cylinder, cone, torus, pyramid, sketch/extrude, sweep, loft, revolve, fillet, chamfer, mirror, boolean ops).
- Modular main toolbar with save, zoom to fit, wireframe toggle, about, and STL export.
- Selection filter in toolbar for quick access.
- Browser test runner with per-test canvas snapshots and log dialog.
- Implemented primitives: Cube, Cylinder, Cone, Sphere, Torus, Pyramid, Plane.
- Planned features: Datium, Loft.
- Implemented operations: Sketch, Extrude, Sweep, Revolve, Mirror, Boolean, Fillet, Chamfer, STL/3MF Import.
- Prerequisites: Node.js 18+ and pnpm.
- Development commands: pnpm install, pnpm dev, pnpm test, pnpm liveTesting.
- Top toolbar features: Save, Zoom to Fit, Wireframe toggle, About, Export STL, Selection Filter.
- STL/3MF import process includes parsing, optional centering, mesh repair, and triangle labeling into faces.
- Solid authoring uses arrays (triangles + per-triangle face labels) with consistent windings and orientation.
- Manifold-3d creates robust manifolds and propagates face IDs through CSG.
- Visualization via Three.js with semantic names for selection and downstream features.
- Solid type provides authoring, CSG, queries, and export functionalities.
- Face and edge visualization with semantic names for selection stability.
- Label-driven topology ensures stable references to faces and edges across operations.
- Roadmap includes optional GUIDs for selection sets and enhanced matching heuristics.
- Dependencies: Three.js, Manifold-3d, Vite, Nodemon.
- Project structure includes src/features/, src/BREP/, src/UI/, and standalone sandboxes.
- Development scripts: pnpm dev, pnpm build, pnpm test, pnpm liveTesting.
- License: Dual-licensing strategy managed by Autodrop3d LLC.