Repository navigation
Surface texture: a "through" direction for clean two-colour perforated panels (border, top layer, all cell patterns) #1771
Replies: 5 comments 2 replies
|
@marcus040473 I'm tagging you because you wrote the surface texture (#930) and know it best. The proposal above is mostly about the texture: a "Through" direction with exact cells, an adjustable border, the pattern part as a coloured top layer with its own thickness, all cell patterns, and the live preview. There is also the spiky honeycomb edge in the export. I'd be glad to hear your view, especially on whether a "Through" direction fits the way the texture is built, or whether you would rather do it as a separate step. I can attach the 3MF and the render if that helps. 🤖 Generated with Claude Code |
|
Thanks for the detailed write-up, and sorry for the spiky result. I looked at the code: the surface texture moves points of the surface in or out, so a true "Through" cut does not fit into it. The Hole Pattern tool already cuts real holes, but only holes that lie completely inside the face, so cells at the edge stay solid. I think the better fix is there: let the pattern be cut off at the outline, so with margin 0 it runs right to the edge, and maybe add an optional top layer in a second colour. I will also check whether the spikes with "Pattern as a part of its own" are a bug. I cannot promise a date. Could you attach the 3MF so I can test with your exact model? Generated by Claude Code |
|
Thanks a lot, Marcus, that makes sense: the Hole pattern already cuts real holes, so the edge cut-off at margin 0 and an optional top layer in a second colour there would cover everything I need. Attached is a zip with:
No hurry, and thank you for looking into it! 🤖 Generated with Claude Code |
|
@plazmabokor @marcus040473 thanks to both of you, I agree with where you ended up: holes through the panel belong in Hole pattern, not in the texture. @plazmabokor yes, a PR for that is welcome. I'd keep it in two small steps. First the edge: with Margin to the face's edge at 0, the holes are cut off by the outline instead of being left out, at least for the plain through holes (counterbores, countersinks and the round wall can stay as they are). Then, as a second PR, the optional top layer as a body of its own in a second colour. The other cell patterns and the live preview I would leave out for now. The spikes in the texture's pattern part stay with Marcus, he has your file. |
|
Hi @plazmabokor, thanks a lot for the 3MF and the exact settings - that made it easy to see what was going on. I found the cause of the spikes. When the honeycomb is cut into the surface, a few points ended up a tiny bit inside the edge of a joint (a few thousandths of a millimetre). They were then pushed down just a little, and the big flat triangles of the cell next to them tilted towards them. That is what showed up as the red spikes reaching into the cells, and it also made the pattern part bigger than the joints. Now those points stay exactly on the edge, so the cells stay flat and the red part follows the honeycomb lines cleanly. I rebuilt your panel with your settings: before and after are below. The fix is ready and will be in one of the next versions. Thanks again for the great report! Marcus Generated by Claude Code |
Uh oh!
There was an error while loading. Please reload this page.
Hi Stefan,
No rush at all, this is for after your holiday.
What I am trying to do
A 90 × 70 × 6 mm front panel for a Raspberry Pi cluster: a hexagon honeycomb cut through the whole panel, with the top 1 mm in a second colour (red on black), printed on a Bambu printer with AMS. The cells should run right to the edge, cut off by the outline, with no solid frame.
What I tried, and where each way falls short
Suggestion: a "Through" direction in Surface texture
surfaceTexture.tsalready has apreviewoption (coarser refinement,SURFACE_TEXTURE_PREVIEW_TRIANGLES), but as far as I can see the editor never calls it. Wiring it up so the model updates as the settings change would make the tool much easier to use.This would turn a long manual job into one tool, and it would make two-colour vents, grilles and decorative panels much easier for AMS and MMU users.
Separately, the spiky honeycomb relief is worth a look as a bug in its own right, even without the new direction.
If you like the idea and tell me how you would want it fitted into the texture tool, I am happy to help with a PR.
Thank you, and have a good rest!
🤖 Generated with Claude Code
All reactions