Solid and mesh difference is not working

Hello everyone,
I have the problem that solid and mesh difference do not work for me. In any case, it must be due to the geometry that I am projecting using the splop component. I have already looked, the normals point in the right direction and I have a positive volume. I have the feeling that the volume component has taken an unusually long time to run through.
You can definitely see that something is happening inside the solid…

In the GH Code I disabeld the mesh differenc component (purple group), because when you open the code, it takes a while…
ImageTest.gh (137.9 KB)

Do any of you have an idea what I could improve?

try and convert your solid to a (finer) mesh before calculating the difference or union. I could not give you a technical explanation, but this seems to happen often when you have significant differences between the face sizes of the two elements. Extrusions do make larger mesh faces, when converted with the default values.

hope this helps

2 Likes

Why do you convert everything into meshes? It works fine with solid boolean difference…

ImageTest.gh (37.3 KB)

1 Like

I am converting to mesh because I once read that solid difference is much more error-prone than mesh difference. However, I tried both components and neither worked. I was wondering why it worked for you, but then I saw that the body that is created using the image sampler is in your code thicker and that was actually the trick. It has now worked for me too, but I still don’t understand it…


Thank you!!

1 Like

Hi Martin, now i have again the problem that solid difference ist not working again… . It works with Mesh Difference, i also tried solid trim but that did not work as well. Do you have any idea what i can do to get it to work?

CodeIntegrieren und Verbessern.gh (3.1 MB)d

Best regards
Tim

I wouldn’t say one works less relyably than the other. Each approach has some pitfalls however.

The text example has a relatively clean outline. You could almost use the Vectorize plugin to retrieve curves from your image and extrude those. Displacement is another approach and maybe more ideal for the portrait…

A quick solution in Grasshopper would be to Shrinkwrap the head on the cylinder and then use mesh difference.

CodeIntegrieren und Verbessern mrtn.gh (3.0 MB)