Page 1 of 1

Display a set of faces

Posted: Thu May 21, 2020 4:25 am
by Andy_r_723
Hi,
I have a proprietary file format, which stores an object as a list of its faces. Every face is its own section in the file and contains the edges displayed by the coordinates of its points which will construct the faces. I managed to extract all the vertices from the file, create the edges, wires and faces.

If I 'sew' the faces together I get a perfect object. As the objects are quite large this is terribly slow. For my project I don't need a single 'sewed' object. I just want to display all the shapes I have created.

Is there a possibility to display a sequence of faces? My faces are all stored in: List<IBRepFace_DG>

As I need a reference for each of these faces I would like to put them together in a single entity, which I can display but without any algorithms running over it.

Thanks in advance

Re: Display a set of faces

Posted: Fri May 22, 2020 3:21 am
by Grassimo
I think you can display it as a compound with faces as shapes.
Add a new compound to the model and use
IBRepCompound_DG.AddShape()
to add each face:

Code: Select all

myCompound.AddShape(face as IBRepShape_DG);

Re: Display a set of faces

Posted: Mon May 25, 2020 12:30 am
by Andy_r_723
Thank you!