Mesh outline code not working as anticipated

Hello,
I’m trying to get the outline of a mesh at a set of planes. What I have currently is working but only for some of the identical meshes!
I have 3 identical detailed meshes of pumps offset from each other. I’m trying to project the outline on 4 planes but some are working, others are not. Image below should have 4 sets of 3 green outlines.

Any help would be greatly appreciated!

Thanks,
Matt


MeshOutlinePumps.gh (1.4 MB)

Is this what you need?

MeshOutlinePumps1.gh (1.4 MB)

Yes, that’s perfect! You legend!

1 Like

Maybe not perfect, I did it very quick. Check the logic and if there are issues make it fit your needs. Cheers!

You see, the vector for the shadow is a bit off and not perpendicular to the planes. If I make it perpendicular Mesh Shadow component fails exactly as your code. This issue has been a problem for a long time now.

I’ve wasted half an hour on this and I don’t get what the problem with the mesh shadow really is. It seems to work with a bounding box of each mesh but the mesh itself fails. I tried shrinkwrapping but that also didn’t help consistently.

1 Like

No idea either. I guess something in the GH code is buggy as hell. It fails super at random.

1 Like