Structured quad mesh (assuming edges meshed appropriately) or quad-dominant mesh.
More...
Definition at line 159 of file NucMeshShapeData.H.
Inherits NEM::NUCMESH::CopyOverrideShapeData< QuadMeshSurface, GroupData >.
◆ CRTPBase
◆ QuadMeshSurface()
NEM::NUCMESH::QuadMeshSurface::QuadMeshSurface |
( |
std::string |
groupName | ) |
|
|
inlineexplicit |
Definition at line 162 of file NucMeshShapeData.H.
References mesh.
CopyOverrideShapeData< QuadMeshSurface, GroupData > CRTPBase
◆ setupAlgos()
void NEM::NUCMESH::QuadMeshSurface::setupAlgos |
( |
const TopoDS_Shape & |
shape, |
|
|
SMESH_Gen & |
generator, |
|
|
SMESH_Mesh & |
mesh, |
|
|
std::vector< std::unique_ptr< SMESH_Hypothesis >> & |
generatedHyps |
|
) |
| const |
|
overridevirtual |
Default implementation does nothing
- Parameters
-
[in] | shape | Shape to mesh |
[in,out] | generator | Generator that will mesh |
[in,out] | mesh | Mesh that will mesh |
[out] | generatedHyps | Output list of created hypotheses/algorithms (for memory management; will be deleted when the GeoManager instance is deleted) |
Reimplemented from NEM::NUCMESH::GroupData.
Definition at line 147 of file NucMeshShapeData.C.
References NEM::NUCMESH::GroupData::setupAlgos().
152 for (TopExp_Explorer explorer{shape, TopAbs_EDGE}; explorer.More();
157 auto algId = generator.GetANewId();
158 auto alg =
new StdMeshers_Quadrangle_2D{algId, &generator};
159 mesh.AddHypothesis(shape, algId);
160 generatedHyps.emplace_back(alg);
163 auto algId = generator.GetANewId();
164 auto alg =
new NETGENPlugin_NETGEN_2D_ONLY{algId, &generator};
165 mesh.AddHypothesis(shape, algId);
166 generatedHyps.emplace_back(alg);
167 auto hypId = generator.GetANewId();
168 auto hyp =
new StdMeshers_QuadranglePreference{hypId, &generator};
169 mesh.AddHypothesis(shape, hypId);
170 generatedHyps.emplace_back(hyp);
172 std::cerr <<
"Cannot generate quad-dominant mesh on general faces " void setupAlgos(const TopoDS_Shape &shape, SMESH_Gen &generator, SMESH_Mesh &mesh, std::vector< std::unique_ptr< SMESH_Hypothesis >> &generatedHyps) const override
Method that is called when a GeoManager instance tries to mesh shape.
std::shared_ptr< meshBase > mesh
◆ updateDeleted()
virtual void NEM::GEO::ShapeData::updateDeleted |
( |
const TopoDS_Shape & |
shape, |
|
|
GeoManager & |
geoMetadata |
|
) |
| |
|
inlinevirtualinherited |
Default implementation does nothing
- Parameters
-
[in] | shape | Shape to be removed |
[in,out] | geoMetadata | Geometry-to-data map to alter |
Definition at line 83 of file ShapeData.H.
◆ updateGenerated()
virtual void NEM::GEO::ShapeData::updateGenerated |
( |
const TopoDS_Shape & |
shape, |
|
|
const TopTools_ListOfShape & |
generatedShapes, |
|
|
GeoManager & |
geoMetadata |
|
) |
| const |
|
inlinevirtualinherited |
Default implementation does nothing
- Parameters
-
[in] | shape | Argument to operation; shape existing in geoMetadata |
[in] | generatedShapes | Shapes provided by a call to op.Generated(shape) for some geometry operation |
[in,out] | geoMetadata | Geometry-to-data map to alter |
Definition at line 62 of file ShapeData.H.
◆ updateModified()
|
inlineoverridevirtualinherited |
◆ groupName
std::string NEM::NUCMESH::GroupData::groupName |
|
inherited |
◆ type
SMDSAbs_ElementType NEM::NUCMESH::GroupData::type |
|
inherited |
The documentation for this class was generated from the following files: