Open jijn opened 2 years ago
Thanks for the bug report.
This bug is very specific to your inputs and won't occur in the general case.
If you add -statseed x,y,z,w
, you will see that optimization leads to very large z coordinate and weight for the last seed. I think it then generates some error in the computation of the vertex coordinates...
The problem comes from the fact that your first three points have the same z coordinate, and only the last point has a lower z coordinate. For some reasons, optimization tends to make the three faces between each of the first three points and the last point coplanar (hence the parameters of the last seed).
A workaround to your problem is to use -morphooptidof x,y,z
(to exclude the seed weights from the optimization parameters), or -morphooptideltamax <value>
to constrain the range of possible values for the seed coordinates and weights. This will lead to different tessellations... Another possibility would be to revise your input.
To Reproduce
where points.txt is
The tess file generated is Test.txt
Describe the bug Taking face 4 as an example:
Vertex 9 is included in this face's vertex list, whose coordinate is
However, vertex 9 does not satisfy the face equation:
a*x+b*y+c*z-d = -0.22735277871012516
Similarly, vertex 8 not satisfy face_eq 4. Vertices 9 and 14 not satisfy face_eq 10. Vertices 9 and 10 not satisfy face_eq 6.