Message 1 of 9
Mapping triangles after SolidUtils::TessellateSolidOrShell to Faces

Not applicable
05-16-2014
07:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I'm trying to rewrite my old triangulation code where triangulation was done face by face. SolidUtils::TessellateSolidOrShell works really good, but i need a color information, which i can't get from RevitTriangulatedSolidOrShell. I decided to map triangles manually by projecting triangle points on face (face.Project) and checking the distance. But this solution has few issues:
1. it's slow. nFace*nTriangles complexity. For geometry with 100k and more triangles it could take a lot of time.
2. some triangles are not mapped at all
3. some triangles are mapped to more that one face
Is there some other way to triangulate or get color information which i didn't find?