I use microstation V8i (SS3) and programming in MDL.
I have shape element in 3D, this shape is non coplanar.
When add fill:
After use function:
mdlMesh_newPolyfaceFromXYTriangulation
mdlMesh_convertToShapes
I received:
Blue triangle is redundant.
How to remove it using mdlMesh _... Api?
Any suggestions?
Regards.
Unknown said:I have shape element in 3D, this shape is non coplanar ... blue triangle is redundant
The redundant triangle may be the result of analysing a non-planar shape using mdlMesh_newPolyfaceFromXYTriangulation().
mdlMesh_newPolyfaceFromXYTriangulation()
I recommend that you create a class that inherits from Bentley::Ustn::IElementGraphicsProcessor. Override _ProduceFacets...
Bentley::Ustn::IElementGraphicsProcessor
_ProduceFacets
virtual bool _ProduceFacets (bool isIndexedPoly) const override { return true; }
Now call Bentley::Ustn::ElementGraphicsOutput::Process (elementHandle, yourGraphicsProcessor) for each element. You will receive a list of triangular facets.
Bentley::Ustn::ElementGraphicsOutput::Process (elementHandle, yourGraphicsProcessor)
Look in the MicroStationAPI help document for ElementGraphicsProcessor.
ElementGraphicsProcessor
Regards, Jon Summers LA Solutions