JWS C++ Library
C++ language utility library
jwscxx::graphics::Polymesh_d Class Reference

Abstract class of connected polygons (faces) forming a mesh. More...

#include <polymesh.h>

Inheritance diagram for jwscxx::graphics::Polymesh_d:

List of all members.

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.

Detailed Description

Abstract class of connected polygons (faces) forming a mesh.

Definition at line 119 of file polymesh.h.


Constructor & Destructor Documentation

virtual jwscxx::graphics::Polymesh_d::~Polymesh_d ( ) [inline, virtual]

Deletes this Transformable_f.

Definition at line 124 of file polymesh.h.


Member Function Documentation

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.

Parameters:
iIndex of the face to get; ranges 0 to N-1.
Returns:
The specified face.
Exceptions:
jwscxx::base::Arg_errorInvalid 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.

Parameters:
iFace index to get the adjacent face of.
pIndex 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.
Returns:
The index of the face adjacent to the ith one in this mesh.
Exceptions:
jwscxx::base::Arg_errorIf i or p are not valid indices.

Implemented in jwscxx::graphics::Parapiped_d.


The documentation for this class was generated from the following file: