#include <BLSURFPlugin_BLSURF.hxx>
Inherits SMESH_2D_Algo.
Data Structures | |
struct | TEdgePeriodicityIDs |
struct | TPreCadPeriodicityIDs |
struct | TVertexPeriodicityIDs |
Public Types | |
typedef std::vector< int > | TListOfIDs |
typedef std::vector < TPreCadPeriodicityIDs > | TPreCadIDsPeriodicityVector |
typedef std::vector< std::pair < int, int > > | TShapesIDsPeriodicityVector |
typedef std::vector < TEdgePeriodicityIDs > | TEdgesIDsPeriodicityVector |
typedef std::vector < TVertexPeriodicityIDs > | TVerticesIDsPeriodicityVector |
Public Member Functions | |
BLSURFPlugin_BLSURF (int hypId, int studyId, SMESH_Gen *gen, bool theHasGEOM) | |
virtual | ~BLSURFPlugin_BLSURF () |
virtual bool | CheckHypothesis (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, SMESH_Hypothesis::Hypothesis_Status &aStatus) |
void | SetParameters (const BLSURFPlugin_Hypothesis *hyp, cadsurf_session_t *css, const TopoDS_Shape &shape) |
virtual bool | Compute (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape) |
virtual bool | Compute (SMESH_Mesh &aMesh, SMESH_MesherHelper *aHelper) |
Compute a mesh basing on discrete CAD description. More... | |
virtual void | CancelCompute () |
Terminates computation. More... | |
bool | computeCanceled () |
virtual bool | Evaluate (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, MapShapeNbElems &aResMap) |
Private Member Functions | |
bool | compute (SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, bool allowSubMeshClearing) |
void | set_param (cadsurf_session_t *css, const char *option_name, const char *option_value) |
Throws an exception if a parameter name is wrong. More... | |
TopoDS_Shape | entryToShape (std::string entry) |
void | addCoordsFromVertices (const std::vector< std::string > &theVerticesEntries, std::vector< double > &theVerticesCoords) |
void | addCoordsFromVertex (BLSURFPlugin_Hypothesis::TEntry theVertexEntry, std::vector< double > &theVerticesCoords) |
void | createEnforcedVertexOnFace (TopoDS_Shape FaceShape, BLSURFPlugin_Hypothesis::TEnfVertexList enfVertexList) |
void | createPreCadFacesPeriodicity (TopoDS_Shape theGeomShape, const BLSURFPlugin_Hypothesis::TPreCadPeriodicity &preCadPeriodicity) |
void | createPreCadEdgesPeriodicity (TopoDS_Shape theGeomShape, const BLSURFPlugin_Hypothesis::TPreCadPeriodicity &preCadPeriodicity) |
void | Set_NodeOnEdge (SMESHDS_Mesh *meshDS, const SMDS_MeshNode *node, const TopoDS_Shape &ed) |
void | BRepClass_FaceClassifierPerform (BRepClass_FaceClassifier *fc, const TopoDS_Face &face, const gp_Pnt &P, const Standard_Real Tol) |
Private Attributes | |
PyObject * | main_mod |
PyObject * | main_dict |
SMESH_MesherHelper * | myHelper |
SALOMEDS::Study_var | myStudy |
SMESH_Gen_i * | smeshGen_i |
volatile bool | _compute_canceled |
typedef std::vector<int> BLSURFPlugin_BLSURF::TListOfIDs |
typedef std::vector< TPreCadPeriodicityIDs > BLSURFPlugin_BLSURF::TPreCadIDsPeriodicityVector |
typedef std::vector< std::pair<int, int> > BLSURFPlugin_BLSURF::TShapesIDsPeriodicityVector |
typedef std::vector< TEdgePeriodicityIDs > BLSURFPlugin_BLSURF::TEdgesIDsPeriodicityVector |
typedef std::vector< TVertexPeriodicityIDs > BLSURFPlugin_BLSURF::TVerticesIDsPeriodicityVector |
BLSURFPlugin_BLSURF::BLSURFPlugin_BLSURF | ( | int | hypId, |
int | studyId, | ||
SMESH_Gen * | gen, | ||
bool | theHasGEOM | ||
) |
References _compute_canceled, _hypothesis, BLSURFPlugin_Hypothesis::GetHypType(), main_dict, main_mod, myStudy, and smeshGen_i.
|
virtual |
|
virtual |
void BLSURFPlugin_BLSURF::SetParameters | ( | const BLSURFPlugin_Hypothesis * | hyp, |
cadsurf_session_t * | css, | ||
const TopoDS_Shape & | shape | ||
) |
References _createEnforcedVertexOnFace(), BLSURFPlugin_Hypothesis::TEnfVertex::coords, createAttractorOnFace(), BLSURFPlugin_Hypothesis::TEnfVertex::faceEntries, BLSURFPlugin_Hypothesis::TEnfVertex::geomEntry, BLSURFPlugin_Hypothesis::GeometricalGlobalSize, BLSURFPlugin_Hypothesis::GeometricalLocalSize, BLSURFPlugin_Hypothesis::GetAllEnforcedVerticesByFace(), BLSURFPlugin_Hypothesis::GetAttractorEntries(), BLSURFPlugin_Hypothesis::GetClassAttractorEntries(), BLSURFPlugin_Hypothesis::GetDefaultAngleMesh(), BLSURFPlugin_Hypothesis::GetDefaultAnisotropic(), BLSURFPlugin_Hypothesis::GetDefaultAnisotropicRatio(), BLSURFPlugin_Hypothesis::GetDefaultBadElementAspectRatio(), BLSURFPlugin_Hypothesis::GetDefaultBadElementRemoval(), BLSURFPlugin_Hypothesis::GetDefaultChordalError(), BLSURFPlugin_Hypothesis::GetDefaultCorrectSurfaceIntersection(), BLSURFPlugin_Hypothesis::GetDefaultCorrectSurfaceIntersectionMaxCost(), BLSURFPlugin_Hypothesis::GetDefaultGeometricMesh(), BLSURFPlugin_Hypothesis::GetDefaultGradation(), BLSURFPlugin_Hypothesis::GetDefaultMaxSize(), BLSURFPlugin_Hypothesis::GetDefaultMaxSizeRel(), BLSURFPlugin_Hypothesis::GetDefaultMinSize(), BLSURFPlugin_Hypothesis::GetDefaultMinSizeRel(), BLSURFPlugin_Hypothesis::GetDefaultOptimiseTinyEdges(), BLSURFPlugin_Hypothesis::GetDefaultOptimizeMesh(), BLSURFPlugin_Hypothesis::GetDefaultPhysicalMesh(), BLSURFPlugin_Hypothesis::GetDefaultPhySize(), BLSURFPlugin_Hypothesis::GetDefaultPhySizeRel(), BLSURFPlugin_Hypothesis::GetDefaultQuadAllowed(), BLSURFPlugin_Hypothesis::GetDefaultQuadraticMesh(), BLSURFPlugin_Hypothesis::GetDefaultRemoveTinyEdges(), BLSURFPlugin_Hypothesis::GetDefaultTinyEdgeLength(), BLSURFPlugin_Hypothesis::GetDefaultTinyEdgeOptimisationLength(), BLSURFPlugin_Hypothesis::GetDefaultUseGradation(), BLSURFPlugin_Hypothesis::GetDefaultUseVolumeGradation(), BLSURFPlugin_Hypothesis::GetDefaultVerbosity(), BLSURFPlugin_Hypothesis::GetDefaultVolumeGradation(), BLSURFPlugin_Hypothesis::GetInternalEnforcedVertexAllFaces(), BLSURFPlugin_Hypothesis::GetInternalEnforcedVertexAllFacesGroup(), BLSURFPlugin_Hypothesis::GetPreCadEdgesPeriodicityVector(), BLSURFPlugin_Hypothesis::GetPreCadFacesPeriodicityVector(), BLSURFPlugin_Hypothesis::GetSizeMapEntries(), BLSURFPlugin_Hypothesis::TEnfVertex::grpName, BLSURFPlugin_Hypothesis::HasPreCADOptions(), BLSURFPlugin_Hypothesis::TEnfVertex::name, BLSURFPlugin_Hypothesis::PhysicalGlobalSize, BLSURFPlugin_Hypothesis::PhysicalLocalSize, size_on_edge(), size_on_surface(), size_on_vertex(), val_to_string(), val_to_string_rel(), and BLSURFPlugin_Hypothesis::TEnfVertex::vertex.
|
virtual |
|
virtual |
References BLSURFPlugin_Hypothesis::GetDefaultVerbosity(), and message_cb().
|
virtual |
bool BLSURFPlugin_BLSURF::computeCanceled | ( | ) |
References _compute_canceled.
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
References _getSubShapeIDsInMainShape(), BLSURFPlugin_Hypothesis::TPreCadPeriodicity::shape1Entry, BLSURFPlugin_BLSURF::TPreCadPeriodicityIDs::shape1IDs, BLSURFPlugin_Hypothesis::TPreCadPeriodicity::shape2Entry, BLSURFPlugin_BLSURF::TPreCadPeriodicityIDs::shape2IDs, BLSURFPlugin_BLSURF::TPreCadPeriodicityIDs::theSourceVerticesCoords, BLSURFPlugin_Hypothesis::TPreCadPeriodicity::theSourceVerticesEntries, BLSURFPlugin_BLSURF::TPreCadPeriodicityIDs::theTargetVerticesCoords, and BLSURFPlugin_Hypothesis::TPreCadPeriodicity::theTargetVerticesEntries.
|
private |
References _getSubShapeIDsInMainShape(), BLSURFPlugin_Hypothesis::TPreCadPeriodicity::shape1Entry, BLSURFPlugin_BLSURF::TPreCadPeriodicityIDs::shape1IDs, BLSURFPlugin_Hypothesis::TPreCadPeriodicity::shape2Entry, BLSURFPlugin_BLSURF::TPreCadPeriodicityIDs::shape2IDs, BLSURFPlugin_BLSURF::TPreCadPeriodicityIDs::theSourceVerticesCoords, BLSURFPlugin_Hypothesis::TPreCadPeriodicity::theSourceVerticesEntries, BLSURFPlugin_BLSURF::TPreCadPeriodicityIDs::theTargetVerticesCoords, and BLSURFPlugin_Hypothesis::TPreCadPeriodicity::theTargetVerticesEntries.
|
private |
SetNodeOnEdge
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |