sketchucation logo sketchucation
    • Login
    1. Home
    2. jplato
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 1

    Posts

    Recent Best Controversial
    • 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
    • 1 / 1