Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _SMESH_PATTERN_IDL_
00029 #define _SMESH_PATTERN_IDL_
00030
00031 #include "SMESH_Mesh.idl"
00032
00033 module SMESH
00034 {
00035
00036 typedef sequence<SMESH::PointStruct> point_array;
00037
00041 interface SMESH_Pattern {
00042
00046 boolean LoadFromFile(in string theFileContents);
00047
00053 boolean LoadFromFace(in SMESH_Mesh theMesh,
00054 in GEOM::GEOM_Object theFace,
00055 in boolean theProject);
00056
00060 boolean LoadFrom3DBlock(in SMESH_Mesh theMesh,
00061 in GEOM::GEOM_Object theBlock);
00062
00069 point_array ApplyToFace(in GEOM::GEOM_Object theFace,
00070 in GEOM::GEOM_Object theVertexOnKeyPoint1,
00071 in boolean theReverse);
00072
00079 point_array ApplyTo3DBlock(in GEOM::GEOM_Object theBlock,
00080 in GEOM::GEOM_Object theVertex000,
00081 in GEOM::GEOM_Object theVertex001);
00082
00088 point_array ApplyToMeshFaces(in SMESH_Mesh theMesh,
00089 in long_array theFacesIDs,
00090 in long theNodeIndexOnKeyPoint1,
00091 in boolean theReverse);
00092
00100 point_array ApplyToHexahedrons(in SMESH_Mesh theMesh,
00101 in long_array theVolumesIDs,
00102 in long theNode000Index,
00103 in long theNode001Index);
00104
00113 boolean MakeMesh (in SMESH_Mesh theMesh,
00114 in boolean CreatePolygons,
00115 in boolean CreatePolyedrs);
00116
00120 string GetString();
00121
00125 enum ErrorCode {
00126 ERR_OK,
00127
00128 ERR_READ_NB_POINTS,
00129 ERR_READ_POINT_COORDS,
00130 ERR_READ_TOO_FEW_POINTS,
00131 ERR_READ_3D_COORD,
00132 ERR_READ_NO_KEYPOINT,
00133 ERR_READ_BAD_INDEX,
00134 ERR_READ_ELEM_POINTS,
00135 ERR_READ_NO_ELEMS,
00136 ERR_READ_BAD_KEY_POINT,
00137
00138 ERR_SAVE_NOT_LOADED,
00139
00140 ERR_LOAD_EMPTY_SUBMESH,
00141
00142 ERR_LOADF_NARROW_FACE,
00143 ERR_LOADF_CLOSED_FACE,
00144 ERR_LOADF_CANT_PROJECT,
00145
00146 ERR_LOADV_BAD_SHAPE,
00147 ERR_LOADV_COMPUTE_PARAMS,
00148
00149 ERR_APPL_NOT_LOADED,
00150 ERR_APPL_BAD_DIMENTION,
00151 ERR_APPL_BAD_NB_VERTICES,
00152
00153 ERR_APPLF_BAD_TOPOLOGY,
00154 ERR_APPLF_BAD_VERTEX,
00155 ERR_APPLF_INTERNAL_EEROR,
00156
00157 ERR_APPLV_BAD_SHAPE,
00158
00159 ERR_MAKEM_NOT_COMPUTED
00160 };
00161
00165 ErrorCode GetErrorCode();
00166
00170 boolean Is2D();
00171
00175 point_array GetPoints();
00176
00181 long_array GetKeyPoints();
00182
00187 array_of_long_array GetElementPoints(in boolean all);
00188 };
00189 };
00190
00191 #endif