How to get list of surfaces from polysurface


(Sarath Kithiyon) #1

Hi,

How to get list of trimmed surfaces from polysurfaces using C#

-Sarath


(Radovan Grmusa) #2

Brepfaces are stored in list brep.Faces.

                        // Brep brep =   .....  is a brep (polysurface)
                        for (int i = 0; i < brep.Faces.Count; i++)
                        {
                            // brep.Faces[i] - brep face
                            var singleFaceBrep = brep.Faces[i].DuplicateFace(true); //trimed surface
                            var untrimedSurface = brep.Faces[i].DuplicateSurface();
                        }

(Sarath Kithiyon) #3

Its working…:slightly_smiling_face:
Thanks @RadovanG