

Classes | |
| struct | Face |
Public Member Functions | |
| OBJNode (BaseNode *_parent=0, std::string _name="<OBJNode>") | |
| Default constructor. | |
| virtual | ~OBJNode () |
| destructor | |
| ACG_CLASSNAME (OBJNode) | |
| DrawModes::DrawMode | availableDrawModes () const |
| return available draw modes | |
| void | boundingBox (Vec3d &_bbMin, Vec3d &_bbMax) |
| update bounding box | |
| void | draw (GLState &_state, DrawModes::DrawMode _drawMode) |
| drawing the primitive | |
| void | pick (GLState &_state, PickTarget _target) |
| picking | |
| unsigned int | n_vertices () const |
| number of vertices | |
| unsigned int | n_faces () const |
| number of faces | |
| unsigned int | n_normals () const |
| number of normals | |
| unsigned int | n_texcoords () const |
| number of texcoords | |
| void | clear () |
| clear the node | |
| unsigned int | add_vertex (const Vec3f &_v) |
| add vertex | |
| unsigned int | add_face (const Face &_f) |
| add triangle | |
| unsigned int | add_face (unsigned int _i0, unsigned int _i1, unsigned int _i2) |
| add triangle | |
| Vec3f & | vertex (unsigned int _i) |
| get i'th vertex | |
| const Vec3f & | vertex (unsigned int _i) const |
| get i'th vertex | |
| const Face & | face (unsigned int _i) const |
| get i'th face | |
| Face & | face (unsigned int _i) |
| get i'th face | |
| const Vec3f & | normal (unsigned int _i) const |
| get i'th normal | |
| Vec3f & | normal (unsigned int _i) |
| get i'th normal | |
| bool | read (const std::string &_filename) |
| Read from file. Implemented using OpenMesh loader and OBJNodeExporter. | |
| void | update_face_normals () |
| Update face normals. Call when geometry changes. | |
Private Member Functions | |
| void | draw_obj () const |
| void | draw_obj_tex () const |
Private Attributes | |
| std::vector< Vec3f > | vertices_ |
| std::vector< Vec3f > | normals_ |
| std::vector< Vec2f > | texCoords_ |
| std::vector< Face > | faces_ |
Definition at line 78 of file OBJNode.hh.