|
BALL
1.4.2
|
#include <BALL/MATHS/surface.h>
Classes | |
| class | Triangle |
Public Types | |
Type definitions | |
| typedef TVector3< T > | Vertex |
| A vertex. More... | |
| typedef TVector3< T > | Normal |
| A normal. More... | |
Public Member Functions | |
Constructors and Destructors | |
| TSurface () | |
| TSurface (const TSurface &surface) | |
| virtual | ~TSurface () |
Assignment | |
| void | set (const TSurface &surface) |
| TSurface & | operator= (const TSurface &surface) |
| void | get (TSurface &surface) const |
| void | clear () |
| void | readMSMSFile (const String &vert_filename, const String &face_filename) |
Accessors | |
| float | getArea () const |
| Size | getNumberOfTriangles () const |
| Return the number of triangles. More... | |
| Size | getNumberOfVertices () const |
| Return the number of vertices. More... | |
| Size | getNumberOfNormals () const |
| Return the number of normals. More... | |
| Triangle & | getTriangle (Position index) |
| Return a triangle with a given index. More... | |
| const Triangle & | getTriangle (Position index) const |
| Return a triangle with a given index. More... | |
| void | clearTriangles () |
| Clear all triangles. More... | |
| void | resizeTriangles (Size size) |
| Resize the triangle array. More... | |
| void | pushBackTriangle (const Triangle &triangle) |
| Add a triangle. More... | |
| Vertex & | getVertex (Position index) |
| Return the position of a vertex. More... | |
| const Vertex & | getVertex (Position index) const |
| Return the position of a vertex. More... | |
| void | clearVertices () |
| Clear all vertices. More... | |
| void | resizeVertices (Size size) |
| Resize the vertex array. More... | |
| void | pushBackVertex (const Vertex &vertex) |
| Add a vertex. More... | |
| Normal & | getNormal (Position index) |
| Return the position of a normal. More... | |
| const Normal & | getNormal (Position index) const |
| Return the position of a normal. More... | |
| void | clearNormals () |
| Clear all normals. More... | |
| void | resizeNormals (Size size) |
| Resize the normal array. More... | |
| void | pushBackNormal (const Normal &n) |
| Add a normal. More... | |
Predicates | |
| bool | operator== (const TSurface &surface) const |
| bool | operator!= (const TSurface &surface) const |
Public Attributes | |
Attributes | |
| vector< Vertex > | vertex |
| the vertices More... | |
| vector< Normal > | normal |
| the normals for each vertex More... | |
| vector< Triangle > | triangle |
| the triangles More... | |
Generic Three-dimensional Surface class. This class describes a three-dimensional triangulated surface. Each triangle is represented by three indices to vertices (as described by the TSurface::Triangle ). Each of the vertices has a position and possibly a normal vector associated.
| typedef TVector3<T> BALL::TSurface< T >::Normal |
| typedef TVector3<T> BALL::TSurface< T >::Vertex |
| BALL::TSurface< T >::TSurface | ( | ) |
| BALL::TSurface< T >::TSurface | ( | const TSurface< T > & | surface | ) |
|
virtual |
| void BALL::TSurface< T >::clear | ( | ) |
| BALL_INLINE void BALL::TSurface< T >::clearNormals | ( | ) |
| BALL_INLINE void BALL::TSurface< T >::clearTriangles | ( | ) |
| BALL_INLINE void BALL::TSurface< T >::clearVertices | ( | ) |
| void BALL::TSurface< T >::get | ( | TSurface< T > & | surface | ) | const |
| float BALL::TSurface< T >::getArea | ( | ) | const |
| BALL_INLINE TSurface< T >::Normal & BALL::TSurface< T >::getNormal | ( | Position | index | ) |
| BALL_INLINE const TSurface< T >::Normal & BALL::TSurface< T >::getNormal | ( | Position | index | ) | const |
| BALL_INLINE Size BALL::TSurface< T >::getNumberOfNormals | ( | ) | const |
| BALL_INLINE Size BALL::TSurface< T >::getNumberOfTriangles | ( | ) | const |
| BALL_INLINE Size BALL::TSurface< T >::getNumberOfVertices | ( | ) | const |
| BALL_INLINE TSurface< T >::Triangle & BALL::TSurface< T >::getTriangle | ( | Position | index | ) |
| BALL_INLINE const TSurface< T >::Triangle & BALL::TSurface< T >::getTriangle | ( | Position | index | ) | const |
| BALL_INLINE TSurface< T >::Vertex & BALL::TSurface< T >::getVertex | ( | Position | index | ) |
| BALL_INLINE const TSurface< T >::Vertex & BALL::TSurface< T >::getVertex | ( | Position | index | ) | const |
| bool BALL::TSurface< T >::operator!= | ( | const TSurface< T > & | surface | ) | const |
| TSurface< T > & BALL::TSurface< T >::operator= | ( | const TSurface< T > & | surface | ) |
| bool BALL::TSurface< T >::operator== | ( | const TSurface< T > & | surface | ) | const |
| BALL_INLINE void BALL::TSurface< T >::pushBackNormal | ( | const Normal & | n | ) |
| BALL_INLINE void BALL::TSurface< T >::pushBackTriangle | ( | const Triangle & | triangle | ) |
| BALL_INLINE void BALL::TSurface< T >::pushBackVertex | ( | const Vertex & | vertex | ) |
| void BALL::TSurface< T >::readMSMSFile | ( | const String & | vert_filename, |
| const String & | face_filename | ||
| ) |
Read from MSMS file. Read the contents of the vertex and faces file created by Michael Sanners software MSMS.
| Exception::FileNotFound | if the file could not be opened |
| BALL_INLINE void BALL::TSurface< T >::resizeNormals | ( | Size | size | ) |
| BALL_INLINE void BALL::TSurface< T >::resizeTriangles | ( | Size | size | ) |
| BALL_INLINE void BALL::TSurface< T >::resizeVertices | ( | Size | size | ) |
| void BALL::TSurface< T >::set | ( | const TSurface< T > & | surface | ) |
| vector<Normal> BALL::TSurface< T >::normal |
| vector<Triangle> BALL::TSurface< T >::triangle |
| vector<Vertex> BALL::TSurface< T >::vertex |
1.8.3.1