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 -
I think in the plugin code "weld" is what you need
(google translator)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement