Hide menu
Loading...
Searching...
No Matches
cadex::ModelData_IndexArray Class Reference

Defines an array of indices. More...

#include <cadex/ModelData_IndexArray.hxx>

Public Types

typedef int IndexType
 

Public Member Functions

 ModelData_IndexArray ()
 Constructor.
 
size_t Size () const
 Returns the size of array.
 
IndexType Element (size_t theIndex) const
 Returns the requested index.
 
IndexType operator[] (size_t theIndex) const
 
const std::shared_ptr< internal::ModelData_IndexArrayImpl > & Impl () const
 

Detailed Description

Defines an array of indices.

The indices can be retrieved using Element() or operator[]. The number of indices can be retrieved by Size().

This class is used by ModelData_BRepToPolyAssociations to represent mesh pieces.

Examples
meshing/visualizationmesher/Program.cs, and meshing/visualizationmesher/main.cxx.

Constructor & Destructor Documentation

◆ ModelData_IndexArray()

cadex::ModelData_IndexArray::ModelData_IndexArray ( )

Constructor.

Creates an empty array.

Member Function Documentation

◆ Element()

int cadex::ModelData_IndexArray::Element ( size_t  theIndex) const

Returns the requested index.

theIndex must be in the range [0, Size()-1]. Otherwise the result is undefined.

Examples
meshing/visualizationmesher/Program.cs.