Attributes of vertices inserted during refinement might have unexpected values.
When fixing a bad triangle, we get barycentric coordinates for the new vertex with respect to the bad triangle. But the vertex might lie outside the bad triangle, so this might result in unwanted interpolation values.
The bad tiangle is to the right of the box (corner vertices (2, 3, 4)). The new vertex will clearly lie inside the box, so the z attribute should be 0.0, while the value computed in splittriangle method is -3.0.
Attributes of vertices inserted during refinement might have unexpected values.
When fixing a bad triangle, we get barycentric coordinates for the new vertex with respect to the bad triangle. But the vertex might lie outside the bad triangle, so this might result in unwanted interpolation values.
Example:
Command:
triangle.exe -pq30DC example.poly
The bad tiangle is to the right of the box (corner vertices (2, 3, 4)). The new vertex will clearly lie inside the box, so the z attribute should be 0.0, while the value computed in
splittriangle
method is -3.0.