ViennaLS icon indicating copy to clipboard operation
ViennaLS copied to clipboard

lsMakeGeometry fails for cylinder with small grid delta using float

Open tobre1 opened this issue 4 years ago • 1 comments

lsMakeGeometry produces a wrongly meshed cylinder when using a grid delta < 0.5 and floating point single precision. The problem stems from the function lsConvexHull, which does not work well with multiple points lying on the same plane.

Possible solution: create simple mesh manually for the cylinder.

tobre1 avatar Aug 19 '21 14:08 tobre1

This problem was NOT fixed in #70, since the problem stems from a numerical issue during lsFromSurface mesh, which determines a point lying outside the cylinder as inside and thus creates a faulty level set. This is not a problem for double precision though.

XaverKlemenschits avatar Aug 22 '21 09:08 XaverKlemenschits