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_f () |
Deletes this Transformable_f. | |
virtual size_t | num_faces () const =0 |
Returns the number of faces in this mesh. | |
const jwscxx::graphics::Polygon_f * | get_face (size_t i) const 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 66 of file polymesh.h.
virtual jwscxx::graphics::Polymesh_f::~Polymesh_f | ( | ) | [inline, virtual] |
Deletes this Transformable_f.
Definition at line 71 of file polymesh.h.
virtual size_t jwscxx::graphics::Polymesh_f::num_faces | ( | ) | const [pure virtual] |
Returns the number of faces in this mesh.
Implemented in jwscxx::graphics::Parapiped_f.
const jwscxx::graphics::Polygon_f* jwscxx::graphics::Polymesh_f::get_face | ( | size_t | i | ) | const throw (jwscxx::base::Arg_error) |
Returns an indexed face.
i | Index of the face to get; ranges 0 to N-1. |
jwscxx::base::Arg_error | Invalid face index. |
Reimplemented in jwscxx::graphics::Parapiped_f.
virtual uint32_t jwscxx::graphics::Polymesh_f::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_f.