JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    2D union/subtract/intersect to create mesh

    General Discussions
    2
    3
    443
    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-code
      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.

      gilboonet 1 Reply Last reply Reply Quote 0
      • jihyelee-code
        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
        • gilboonet
          gilboonet @jihyelee-code last edited by

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

          jihyelee-code 1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB | Contributors