Skip to content

Boolean operation after refine in JS? #547

Answered by elalish
below-1 asked this question in Q&A
Discussion options

You must be logged in to vote

The simplest way is to use something like refined.setProperties(1, (prop) => {prop[0] = Math.random();});, which by adding a random property value to each vertex, means that generally no two adjacent triangles will be considered coplanar (and therefore collapsable) since that is a function of both geometry and properties.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by below-1
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