
Thu, 05/20/2021 - 10:28
Forums:
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
Fri, 05/21/2021 - 09:54
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
Fri, 05/21/2021 - 14:26
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.
Sat, 05/22/2021 - 18:05
Hi Kirill,
I'll take a close look at AIS_PointCloud.
Many thanks for your hint.
Gianluca