Loft with 2 profiles and multiple edges in each profile?

vanowm
vanowm Member Posts: 139 ✭✭

I have two arrays of edges for top and bottom faces, how do I use opLoft() function to create a single surface around the edges between top and bottom faces?

At the moment I can iterate the arrays and create separate lofts between two edges, I'm looking for a way to make it as one loft.

Thank you.

Comments

  • GregBrown
    GregBrown Member, Onshape Employees, csevp, pcbaevp Posts: 412 image

    If it's a solid loft you are trying to create , then you need to pass in faces for the profiles.

    If it's a surface loft then you can pass in edges or faces:
    e.g.
    opLoft(context, id + "loft1", {

                       "profileSubqueries" : [ e1, e2 ],
    
                "bodyType":ToolBodyType.SURFACE,
    
        });
    

    ….where e1 and e2 are queries for the edges