31 #ifndef MESH_VERTEXBUFFERROOT_H
32 #define MESH_VERTEXBUFFERROOT_H
34 #include "vertexBufferNode.h"
35 #include "vertexBufferData.h"
49 bool writeToFile(
const std::string& filename );
50 bool readFromFile(
const std::string& filename );
51 bool hasColors()
const {
return _data.colors.size() > 0; }
53 void useInvertedFaces() { _invertFaces =
true; }
55 const std::string& getName()
const {
return _name; }
58 virtual void toStream( std::ostream& os );
59 virtual void fromMemory(
char* start );
62 bool _constructFromPly(
const std::string& filename );
63 bool _readBinary( std::string filename );
77 #endif // MESH_VERTEXBUFFERROOT_H
Holds the final kd-tree data, sorted and reindexed.
co::Object to distribute a model, holds a VertexBufferBase node.