Skip to content

feat(cad): add SweepGeometry, HelixGeometry, HelixCurve3, and ExtrudeGeometry.extrudePath - #97

Merged
jbingham merged 1 commit into
mainfrom
feat/cad-sweep-and-helix
Nov 13, 2026
Merged

jbingham merged 1 commit into
mainfrom
feat/cad-sweep-and-helix

Conversation

@jbingham

Copy link
Copy Markdown
Collaborator

Summary

Adds Basic 3D Curve Sweeps & Helices to three-live-cad:

  • THREE.SweepGeometry(shape, path, options): Sweeps any 2D THREE.Shape (including .holes) along any 3D curve (Curve3, CatmullRomCurve3, or 3D waypoint array) using rotation-minimizing Bishop frames (parallel transport) with closed-loop holonomy untwisting, progressive twist, linear/3-point/callable scale (taper), watertight ear-clipped start/end caps, and non-degenerate tip triangle emission when tapering to zero scale.
  • THREE.ExtrudeGeometry(..., { extrudePath }): Automatically delegates to SweepGeometry when extrudePath (or path) is provided in ExtrudeGeometryOptions.
  • THREE.HelixCurve3 & THREE.HelixGeometry: Parametric 3D helical spine and swept coil/spring/thread geometry supporting cylindrical or conical radii (radius, topRadius), pitch / height, turns, 'right' | 'left' handedness, circular tubeRadius/wireRadius or custom 2D Shape profiles, twist, scale, and origin: 'center' | 'bottom'.

Testing

  • Added manifold (countBoundaryEdges === 0), normal-vs-winding (countNormalWindingMismatches === 0), closed-loop seam, hole-sweeping, zero-tip taper, and hostile-input fuzz tests in three-live/tests/three_author_test.ts.

@jbingham
jbingham merged commit 9c7a45c into main Nov 13, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants