Skip to content

Fix normal extrusion - #17

Merged
torusJKL merged 3 commits into
mainfrom
fix-normal-extrusion
May 28, 2026
Merged

torusJKL merged 3 commits into
mainfrom
fix-normal-extrusion

Conversation

@torusJKL

Copy link
Copy Markdown
Owner
  • fix: extrude text along plane normal
  • expose explicit X-direction control for text on arbitrary planes

torusJKL added 3 commits May 28, 2026 10:40
The C wrapper and FFI binding for make_text_shape_on_plane_full
existed but were never called from Lisp. This prevented users from
controlling the text baseline direction on non-XY planes, where
OCCT's auto-computed X direction can produce mirrored or reversed
text (e.g., on the XZ plane).

Changes:
- Extended %compute-gp-ax3 to accept an optional x-direction
  argument, returning 9 values (px,py,pz, nx,ny,nz, xx,xy,xz)
- Added :x-direction keyword (default nil) to make-text-shape,
  make-text-shape-3d, make-text-shape-on-plane, make-multi-line-text,
  and make-formatted-text
- make-text-shape-3d now extrudes along the :normal direction instead
  of always along global Z (already in 7c039ff)
- text-shape-3d-on-rotated-plane test now verifies extrusion direction
  using shape-extent-along
@torusJKL
torusJKL merged commit f4b7c68 into main May 28, 2026
1 check passed
@torusJKL
torusJKL deleted the fix-normal-extrusion branch May 28, 2026 07:53
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.

1 participant