It’s my first time on this forum and after having struggled for a good couple of weeks to find a solution (and failed), you guys might be my saviors!
Here is the situation:
First, I have a closed brep, composed of planar surfaces.
Then, I have two meshes:
- the original one, obtained from meshing the closed brep. The mesh faces are thus planar (normally).
- the deformed one, which was obtained by moving the vertices of the first one. This way, both meshes have the same number of faces but most importantly, the faces’ indices are matching. Meaning that face 3 of mesh 2 is exactly the deformation of face 3 of mesh 1.
I have then generated a number of curves on the surfaces of the closed brep. They were generated with metaball isocurves, so precision might be a bit off where the different planar curves seem to touch.
(I was able to find a C# script that allowed me to perform a join by playing on the tolerance used by the ‘join’ function. However, joining in this way might have me loose the planarity of the different sections of the curves, so I don’t think this should be used.)
To have the curves be ‘projected’ in some way from the 1st mesh to the 2nd deformed one. Mathematically, I’d like to have the isomorphism that was applied to the mesh, applied to the curves.
I was carefull not to remesh anything (though it would give me better looking results) when deforming the mesh, to keep the face indexing as explained before. My idea was:
For each face of the 1 mesh, get the portions of curves that are within its boundaries.
Then remapping these portions onto the corresponding face of the deformed mesh.
Ideally, the planarity of the original portions on the faces of the undeformed mesh should garanty the continuity of the portions once remapped on the deformed mesh.
So … I’m pretty much out of ideas and I’ve trying every angle I could think of to tackle the problem but I’m not getting any further these last few days.
When I do my deformation, and then also try to do some dynamic relaxation with Kangaroo but without remeshing, I haven’t had much luck … If someone wants to take a look, I left this part in the GH script. Any help on that part will be greatly appreciated too
Here are some photos and the GH file and corresponding rhino file.
The meshing and deformation process are included. The red groups are the WIP … The relevant elements for the PB are in the green group.