sketchucation logo sketchucation
    • Login
    1. Home
    2. jplato
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 1

    jplato

    @jplato

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    jplato Unfollow Follow
    registered-users

    Latest posts made by jplato

    • Preserve integrity of curves when creating faces

      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

      posted in Developers' Forum
      J
      jplato