Mapping Pattern from Flattened Surface back to it

In taking a 1) 3D surface (BREP or surface) to 2) Unfold it to a flat, to 3) place a pattern on the unfolded shape, to 4) reproject the pattern back to the original 3D surface (not working)…
The pattern doesn’t seem to map to the 3D version properly.




Sporph places far away, may be correct: What is u,v?

Morph is not fitting properly


x_Remapping_1.gh (17.4 KB)

Originally Followed this tutorial:
https://www.youtube.com/watch?v=YDFofhlWNxs

I’m it from my computer but this normally happens when one of the SRF is trimmed.
Check wich one is the trimmed, try the shrink trimmed SRF first and it should work.

1 Like

Not super familiar with that tool or understanding of trimmed vs. untrimmed, but think your onto something.
The initial 3D surface made from a rail sweep is untrimmed, so not the “trimmed” one you indicate:


but avoiding the break up (brep edges and resurface) and retaining the unfolded surface which is untrimmed, still the projection doesn’t change.

The only surface that’s trimmed appears to be the flattened 2D version from the unfold:

For SPLOP which appears more potentially correct (off a tad on baked geom) but is placed off the target surface: What is the reference plane?

I think the reference box for the Morph is wrong also.

I wonder if it’s an issue in the unfold which can handle 3D to flat, but going back is much harder due to the orientation of the patterns on totally different planes…

Hi Robert,
i tried to open your file but I can’t get the UNIFOLD component from Tt Toolbox.
I’ve installed the latest version but isn’t available.

Could you share the component with me or could you explain me what’s doing?

Thanks

TT Toolbox.zip (1.2 MB)
See if the attached version allows for it to work. ALl it does it unrolls the 3D BREP to a 2D Plane: Maybe there are other ways to do that with GH?

I think you can do this with just a single component. Have you tried the Map To Surface component? Is this what you were looking for?


x_Remapping_1_AP.gh (16.2 KB)

1 Like

This looks promising. So simple! Will dig into the details to ensure it projected properly.

Thanks a ton!!!

So the example sketch appears to scale the pattern pretty accurately. IN the actual version, it’s scaled down and doesn’t fit the surface:

Attempts to scale individual directions seems to keep it anchored and push the scaled geometry off the end:

This issue may likely be a mix up of the original surface definition, and not the issue in this sketch, which appears solved with the proposed solution by Andy P. Will sift thru and try to redefine the surfaces properly so they are jiving properly and so the same approach can work.

Rechecked surfaces and clarified surface matching, however the same remap won’t fit the full target surface. Somethings off. the reparametrize doesn’t appear to apply.

OK. The solution works only when similar surfaces are used: Noted by skysurfer above: Maintain untrimmed surfaces, not to mix untrimmed and trimmed which causes issues. Solved!

1 Like