SMESH_Pattern Class Reference

#include <SMESH_Pattern.hxx>

Public Types

enum  ErrorCode {
  ERR_OK , ERR_READ_NB_POINTS , ERR_READ_POINT_COORDS , ERR_READ_TOO_FEW_POINTS ,
  ERR_READ_3D_COORD , ERR_READ_NO_KEYPOINT , ERR_READ_BAD_INDEX , ERR_READ_ELEM_POINTS ,
  ERR_READ_NO_ELEMS , ERR_READ_BAD_KEY_POINT , ERR_SAVE_NOT_LOADED , ERR_LOAD_EMPTY_SUBMESH ,
  ERR_LOADF_NARROW_FACE , ERR_LOADF_CLOSED_FACE , ERR_LOADF_CANT_PROJECT , ERR_LOADV_BAD_SHAPE ,
  ERR_LOADV_COMPUTE_PARAMS , ERR_APPL_NOT_COMPUTED , ERR_APPL_NOT_LOADED , ERR_APPL_BAD_DIMENTION ,
  ERR_APPL_BAD_NB_VERTICES , ERR_APPLF_BAD_TOPOLOGY , ERR_APPLF_BAD_VERTEX , ERR_APPLF_INTERNAL_EEROR ,
  ERR_APPLV_BAD_SHAPE , ERR_APPLF_BAD_FACE_GEOM , ERR_MAKEM_NOT_COMPUTED , ERR_UNEXPECTED
}
 

Public Member Functions

bool Apply (const SMDS_MeshFace *theFace, const int theNodeIndexOnKeyPoint1, const bool theReverse)
 
bool Apply (const SMDS_MeshVolume *theVolume, const int theNode000Index, const int theNode001Index)
 
bool Apply (const TopoDS_Face &theFace, const TopoDS_Vertex &theVertexOnKeyPoint1, const bool theReverse)
 
bool Apply (const TopoDS_Shell &theBlock, const TopoDS_Vertex &theVertex000, const TopoDS_Vertex &theVertex001)
 
bool Apply (SMESH_Mesh *theMesh, const SMDS_MeshFace *theFace, const TopoDS_Shape &theSurface, const int theNodeIndexOnKeyPoint1, const bool theReverse)
 
bool Apply (SMESH_Mesh *theMesh, std::set< const SMDS_MeshFace * > &theFaces, const int theNodeIndexOnKeyPoint1, const bool theReverse)
 
bool Apply (std::set< const SMDS_MeshVolume * > &theVolumes, const int theNode000Index, const int theNode001Index)
 
void Clear ()
 
void DumpPoints () const
 
const std::list< std::list< int > > & GetElementPointIDs (bool applied) const
 
ErrorCode GetErrorCode () const
 
const std::list< int > & GetKeyPointIDs () const
 
bool GetMappedPoints (std::list< const gp_XYZ * > &thePoints) const
 
bool GetPoints (std::list< const gp_XYZ * > &thePoints) const
 
TopoDS_Shape GetSubShape (const int i) const
 
bool Is2D () const
 
bool IsLoaded () const
 
bool Load (const char *theFileContents)
 
bool Load (SMESH_Mesh *theMesh, const TopoDS_Face &theFace, bool theProject=false, TopoDS_Vertex the1stVertex=TopoDS_Vertex())
 
bool Load (SMESH_Mesh *theMesh, const TopoDS_Shell &theBlock)
 
bool MakeMesh (SMESH_Mesh *theMesh, const bool toCreatePolygons=false, const bool toCreatePolyedrs=false)
 
bool Save (std::ostream &theFile)
 
 SMESH_Pattern ()
 

Friends

std::ostream & operator<< (std::ostream &OS, const TPoint &p)
 

Member Enumeration Documentation

◆ ErrorCode

Enumerator
ERR_OK 
ERR_READ_NB_POINTS 
ERR_READ_POINT_COORDS 
ERR_READ_TOO_FEW_POINTS 
ERR_READ_3D_COORD 
ERR_READ_NO_KEYPOINT 
ERR_READ_BAD_INDEX 
ERR_READ_ELEM_POINTS 
ERR_READ_NO_ELEMS 
ERR_READ_BAD_KEY_POINT 
ERR_SAVE_NOT_LOADED 
ERR_LOAD_EMPTY_SUBMESH 
ERR_LOADF_NARROW_FACE 
ERR_LOADF_CLOSED_FACE 
ERR_LOADF_CANT_PROJECT 
ERR_LOADV_BAD_SHAPE 
ERR_LOADV_COMPUTE_PARAMS 
ERR_APPL_NOT_COMPUTED 
ERR_APPL_NOT_LOADED 
ERR_APPL_BAD_DIMENTION 
ERR_APPL_BAD_NB_VERTICES 
ERR_APPLF_BAD_TOPOLOGY 
ERR_APPLF_BAD_VERTEX 
ERR_APPLF_INTERNAL_EEROR 
ERR_APPLV_BAD_SHAPE 
ERR_APPLF_BAD_FACE_GEOM 
ERR_MAKEM_NOT_COMPUTED 
ERR_UNEXPECTED 

Constructor & Destructor Documentation

◆ SMESH_Pattern()

SMESH_Pattern::SMESH_Pattern ( )

Member Function Documentation

◆ Apply() [1/7]

bool SMESH_Pattern::Apply ( const SMDS_MeshFace theFace,
const int  theNodeIndexOnKeyPoint1,
const bool  theReverse 
)

◆ Apply() [2/7]

bool SMESH_Pattern::Apply ( const SMDS_MeshVolume theVolume,
const int  theNode000Index,
const int  theNode001Index 
)

◆ Apply() [3/7]

bool SMESH_Pattern::Apply ( const TopoDS_Face &  theFace,
const TopoDS_Vertex &  theVertexOnKeyPoint1,
const bool  theReverse 
)

◆ Apply() [4/7]

bool SMESH_Pattern::Apply ( const TopoDS_Shell &  theBlock,
const TopoDS_Vertex &  theVertex000,
const TopoDS_Vertex &  theVertex001 
)

References ERR_APPLV_BAD_SHAPE, and ERR_OK.

◆ Apply() [5/7]

◆ Apply() [6/7]

bool SMESH_Pattern::Apply ( SMESH_Mesh theMesh,
std::set< const SMDS_MeshFace * > &  theFaces,
const int  theNodeIndexOnKeyPoint1,
const bool  theReverse 
)

◆ Apply() [7/7]

◆ Clear()

void SMESH_Pattern::Clear ( )

Referenced by Load().

◆ DumpPoints()

void SMESH_Pattern::DumpPoints ( ) const

◆ GetElementPointIDs()

const std::list< std::list< int > > & SMESH_Pattern::GetElementPointIDs ( bool  applied) const

◆ GetErrorCode()

ErrorCode SMESH_Pattern::GetErrorCode ( ) const

◆ GetKeyPointIDs()

const std::list< int > & SMESH_Pattern::GetKeyPointIDs ( ) const

◆ GetMappedPoints()

bool SMESH_Pattern::GetMappedPoints ( std::list< const gp_XYZ * > &  thePoints) const

◆ GetPoints()

bool SMESH_Pattern::GetPoints ( std::list< const gp_XYZ * > &  thePoints) const

References IsLoaded().

◆ GetSubShape()

TopoDS_Shape SMESH_Pattern::GetSubShape ( const int  i) const

◆ Is2D()

bool SMESH_Pattern::Is2D ( ) const

◆ IsLoaded()

bool SMESH_Pattern::IsLoaded ( ) const

Referenced by Apply(), GetPoints(), and Save().

◆ Load() [1/3]

◆ Load() [2/3]

◆ Load() [3/3]

◆ MakeMesh()

◆ Save()

bool SMESH_Pattern::Save ( std::ostream &  theFile)

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  OS,
const TPoint &  p 
)
friend

The documentation for this class was generated from the following files: