I created a new version of the "Verify Scene" script, that in case of a triangle mesh also checks whether two faces of an object are coplanar and overlapping.
It seems a rare situation but many results of my extrusions are marred by this flaw - I'm going to open a separate issue for that. The flaw is not even detected by the Solid Tool, but makes itself evident in subsequent CSG operations.
Since the check is much slower now, I've also added the possibility to verify only a selection of objects rather than the whole scene.
Here it is. Comments (and tests) are welcome.
An excellent idea to allow using on only some of the objects. What is your normal run-time, given a reasonably limited mesh?
Just found a bug, or rather, a case that is not handled:
getValue(int faceIndex, int vertIndex)
Well Luke most of the code is by Peter, I didn't even look at that getValue() method. Just added my additional check, and the Verify Selection stuff. I'm afraid a groovy version will not come from me, I know little about it.
When I check a mesh with 3000 polygon I have to wait half a minute sometimes :(
But it does its job. I tested it with a scene with two cubes that I place in different positions, sometimes with touching faces, and I use the join objects script to create an invalid mesh.
You're right. I get the same error with the original script. I had thought that the object I was running it on was just too large for my patience... I'll see if I can cover that case.
I'll see if I can translate it to Groovy for you. That should be much faster. If the Beanshell version takes 30 seconds, the Groovy version should take only 1 or 2 seconds.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.