JSCAD User Group
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    2D union/subtract/intersect to create mesh

    Scheduled Pinned Locked Moved General Discussions
    3 Posts 2 Posters 1.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jihyelee-codeJ Offline
      jihyelee-code
      last edited by

      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.

      gilboonetG 1 Reply Last reply Reply Quote 0
      • gilboonetG Offline
        gilboonet @jihyelee-code
        last edited by

        @jihyelee-code Did you try with yourPoints.reverse() ?

        jihyelee-codeJ 1 Reply Last reply Reply Quote 0
        • jihyelee-codeJ Offline
          jihyelee-code @gilboonet
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0

          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
          • First post
            Last post
          Powered by NodeBB | Contributors