Hi,

2013/6/11 Mateusz Loskot <mateusz@loskot.net>

On 11 June 2013 21:12, Adam Wulkiewicz <adam.wulkiewicz@gmail.com> wrote:I'm no expert of 3D, but isn't there a better concept for 3D mesh storage,

> MultiPolygon concept to describe 3D mesh is a good idea. I'd rather provide

> additional concept.

without redundan vertices and edges, perhaps less topologically fragile than

multipolygon? (I'm just curious).

Of course, typically 3D geometry may be stored in various ways. There can be a set of points/normals/tex_coords but more often geometry is stored as coordinates buffer + index buffer - indexes are defining polygons, which typically are triangles. And in the case of triangles we have a few possibilities. They can be defined as a seqence of triangles (3*N indexes or just points to define triangles), strip (2 + 1*N indexes), fan (1 + 1*N indexes).

And this may be a definition of a SubMesh which some number could be stored together to form a Mesh. There even could be one points buffer for a Mesh and SubMeshes could only store indexes + operation type. Idealy the concept would define that.

Regards,

Adam

Adam