You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented the usage of custom geometry initialization and I have seen that the library is not correctly handling the case.
The vertex ordering was not correctly maintained after a call to eraseOuterTriangles or eraseOuterTrianglesAndHoles, thus making impossible to remap correctly the indexes.
I found 2 points where I had to change the code in order to correctly execute:
void Triangulation::eraseSuperTriangleVertices(): I had to check if the geometry is custom, and if it is, the function should do nothing.
void Triangulation::eraseSuperTriangle(): same as previous one.
void Triangulation::initializedWithCustomSuperGeometry(): I need to add the line m_superGeomType = SuperGeometryType::Enum::Custom;
I didn't check other locations, maybe you will see some other areas where to take a look.
Enclosed here the changed file.
Ciao,
I implemented the usage of custom geometry initialization and I have seen that the library is not correctly handling the case.
The vertex ordering was not correctly maintained after a call to eraseOuterTriangles or eraseOuterTrianglesAndHoles, thus making impossible to remap correctly the indexes.
I found 2 points where I had to change the code in order to correctly execute:
I didn't check other locations, maybe you will see some other areas where to take a look.
Enclosed here the changed file.
CDT.zip
The text was updated successfully, but these errors were encountered: