Skip to content

Controlling Precision to Avoid Dropping Thin Mesh Components #649

Closed Answered by pca006132
Eric-Vin asked this question in Q&A
Discussion options

You must be logged in to vote

OK, I have a look at this, this is due to how precision is handled. The view section you have has a large x coordinate, which makes the precision large (0.11459, basically 1e-6*max abs coordinate), so anything smaller than this will be removed by manifold.
There are two solutions for this. The first one would be to increase the precision, i.e. with #542. The other method which works now is to crop the view section to the bounding box of the sphere, and manually override the precision by reimporting the mesh (because cropping is intersection, and this will not improve precision in general).

Example code that works with the second method:

  // somehow I cannot get obj import to work
  Manif…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pca006132
Comment options

Answer selected by Eric-Vin
@Eric-Vin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants