JSCAD User Group

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

    V2 feedback : extrudeRotate

    Development Discussions
    2
    7
    485
    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.
    • gilboonet
      gilboonet last edited by gilboonet

      I tried to make a curved volume using extrudeRotate with a bezier curve (svg file) as input, but it didn't work (third meshlab window). So I replace the bezier by lots of lines, but it made the same (first meshlab window). By reversing points order when making the polygon (shape.points.reverse()), it was ok, but this operation result in an error with the bezier svg points. With bezier polygons, there is maybe a smarter way to reverse points ? maybe only reverse physical points and keep bezier control points order, but how ?

      Capture d’écran de 2020-10-08 09-05-33.png

      1 Reply Last reply Reply Quote 0
      • gilboonet
        gilboonet @z3dev last edited by gilboonet

        @z3dev the svg is here : https://github.com/gilboonet/gilboonet.github.io/blob/master/demos/demi_l.svg
        What I'm trying to do is a composite volume made of half a revolution of extrudeRotate then extrudeLinear with the same shape. I was able to have both extrusion method return a volume, but they don't coincide.

        1 Reply Last reply Reply Quote 0
        • z3dev
          z3dev @gilboonet last edited by

          @gilboonet can you attach the SVG file, or provide the set of points?

          Both of the extrusion methods require 2D shapes that rotate CCW around Z. (You already know this.)

          gilboonet 1 Reply Last reply Reply Quote 0
          • gilboonet
            gilboonet last edited by

            @z3dev Do you know why extrudeRotate at 180° doesn't produce the same polygon as extrudeLinear (from the same polygon input) ? Or if there's a way to extrude a (flat) 3d polygon ?

            z3dev 1 Reply Last reply Reply Quote 0
            • z3dev
              z3dev @gilboonet last edited by

              @gilboonet said in V2 feedback : extrudeRotate:

              And mirrorX on this input gives a polygon that must be reversed to be correct.

              Correct. By mirroring the CCW rotating geom2, the result is a CW rotating geom2.

              1 Reply Last reply Reply Quote 0
              • z3dev
                z3dev @gilboonet last edited by

                @gilboonet FYI, there's an issue with mirroring inside the renderer. the produced geometries are correct, but rendered incorrectly.

                1 Reply Last reply Reply Quote 0
                • gilboonet
                  gilboonet last edited by

                  I tried to dig further this design and decided to only keep half revolution of the extrudeRotate and add an extrudeLinear to its flat end. Seems that extrudeRotate and extrudeLinear with the same input result in volumes of different scales. And mirrorX on this input gives a polygon that must be reversed to be correct. At first I tried to use the polygons from the extrudeRotate to do the extrudeLinear, but seems that it doesn't work with 3d polygons, I will try to 2d it as I have a function for that. Unfortunately, I don't see how to find the correct scale to align rotate and linear parts of this design.

                  This is very nice to be able to do such design even if for the moment it is not complete.

                  Capture d’écran de 2020-10-08 10-56-48.png

                  z3dev 2 Replies Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB | Contributors