JWS C++ Library
C++ language utility library
|
Abstract class of connected polygons (faces) forming a mesh. More...
#include <polymesh.h>
Public Member Functions | |
virtual | ~Polymesh_d () |
Deletes this Transformable_f. | |
virtual size_t | num_faces () const =0 |
Returns the number of faces in this mesh. | |
virtual const jwscxx::graphics::Polygon_d * | get_face (size_t i) const =0 throw (jwscxx::base::Arg_error) |
Returns an indexed face. | |
virtual uint32_t | adjacent_face (uint32_t i, uint32_t p) const =0 throw (jwscxx::base::Arg_error) |
Returns the face index adjacent to another on a shared edge. |
Abstract class of connected polygons (faces) forming a mesh.
Definition at line 119 of file polymesh.h.
virtual jwscxx::graphics::Polymesh_d::~Polymesh_d | ( | ) | [inline, virtual] |
Deletes this Transformable_f.
Definition at line 124 of file polymesh.h.
virtual size_t jwscxx::graphics::Polymesh_d::num_faces | ( | ) | const [pure virtual] |
Returns the number of faces in this mesh.
Implemented in jwscxx::graphics::Parapiped_d.
virtual const jwscxx::graphics::Polygon_d* jwscxx::graphics::Polymesh_d::get_face | ( | size_t | i | ) | const throw (jwscxx::base::Arg_error) [pure virtual] |
Returns an indexed face.
i | Index of the face to get; ranges 0 to N-1. |
jwscxx::base::Arg_error | Invalid face index. |
Implemented in jwscxx::graphics::Parapiped_d.
virtual uint32_t jwscxx::graphics::Polymesh_d::adjacent_face | ( | uint32_t | i, |
uint32_t | p | ||
) | const throw (jwscxx::base::Arg_error) [pure virtual] |
Returns the face index adjacent to another on a shared edge.
The face point index must be in the range [0,N-1], where N is the number of points in the ith face. To specify the edge formed by the 0th and (N-1)th point, set p = N-1.
i | Face index to get the adjacent face of. |
p | Index of the first point in the ith face of the shared edge. If set to (N-1), the other point forming the edge will be the 0th; face points are in increasing sequential order and loop around. |
jwscxx::base::Arg_error | If i or p are not valid indices. |
Implemented in jwscxx::graphics::Parapiped_d.