feat: multicolor painted output based on displacement height - #121
Open
birnam wants to merge 7 commits into
Open
feat: multicolor painted output based on displacement height#121birnam wants to merge 7 commits into
birnam wants to merge 7 commits into
Conversation
Implemented multicolor 3MF part support. What changed: - Added Advanced/Beta “Multicolor Parts (3MF)” controls in stlTexturizer/index.html:492. - Added signed displacement metadata through export so regions can be classified by actual mm displacement. - Added preview tinting for raised/inset regions in stlTexturizer/js/previewMaterial.js:44. - Added multipart 3MF export with separate Base, Raised Texture, and Inset Texture objects plus display colors. - Added stlTexturizer/js/multicolorParts.js:1 to split threshold-crossing triangles and build closed raised/inset shell parts. - Persisted thresholds in .bumpmesh/session settings. Important behavior: - STL export is unchanged. - Normal 3MF export is unchanged when thresholds are at disabled defaults. - Active multicolor 3MF export skips final decimation to preserve clean threshold boundaries and metadata, so files can be larger.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Multicolor 3MF painting (grayscale → color mapping)
Summary
Adds a "Multicolor Painting" export mode that maps the displacement texture's grayscale value to any number of user-defined colors, so a single texture can drive slicer AMS / multi-toolhead filament assignment on export. Each color owns a half-open range from its slider's percentage up to the next color's; 0% is black, 100% is white.
What's new
Testing
Examples