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