Version: 9.12.0
SMESH::SMESH_Pattern Interface Reference

SMESH_Pattern: interface of mesh pattern. More...

import"SMESH_Pattern.idl";

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_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_MAKEM_NOT_COMPUTED
}
 error code of the last of one of above operations More...
 

Public Member Functions

boolean LoadFromFile (in string theFileContents)
 Load a pattern from the string <theFileContents> More...
 
boolean LoadFromFace (in SMESH_Mesh theMesh, in GEOM::GEOM_Object theFace, in boolean theProject)
 Create a pattern from the mesh built on <theFace>. More...
 
boolean LoadFrom3DBlock (in SMESH_Mesh theMesh, in GEOM::GEOM_Object theBlock)
 Create a pattern from the mesh built on <theBlock> More...
 
point_array ApplyToFace (in GEOM::GEOM_Object theFace, in GEOM::GEOM_Object theVertexOnKeyPoint1, in boolean theReverse)
 Compute nodes coordinates applying the loaded pattern to <theFace>. More...
 
point_array ApplyTo3DBlock (in GEOM::GEOM_Object theBlock, in GEOM::GEOM_Object theVertex000, in GEOM::GEOM_Object theVertex001)
 Compute nodes coordinates applying the loaded pattern to <theBlock>. More...
 
point_array ApplyToMeshFaces (in SMESH_Mesh theMesh, in smIdType_array theFacesIDs, in short theNodeIndexOnKeyPoint1, in boolean theReverse)
 Compute nodes coordinates applying the loaded pattern to mesh faces. More...
 
point_array ApplyToHexahedrons (in SMESH_Mesh theMesh, in smIdType_array theVolumesIDs, in short theNode000Index, in short theNode001Index)
 Compute nodes coordinates applying the loaded pattern to hexahedrons. More...
 
boolean MakeMesh (in SMESH_Mesh theMesh, in boolean CreatePolygons, in boolean CreatePolyedrs)
 Create nodes and elements in <theMesh> using nodes coordinates computed by either of Apply...() methods. More...
 
string GetString ()
 Return the loaded pattern in the string form to be saved in file. More...
 
ErrorCode GetErrorCode ()
 Return error code of the last operation. More...
 
boolean Is2D ()
 Return true if the loaded pattern is a 2D one. More...
 
point_array GetPoints ()
 Return coordinates of pattern points. More...
 
long_array GetKeyPoints ()
 Return indices of key-points within the arrays returned by GetPoints() More...
 
array_of_long_array GetElementPoints (in boolean all)
 Return nodal connectivity of the elements of the pattern or of all elements to be created. More...
 

Detailed Description

SMESH_Pattern: interface of mesh pattern.

Member Enumeration Documentation

◆ ErrorCode

error code of the last of one of above operations

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_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_MAKEM_NOT_COMPUTED 

Member Function Documentation

◆ ApplyTo3DBlock()

point_array SMESH::SMESH_Pattern::ApplyTo3DBlock ( in GEOM::GEOM_Object  theBlock,
in GEOM::GEOM_Object  theVertex000,
in GEOM::GEOM_Object  theVertex001 
)

Compute nodes coordinates applying the loaded pattern to <theBlock>.

The (0,0,0) key-point will be mapped into <theVertex000>. The (0,0,1) key-point will be mapped into <theVertex001>.

◆ ApplyToFace()

point_array SMESH::SMESH_Pattern::ApplyToFace ( in GEOM::GEOM_Object  theFace,
in GEOM::GEOM_Object  theVertexOnKeyPoint1,
in boolean  theReverse 
)

Compute nodes coordinates applying the loaded pattern to <theFace>.

The first key-point will be mapped into <theVertexOnKeyPoint1>, which must be in the outer wire of theFace

◆ ApplyToHexahedrons()

point_array SMESH::SMESH_Pattern::ApplyToHexahedrons ( in SMESH_Mesh  theMesh,
in smIdType_array  theVolumesIDs,
in short  theNode000Index,
in short  theNode001Index 
)

Compute nodes coordinates applying the loaded pattern to hexahedrons.

The (0,0,0) key-point will be mapped into <theNode000Index>-th node of each volume. The (0,0,1) key-point will be mapped into <theNode001Index>-th node of each volume.

◆ ApplyToMeshFaces()

point_array SMESH::SMESH_Pattern::ApplyToMeshFaces ( in SMESH_Mesh  theMesh,
in smIdType_array  theFacesIDs,
in short  theNodeIndexOnKeyPoint1,
in boolean  theReverse 
)

Compute nodes coordinates applying the loaded pattern to mesh faces.

The first key-point will be mapped into <theNodeIndexOnKeyPoint1>-th node of each face

◆ GetElementPoints()

array_of_long_array SMESH::SMESH_Pattern::GetElementPoints ( in boolean  all)

Return nodal connectivity of the elements of the pattern or of all elements to be created.

◆ GetErrorCode()

ErrorCode SMESH::SMESH_Pattern::GetErrorCode ( )

Return error code of the last operation.

◆ GetKeyPoints()

long_array SMESH::SMESH_Pattern::GetKeyPoints ( )

Return indices of key-points within the arrays returned by GetPoints()

◆ GetPoints()

point_array SMESH::SMESH_Pattern::GetPoints ( )

Return coordinates of pattern points.

◆ GetString()

string SMESH::SMESH_Pattern::GetString ( )

Return the loaded pattern in the string form to be saved in file.

◆ Is2D()

boolean SMESH::SMESH_Pattern::Is2D ( )

Return true if the loaded pattern is a 2D one.

◆ LoadFrom3DBlock()

boolean SMESH::SMESH_Pattern::LoadFrom3DBlock ( in SMESH_Mesh  theMesh,
in GEOM::GEOM_Object  theBlock 
)

Create a pattern from the mesh built on <theBlock>

◆ LoadFromFace()

boolean SMESH::SMESH_Pattern::LoadFromFace ( in SMESH_Mesh  theMesh,
in GEOM::GEOM_Object  theFace,
in boolean  theProject 
)

Create a pattern from the mesh built on <theFace>.

<theProject>==true makes override nodes positions on <theFace> computed by mesher

◆ LoadFromFile()

boolean SMESH::SMESH_Pattern::LoadFromFile ( in string  theFileContents)

Load a pattern from the string <theFileContents>

◆ MakeMesh()

boolean SMESH::SMESH_Pattern::MakeMesh ( in SMESH_Mesh  theMesh,
in boolean  CreatePolygons,
in boolean  CreatePolyedrs 
)

Create nodes and elements in <theMesh> using nodes coordinates computed by either of Apply...() methods.

If CreatePolygons is TRUE, replace adjacent faces by polygons to keep mesh conformity. If CreatePolyedrs is TRUE, replace adjacent volumes by polyedrs to keep mesh conformity.