|
cgv
|
class used to perform the marching cubes algorithm More...
#include <streaming_mesh.h>
Public Types | |
| typedef cgv::math::fvec< T, 3 > | pnt_type |
| type of vertex locations | |
| typedef cgv::math::fvec< T, 3 > | vec_type |
| type of vertex normals | |
Public Member Functions | |
| streaming_mesh (streaming_mesh_callback_handler *_smcbh=0) | |
| construct from callback handler | |
| void | set_callback_handler (streaming_mesh_callback_handler *_smcbh) |
| set a new callback handler | |
| unsigned int | get_nr_dropped_vertices () const |
| return the number of vertices dropped from the front, what is used as index offset into a deque | |
| unsigned int | get_nr_vertices () const |
| return the number of vertices | |
| unsigned int | get_nr_faces () const |
| return the number of faces | |
| void | drop_vertex () |
| drop the front most vertex from the deque | |
| void | drop_vertices (unsigned int n) |
| drop n vertices from the front of the deque | |
| pnt_type & | vertex_location (unsigned int vi) |
| write access to vertex locations | |
| const pnt_type & | vertex_location (unsigned int vi) const |
| read access to vertex locations | |
| const vec_type & | vertex_normal (unsigned int vi) const |
| read access to vertex normals | |
| vec_type & | vertex_normal (unsigned int vi) |
| write access to vertex normals | |
| unsigned int | new_vertex (const pnt_type &p) |
| add a new vertex with the given location and call the callback of the callback handler | |
| void | new_triangle (unsigned int vi, unsigned int vj, unsigned int vk) |
| construct a new triangle by calling the new polygon method of the callback handler | |
| void | new_quad (unsigned int vi, unsigned int vj, unsigned int vk, unsigned int vl) |
| construct a new quad by calling the new polygon method of the callback handler | |
| void | new_polygon (const std::vector< unsigned int > &vertex_indices) |
| construct a new polygon by calling the new polygon method of the callback handler | |
Protected Attributes | |
| int | idx_off |
| offset used to address vertices in deque | |
| unsigned int | nr_faces |
| count the number of faces | |
| std::deque< pnt_type > | pnts |
| store currently used points in deque | |
| std::deque< vec_type > | nmls |
| store currently used normals in deque | |
| streaming_mesh_callback_handler * | smcbh |
| store a pointer to the callback handler | |
class used to perform the marching cubes algorithm