Skip to content

feat: optional fixed world texture scale (mm)#78

Open
RobMayer wants to merge 1 commit into
CNCKitchen:mainfrom
RobMayer:pr42-rebased
Open

feat: optional fixed world texture scale (mm)#78
RobMayer wants to merge 1 commit into
CNCKitchen:mainfrom
RobMayer:pr42-rebased

Conversation

@RobMayer

@RobMayer RobMayer commented Jun 6, 2026

Copy link
Copy Markdown

Rebases #42 by @alan-polk onto current main and resolves the merge
conflicts (in js/main.js and js/displacement.js) so it applies cleanly.

The original commit is preserved with @alan-polk as author. The net diff
against main is identical to the original PR (87 insertions, 4 deletions,
7 files) — no functional changes beyond conflict resolution.

Supersedes #42. Addresses #77.

Add a Transform toggle to normalize UVs with a user reference extent in
millimetres instead of each mesh’s largest bounding-box edge, so pattern
size stays consistent across different parts with the same settings.

GPU preview and CPU displacement (planar / triplanar / cubic) share the same
getReferenceExtent() helper. Cylindrical and spherical modes unchanged.

Made-with: Cursor
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