Invalid mesh? Oh really?

After reading some posts here about Dendro I decided to try it for the first time. To do that I used pieces of GH files I’ve used before that contained no meshing routines at all. It was an interesting learning experience for sure, and it brought up what might be considered a quirk in the way meshes function.

Because this was my first experience with Dendro I opted to start with small geometry that looks like this:

Screenshot_2

On the left are 5 feet formed from 5 closed Breps, and on the right is the top, also a closed Brep.

Here is a screenshot of the attached GH file which I simplified by internalizing the above geometry:

The interesting part is the final Invalid mesh. Even though it is Invalid it can be baked into Rhino and then exported as an STL file for 3D printing. Here is a photo of the printed part:

Even though GH/Dendro says the final mesh is invalid, it displays just fine in Rhino. I thought this was interesting, but it got even more interesting when I tried to Bake it:

Whoa baby! I had never seen this dialog before - probably because I stick to closed Breps almost exclusively. But I figured what the heck, let’s Bake it and see what happens.

This is what happened:

Needless to say, that got my attention. But much to my surprise it exported as an STL just fine. And when I imported that STL file into my slicer (SuperSlicer) it reported that it found and corrected 4 mesh errors, and then subsequently sliced the result with no problems. My printed result is what I showed above.

So - I’m not sure what all this is trying to tell me. Since I deal only with 3D printable geometry the issue of invalid meshes that actually work may be of value only to me, but maybe this little example might help someone else for whom meshes are a big deal.

InvalidMesh-maybe.gh (619.2 KB)

1 Like

there is a new version of dendro up on food4rhino that has a fix for the invalid mesh output. don’t known if that is the version you are using but thought i’d mention that. i don’t think it will completely eliminate invalid mesh results, but in testing the new version it seems to take care of 99% of the issue. when all else fails, playing around with the adaptivity and isovalue can fix the invalid mesh output sometimes as well.

Hello
@Birk_Binnard invalid mesh could be healed “quite easily”.

It is a “new” problem since Rhino 6 or 7, because Rhino doesn’t want degenerate face (face without area) or others problem.
@ryein thanks for adding this healing.

Good info - thanks. I didn’t know if Dendro was now part of Rhino or not. I’ll get the current version and see what happens.

Edit: Good news - it’s fixed! Nice job.