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

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

#include <cadex/ModelData_BRepTriangulationProvider.hxx>

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

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_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.
 
- Public Member Functions inherited from cadex::ModelData_PolyRepresentation::Provider
virtual ~Provider ()
 Destructor.
 
virtual void Feed (ModelData_PolyRepresentation &theRepresentation) const =0
 Feeds the representation.
 

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() [1/2]

cadex::ModelData_BRepTriangulationProvider::ModelData_BRepTriangulationProvider ( const ImplType *  theImpl)

For internal use.

◆ ModelData_BRepTriangulationProvider() [2/2]

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.