CAD Exchanger SDK
cadex::ModelData_BRepTriangulationProvider Class Reference

Populates polygonal model with a mesh computed from B-Rep representation. More...

Inheritance diagram for cadex::ModelData_BRepTriangulationProvider:
cadex::ModelData_PolyRepresentation::Provider

Public Member Functions

 ModelData_BRepTriangulationProvider (const ModelData_BRepRepresentation &theRep, const ModelAlgo_BRepMesherParameters &theParameters=ModelAlgo_BRepMesherParameters())
 Constructor. More...
 
virtual ~ModelData_BRepTriangulationProvider ()
 Destructor.
 
const ModelData_BRepRepresentationRef () const
 Returns the associated B-Rep representation.
 
void SetParameters (const ModelAlgo_BRepMesherParameters &theParameters)
 Sets mesher parameters.
 
const ModelAlgo_BRepMesherParametersParameters () const
 Returns mesher parameters.
 
ModelAlgo_BRepMesherParametersParameters ()
 Returns mesher parameters.
 
virtual void Feed (ModelData_PolyRepresentation &theRepresentation) const override
 Feeds the representation. More...
 
- Public Member Functions inherited from cadex::ModelData_PolyRepresentation::Provider
virtual ~Provider ()
 Destructor. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ModelData_BRepTriangulationProvider()

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().

Member Function Documentation

◆ Feed()

void cadex::ModelData_BRepTriangulationProvider::Feed ( ModelData_PolyRepresentation theRepresentation) const
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.