Display a set of faces

Technical discussions
Post Reply
Andy_r_723
Posts: 6
Joined: Fri Jul 26, 2013 9:44 am

Display a set of faces

Post 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

Grassimo
Posts: 4
Joined: Fri Jul 26, 2013 8:35 am

Re: Display a set of faces

Post 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);

Andy_r_723
Posts: 6
Joined: Fri Jul 26, 2013 9:44 am

Re: Display a set of faces

Post by Andy_r_723 »

Thank you!

Post Reply