I recently noticed that ReduceMesh with planaronly option behaves very different in RH-Beta compared to RH-8. Here is a comparison. Does anybody else have that also?
Reducemesh-planaronly.3dm (5.1 MB)
I cannot upload the geometry in the image but I can reproduce it with anything. Even with a simple sphere… See the file.
Thanks for the file, i was able to repeat it here. The same sphere goes to 360 faces with Planar only in the 9 BETA and stays smooth in 8. Logged as RH-99976 ReduceMesh Planar only distorts curved meshes in 9
thank you very much for the sample. The problem that the Rhino 9 change was tackling is coming from the fact that the tolerance value for PlanarOnly was entirely fixed, in a way that does not scale with the size of the object. Therefore, for some small objects, the entire function failed once the “PlanarOnly” option is turned on.
However, it seems that this made the values too relaxed for larger objects.
I’ve tackled this so that the tolerance is reduced for “small” objects, but it still is never increased more than in Rhino 8. This should both cover your case and also other cases where geometry is small. We will see if more tweaks are necessary.
We wonder still, how this tolerance default should be computed on the actual mesh: fixed, linear, following curvature, etc? This is the last step missing in this area IMO. We will think about this and come back with something useful, I hope “soon”.
@Holo yes it’s a good idea, but with something small enough, faceted small enough, that could easily encompass the entire mesh or too large portions. The main question is how to restrict this to meaningful areas.
I understood the concept and tried to answer the question I think that if two planes are within the documents tolerance they should be considered planar… It kind of is the point with a tolerance and affects whether we can join curves and surfaces if ends/edges are within that tolerance, so to me it makes sense to use the same value for coplanarness.
But, how does it work for nurbs mergecooplanarfaces?
Test the angle of the normals between the faces with a tolerance for the maximum acceptable angle. I’m working on a simple way to calculate the angle, though perhaps Rhino already has a suitable method.
The angle test could be combined with a maximum distance deviation test.
Is there interest in revising how it works to include an angle test? If so I’ll continue to work out an efficient way to do such a test. If not then I won’t waste my time.
@davidcockey most definitely. We will revise how it works, and definitely will try to keep in mind also current users and what they say! Mentioning angle is enough: if you have some other need, or request in mind, please do no hesitate to mention them.
Of course you are the profis but I want to share my 2 cents. If that was my job, I think I would first,
assess the whole mesh to calculate the normal vectors of each face
group the faces that share an adjacent edge and have the same vector
and merge them…
I can only think some ways that this may not work but this would eliminate the size issue, what do you think, I’m just curious…