MeshVS_Mesh custom object

Hello,
I'd like to create a custom interactive object displaying a Poly_Triangulation or, generally speakinig, a set of points organized in triangles.
Is there a low level "graphic3d_" (or something) structure suitable for this task or should I display points and/or segments using Graphic3d_ArrayOfPoints and Graphic3d_ArrayOfSegments (or similar stuff) instead? Or should I derive such a custom object directly from MeshVS_Mesh? Is it possible? I don't think Compute() and ComputeSelection() methods are overridable but I'm asking for a friend... :)
Many thanks in advance.

Gianluca

Gianluca Antoniacci's picture

Looking inside OCC documentation maybe a Graphic3d_ArrayOfTriangles object could be of some use in this case. Anyone has any suggestions on its usage?
Many thanks.

Gianluca

Kirill Gavrilov's picture

Graphic3d_ArrayOfPrimitives - is already the lowest level of primitive array structure. Practically speaking, Graphic3d_ArrayOfPrimitives is just a convenient filling interface to Graphic3d_Buffer + Graphic3d_IndexBuffer, which are nothing but plain arrays of data uploaded to OpenGL.

You may also take a look into AIS_PointCloud as a possible sample of such a custom presentation builder.

Gianluca Antoniacci's picture

Hi Kirill,
I'll take a close look at AIS_PointCloud.
Many thanks for your hint.

Gianluca