Create meshes with IBody2 / IFace2

Hi,

I need to create a temporary mesh to display in solidworks usingvertices and faces lists (like .obj file description).

I managed to do this adding some Ogl calls in the Swapbuffermethod, however I would like to create my mesh as a component2.
There is a ICreateBodyFromFaces that might be useful but I don'tknow how to define a proper face using IFace2/IBody2

Has anybody got a idea ?

Thank you.SolidworksApi macros