Version: 8.3.0
BLSURFPlugin_BLSURF Class Reference

#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)
 

Protected Attributes

const BLSURFPlugin_Hypothesis_hypothesis
 
bool _haveViscousLayers
 
TPreCadIDsPeriodicityVector _preCadFacesIDsPeriodicityVector
 
TPreCadIDsPeriodicityVector _preCadEdgesIDsPeriodicityVector
 

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
 

Member Typedef Documentation

typedef std::vector<int> BLSURFPlugin_BLSURF::TListOfIDs
typedef std::vector< std::pair<int, int> > BLSURFPlugin_BLSURF::TShapesIDsPeriodicityVector

Constructor & Destructor Documentation

BLSURFPlugin_BLSURF::BLSURFPlugin_BLSURF ( int  hypId,
int  studyId,
SMESH_Gen *  gen,
bool  theHasGEOM 
)
BLSURFPlugin_BLSURF::~BLSURFPlugin_BLSURF ( )
virtual

Member Function Documentation

bool BLSURFPlugin_BLSURF::CheckHypothesis ( SMESH_Mesh &  aMesh,
const TopoDS_Shape &  aShape,
SMESH_Hypothesis::Hypothesis_Status &  aStatus 
)
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.

bool BLSURFPlugin_BLSURF::Compute ( SMESH_Mesh &  aMesh,
const TopoDS_Shape &  aShape 
)
virtual
bool BLSURFPlugin_BLSURF::Compute ( SMESH_Mesh &  aMesh,
SMESH_MesherHelper *  aHelper 
)
virtual
void BLSURFPlugin_BLSURF::CancelCompute ( )
virtual
bool BLSURFPlugin_BLSURF::computeCanceled ( )

References _compute_canceled.

bool BLSURFPlugin_BLSURF::Evaluate ( SMESH_Mesh &  aMesh,
const TopoDS_Shape &  aShape,
MapShapeNbElems &  aResMap 
)
virtual
bool BLSURFPlugin_BLSURF::compute ( SMESH_Mesh &  aMesh,
const TopoDS_Shape &  aShape,
bool  allowSubMeshClearing 
)
private
void BLSURFPlugin_BLSURF::set_param ( cadsurf_session_t *  css,
const char *  option_name,
const char *  option_value 
)
private
TopoDS_Shape BLSURFPlugin_BLSURF::entryToShape ( std::string  entry)
private
void BLSURFPlugin_BLSURF::addCoordsFromVertices ( const std::vector< std::string > &  theVerticesEntries,
std::vector< double > &  theVerticesCoords 
)
private
void BLSURFPlugin_BLSURF::addCoordsFromVertex ( BLSURFPlugin_Hypothesis::TEntry  theVertexEntry,
std::vector< double > &  theVerticesCoords 
)
private
void BLSURFPlugin_BLSURF::createEnforcedVertexOnFace ( TopoDS_Shape  FaceShape,
BLSURFPlugin_Hypothesis::TEnfVertexList  enfVertexList 
)
private
void BLSURFPlugin_BLSURF::Set_NodeOnEdge ( SMESHDS_Mesh *  meshDS,
const SMDS_MeshNode *  node,
const TopoDS_Shape &  ed 
)
private

SetNodeOnEdge

void BLSURFPlugin_BLSURF::BRepClass_FaceClassifierPerform ( BRepClass_FaceClassifier *  fc,
const TopoDS_Face &  face,
const gp_Pnt &  P,
const Standard_Real  Tol 
)
private

Field Documentation

const BLSURFPlugin_Hypothesis* BLSURFPlugin_BLSURF::_hypothesis
protected
bool BLSURFPlugin_BLSURF::_haveViscousLayers
protected
TPreCadIDsPeriodicityVector BLSURFPlugin_BLSURF::_preCadFacesIDsPeriodicityVector
protected
TPreCadIDsPeriodicityVector BLSURFPlugin_BLSURF::_preCadEdgesIDsPeriodicityVector
protected
PyObject* BLSURFPlugin_BLSURF::main_mod
private
PyObject* BLSURFPlugin_BLSURF::main_dict
private
SMESH_MesherHelper* BLSURFPlugin_BLSURF::myHelper
private
SALOMEDS::Study_var BLSURFPlugin_BLSURF::myStudy
private
SMESH_Gen_i* BLSURFPlugin_BLSURF::smeshGen_i
private
volatile bool BLSURFPlugin_BLSURF::_compute_canceled
private