Since the initial object is open on both ends, wrapping it with a cylindrical object might be an option. The naked edges of the ‘sock’ could be anchored and thus would reduce the problem of the sock falling through the initial mesh.
If the only goal is to calculate the volume of an approximation, you could also contour the object and shrinkwrap the section curves.
Hi Martin and thanks for your answer, the mesh its a long story , i lostd the original mesh used to meshboolean a “mould” and i had only the “mould”…i tried to get rid of parting line surface and came out with what you see. it could have been better but i was relying on the shrinkwrap power to create a rough approximation for volume estimation but failed and here we are.
other than that i realized that my need to shrinkwrap isomething in situation like these is quite common and i decided to try
do you mean shrinkwrapping first the “crappy mesh” in order to create 2 wathertight submeshes and only after that send the to K2 for envelope shrink wrapping ?
i see what you mean , it all makes sense , i will give it a try yet i am not very skilled with K2
yup , it sounds like a “cheap” quick good alternative yet the challenge for me was to make with K2
You are much more skilled than me , i read with great deal of attention your posts above and they were a very good learning opportunity , thanks for all of your precious advices
I liked this too @martinsiegrist - thanks! I tried to improve the contouring for higher fidelity, most likely an overkill process at the moment, but fun exercise.
I deviate a little by ‘leveling’ the bottom of the mesh, sort of, to then apply the same shrink-wrapping method.
If you really are only looking for a volume figure,there’s not even any point in shrinkwrapping. Just multiply the contour areas by the contour spacing and total them.
The version with shrinkwrap gives volume 63,444. If I set the contour spacing from 1 to 0.1 I get 63,084 but it’s still quicker than shrinkwrap.
I’m working on a project with a similar design approach and came across this thread. I tried applying the Shrinkwrap_Building Script from@martinsiegrist to my geometry, but I’m running into issues. Every time I plug my model into the Brep, Grasshopper crashes. I attached the blank model and a grasshopper file with the model internalized into the brep.
Would anyone be able to help me figure out how to achieve this look with my model? Any guidance or examples would be greatly appreciated!
It might be a units issue and your mesh seems pretty tight…
With your object being less box shaped than my example, I think the initial mesh should not be a bounding box but a generalized shape derived from your sculpture. I internalised what I think could work better.
In my example, the bounding box was a bit larger than the object. In this case the filtering of anchors is different. With something like a convex hull, the anchors are now correct.
The scaling operation for the solid collision does not work in your case. Let’s ignore the automated approach for now and do this manually by offsetting the mesh from inside towards the object while the solver is running. It is the last step to sort of push the edges outwards a bit after the overall shape has relaxed.
In this screenshot you see how the solid collision on the vertical edges of the base is not perfect. That is challenging. You might want to run a refined collision in a second step.
This example below does not require the Rhino file. All inputs are internalised.
Thank you so much for your help! Using the hull instead of a box for the second Brep was something I hadn’t considered, and it got me to the solution.
I also realized that the final meshing after the solver isn’t necessary for my case, since it just disrupts the clean edges.
I do have another question: I’m trying to reduce the shape a bit further. Ideally, the top and bottom surfaces should have more elasticity (see image 2). Even when I reduce the Length Factor down to 0.01, it only gets me part of the way there. I tried adding extra anchor points (image 1), but since the fabric never reaches them, that didn’t change anything. I also considered adding a force pulling toward the center, but I’m not sure where that should connect.
Does anyone have ideas on how I might resolve this?
You could also use whatever shape as a starting point but then you need to come up with your own solution to filter anchor points. The way I set it up, anchor points are extracted from edges which lay on the hull.
The anchor points you tried don’t do anything since they’re not connected to the initial mesh in any way. My next attempt would be to use the result as an input for a new relaxation. Maybe Triremesh first so the new input has more even edge lengths…