2D union/subtract/intersect to create mesh
-
I am trying to union/subtract/intersect two simple polygons.
I've found how to do it from CAG.
But I would like to get points as counter clock wise.
The result using CAG functionality, I could get counter clock wise direction line drawing points, but what I like to get is counter clock wise points order.
Is there anyway that I can get it?
It would be fine also if I can use CSG functioinality.Thank you.
-
@jihyelee-code Did you try with yourPoints.reverse() ?
-
@gilboonet Well, actually I figured out! I was using earcut.js to create indice, and with little bit of touch with the result of CAG union/subtract/intersect it worked well. Thanks for the reply.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login