New polylib mesh classes
Mesh stream classes
- C3DSToMesh: Loads a 3DS file and sends the output to a Mesh stream(Can specify any stream output(like a file, pipe, or CMeshRender))
- CMeshRender: Takes a mesh stream and renders it on the screen.
- CMeshTo2D: Takes a mesh stream, filters all but polygons, and calls a virtual function with line segments of the sliced polygons where Z=0
- CMeshResourceLoader: Takes a mesh stream, ignoring all but image files and loads the images into memory.
- CMesh: Load/Save a mesh(Wraps C3DSLoader and CDisplayList)
Utility classes
- CDisplayList: Wraps opengl display list
Utility base classes
- CMeshStreamInput: Virtual stream functions such as Vertex3f(a,b,c) that your program receives based on the current mesh input stream. CMeshRender will use this.
- CMeshStreamOutput: Mesh stream functions such as Vertex3f(a,b,c) that write to the current stream. C3DSToMesh will use this.
Efficent use of mesh stream classes
CMeshTo2D and CMeshResourceLoader may seem inefficient in that they syphon though a lot of extra data but you may create a class derived from both of them and the virtual functions will not overlap causing efficient use of the data.
Copyright 2004 © Polyart. All rights reserved.