An indexed face array is a proxy to a Shell, that makes it possible to easily sort faces and take subsets without modifying the underlying Shell.  
 More...
#include <IndexedFaceArray.hpp>
Inherits Shell.
 | 
| 
typedef rw::core::Ptr< IndexedFaceArray >  | Ptr | 
|   | Smart pointer type to IndexedFaceArray. 
  | 
|   | 
| 
typedef rw::core::Ptr< const IndexedFaceArray >  | CPtr | 
|   | Smart pointer type for a const IndexedFaceArray. 
  | 
|   | 
| 
typedef rw::core::Ptr< Shell >  | Ptr | 
|   | Smart pointer type to Shell. 
  | 
|   | 
| 
typedef rw::core::Ptr< const Shell >  | CPtr | 
|   | Smart pointer type to const Shell. 
  | 
|   | 
| enum   | GeometryType {  
  PointCloud
, LineMesh
, PlainTriMesh
, IdxTriMesh
,  
  SpherePrim
, BoxPrim
, OBBPrim
, AABBPrim
,  
  LinePrim
, PointPrim
, PyramidPrim
, ConePrim
,  
  TrianglePrim
, CylinderPrim
, TubePrim
, PlanePrim
,  
  RayPrim
, Implicit
, Quadratic
, UserType
 
 } | 
|   | geometry data types 
  | 
|   | 
| 
typedef rw::core::Ptr< GeometryData >  | Ptr | 
|   | smart pointer type to this class 
  | 
|   | 
| 
typedef rw::core::Ptr< const GeometryData >  | CPtr | 
|   | const smart pointer type to this class 
  | 
|   | 
An indexed face array is a proxy to a Shell, that makes it possible to easily sort faces and take subsets without modifying the underlying Shell. 
 
◆ IndexedFaceArray() [1/2]
Construct new indexed face array. 
- Parameters
 - 
  
    | shell | [in] the underlying Shell.  | 
  
   
 
 
◆ IndexedFaceArray() [2/2]
Construct new indexed face array. 
- Parameters
 - 
  
    | shell | [in] the underlying Shell.  | 
    | faces | [in] the faces to include in the proxy.  | 
    | first | [in] skip the first faces.  | 
    | last | [in] last index of faces to include.  | 
  
   
 
 
◆ getGlobalIndex()
      
        
          | std::size_t getGlobalIndex  | 
          ( | 
          std::size_t  | 
          idx | ) | 
           const | 
        
      
 
Get the original face index. 
- Parameters
 - 
  
    | idx | [in] the indexed face index.  | 
  
   
- Returns
 - the original index. 
 
 
 
◆ getIndexedFace() [1/2]
Get the indexed face. 
- Parameters
 - 
  
    | idx | [in] index of indexed face.  | 
  
   
- Returns
 - the indexed face. 
 
 
 
◆ getIndexedFace() [2/2]
      
        
          | void getIndexedFace  | 
          ( | 
          std::size_t  | 
          idx,  | 
        
        
           | 
           | 
          IndexedFace &  | 
          dst  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
Get the indexed face. 
- Parameters
 - 
  
    | idx | [in] index of indexed face.  | 
    | dst | [out] existing object to copy data into.  | 
  
   
 
 
◆ getSubRange()
Take out a subrange of faces. 
- Parameters
 - 
  
    | first | [in] first index.  | 
    | last | [in] last index.  | 
  
   
- Returns
 - a new indexed face array. 
 
 
 
◆ getType()
the type of this primitive 
Implements Shell.
 
 
◆ isConvex()
  
  
      
        
          | virtual bool isConvex  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
test if this geometry data is convex 
- Returns
 - true if convex 
 
Implements Shell.
 
 
◆ size()
  
  
      
        
          | virtual std::size_t size  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Get the number of surface patches in this shell. 
- Returns
 - the number of surface patches. 
 
Implements Shell.
 
 
◆ sortAxis()
Sort the faces according to their extent in the direction along axis. 
- Parameters
 - 
  
    | axis | [in] axis to sort.  | 
    | t3d | [in] transform giving the position and axis directions.  | 
  
   
 
 
The documentation for this class was generated from the following file: