gradientspace / geometry3Sharp

C# library for 2D/3D geometric computation, mesh algorithms, and so on. Boost license.
http://www.gradientspace.com
Boost Software License 1.0
1.72k stars 390 forks source link

Are triangle groups the same as submeshes? #82

Closed amirebrahimi closed 5 years ago

amirebrahimi commented 5 years ago

I'm trying to support mesh reduction with separate submeshes and not sure that the triangle groups are what I think they are.

amirebrahimi commented 5 years ago

https://github.com/Unity-Technologies/AutoLOD/blob/f27a27bd96a39443b540bcf2f564eef757ff2a4a/Scripts/Editor/MeshSimplifiers/Geometry3SharpSimplifier.cs#L50

rms80 commented 5 years ago

triangle groups are just per-triangle integers, they don't have any inherent semantics. They are ignored by the Reducer. Not sure what you mean by a "submesh" - if you mean Unity submesh, g3Sharp does not have that concept.