sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Preserve integrity of curves when creating faces

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 216 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.
    • J Offline
      jplato
      last edited by

      Hi guys,
      I'm looking for someone to validate an approach to generating a surface between two curves, just to make sure I'm not making this way too complicated. Here's the scenario: I have two identical curves: curve A and curve B, that are separated by some arbitrary distance. I'm creating a surface between them by:

      • creating a mesh
      • adding polygons to the mesh that connect the corresponding vertices in each curve
      • using entities.add_faces_from_mesh to generate the faces (passing 12 for the smooth_flags parameter)

      This all works swimmingly, except that after the the faces are created, the two curves are exploded, and cannot be selected as single entities anymore. So I start with two curves, each with 12 edges, and I end up with 24 curves, each with one edge. I tried to re-create the curves using entities.add_curve after the call to add_faces_from_mesh, but that didn't work.

      After some experimenting, I found that I can preserve the integrity of the two curves by first creating a group, adding the faces to that group (with mygroup.entities.add_faces_from_mesh), and then exploding the group.

      It appears to work fine, but it seems a little kludgy. Is there a better way to do this?

      Thanks,
      John

      1 Reply Last reply Reply Quote 0
      • D Offline
        dacastror
        last edited by

        I think in the plugin code "weld" is what you need
        (google translator)

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement