Hi,

i have a question. How do i create a planar face/surface from more than 4 points?

Rhino 5 / VS 2010 / .net 4 / C#

At the moment i have:

- one points collection

    Point3d[] corners = new Point3d[6];

- one polyline from my points collection

    PolylineCurve polyline = new PolylineCurve(corners);

- now i try to generate the face

    Brep[] brep = new Brep[1];

    brep = Brep.CreatePlanarBreps(polyline);

    doc.Objects.AddBrep(brep[0], iatt);

I don't know what is wrong but i can't get the face. How do i generate faces with up to 8 points?

Thank you in advance,

Raul

Views: 34

Reply to This

Replies to This Discussion

Hi Raul,

Make sure the input polyline curve is both planar and closed. See the attached for an example.

 -- Dale

Attachments:

Thank you. It works.

RSS

Translate

© 2013   Created by McNeel Admin.

Badges  |  Report an Issue  |  Terms of Service