cad-editor/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 8c72a06790 feat(solid3d): ISOLINES and silhouettes on sphere and torus faces
Extends the curved-face wireframe treatment from cones to spheres and tori, so
a solid built from those faces reads the way a cylinder already did.

ISOLINES: sphere faces get meridian lines across the face's colatitude span at
evenly spaced longitudes; torus faces get minor cross-section circles at evenly
spaced revolution angles. Both clip to the face's own parametric window (from
the boundary polygon via a shared `angular_span` gap-finder), so a partial
sphere or torus arc doesn't draw lines out over the missing part.

Silhouettes (DISPSILH): `CurvedGen` becomes an enum. A sphere silhouettes as
the great circle perpendicular to the view, clipped to the face window; a torus
as the two curves where the tube turns edge-on, traced around the revolution.

The silhouette now uses the camera's view *direction* alone, not the eye
position — a single parallel direction for the whole scene — so the outline
follows the view angle, holds still under pan, and doesn't foreshorten, which
is the orthographic silhouette a CAD wireframe expects.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-17 23:30:05 +03:00
..
app fix(mtext-editor): keep UTM text sharp, preserve columns through an edit 2026-07-17 18:57:16 +03:00
entities feat(solid3d): draw ISOLINES on curved faces in wireframe 2026-07-17 19:45:42 +03:00
io fix(linetype): route placeholder-complex linetypes to the dash path 2026-07-17 02:58:59 +03:00
modules fix(pick): hit-test lineweight width and thickness walls 2026-07-17 14:58:55 +03:00
plugin fix(plugin): upgrade a loaded plugin in place instead of failing on a locked binary 2026-07-15 11:35:10 -07:00
scene feat(solid3d): ISOLINES and silhouettes on sphere and torus faces 2026-07-17 23:30:05 +03:00
shaders feat(web): render hatches on WebGL2 via a texture-backed renderer 2026-07-14 00:53:51 +03:00
ui fix(overlay): clip dashed snap/track guides to the viewport 2026-07-17 13:52:29 +03:00
cli.rs feat(open): open drawings in the running editor 2026-07-15 15:18:16 +03:00
command.rs feat(commands): step POLYSOLID (select polyline, then width + height) 2026-07-16 14:47:45 +03:00
config.rs feat(ui): ribbon collapse-mode selector + start-page recent controls 2026-07-06 01:06:01 +03:00
lib.rs feat(ui): ribbon collapse-mode selector + start-page recent controls 2026-07-06 01:06:01 +03:00
main.rs feat(open): open drawings in the running editor 2026-07-15 15:18:16 +03:00
par.rs feat(wasm): sequential rayon shim for the web build 2026-06-16 17:11:20 +03:00
patreon.rs feat(supporters): merge hand-maintained supporters, rank by amount 2026-07-08 00:32:12 +03:00
snap.rs fix(snap): Intersection requires a real 3D meeting, not a plan crossing (#335) 2026-07-10 13:05:48 +03:00
sys.rs fix(web): paste clipboard text into the TEXT / MText editors 2026-06-20 17:05:02 +03:00