Populates polygonal model with a mesh computed from B-Rep representation. More...
#include <cadex/ModelData_BRepTriangulationProvider.hxx>
Public Types | |
typedef cadex::internal::ModelData_BRepTriangulationProviderImpl | ImplType |
Public Member Functions | |
ModelData_BRepTriangulationProvider (const ImplType *theImpl) | |
ModelData_BRepTriangulationProvider (const ModelData_BRepRepresentation &theRep, const ModelAlgo_BRepMesherParameters &theParameters=ModelAlgo_BRepMesherParameters()) | |
Constructor. | |
virtual | ~ModelData_BRepTriangulationProvider () |
Destructor. | |
const ModelData_BRepRepresentation & | Ref () const |
Returns the associated B-Rep representation. | |
void | SetParameters (const ModelAlgo_BRepMesherParameters &theParameters) |
Sets mesher parameters. | |
const ModelAlgo_BRepMesherParameters & | Parameters () const |
Returns mesher parameters. | |
ModelAlgo_BRepMesherParameters & | Parameters () |
Returns mesher parameters. | |
virtual void | Feed (ModelData_PolyRepresentation &theRepresentation) const override |
Feeds the representation. | |
Public Member Functions inherited from cadex::ModelData_PolyRepresentation::Provider | |
virtual | ~Provider () |
Destructor. | |
virtual void | Feed (ModelData_PolyRepresentation &theRepresentation) const =0 |
Feeds the representation. | |
Populates polygonal model with a mesh computed from B-Rep representation.
The ModelData_BRepTriangulationProvider is constructed with an attached B-Rep representation or individual shape.
The provider uses ModelAlgo_BRepMesher to compute a polygonal representation.
cadex::ModelData_BRepTriangulationProvider::ModelData_BRepTriangulationProvider | ( | const ImplType * | theImpl | ) |
For internal use.
cadex::ModelData_BRepTriangulationProvider::ModelData_BRepTriangulationProvider | ( | const ModelData_BRepRepresentation & | theRep, |
const ModelAlgo_BRepMesherParameters & | theParameters = ModelAlgo_BRepMesherParameters() |
||
) |
Constructor.
Stores the associated B-Rep representation which can be later accessed by BRep().
|
overridevirtual |
Feeds the representation.
Gets associated BRep representation and triangulates it with the CAD Exchanger visualization mesher (if there is no triangulation already). Adds receiving faceted representation into theRepresentation with ModelData_PolyRepresentation::Add().
Face sets computed for each individual B-Rep in a shell (or solid) are merged into a single Face - see Base_Mesher::MergeFaceSets().
Implements cadex::ModelData_PolyRepresentation::Provider.