1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
24 // File : SMESH_MeshEditor_i.hxx
25 // Author : Nicolas REJNERI
28 #ifndef _SMESH_MESHEDITOR_I_HXX_
29 #define _SMESH_MESHEDIOTR_I_HXX_
33 #include <SALOMEconfig.h>
34 #include CORBA_SERVER_HEADER(SMESH_MeshEditor)
36 #include "SMESH_Mesh.hxx"
37 #include "SMESH_PythonDump.hxx"
38 #include "SMESH_MeshEditor.hxx"
43 namespace MeshEditor_I {
47 class SMESH_MeshEditor_i: public POA_SMESH::SMESH_MeshEditor
50 SMESH_MeshEditor_i(SMESH_Mesh_i * theMesh, bool isPreview);
52 virtual ~ SMESH_MeshEditor_i();
54 * \brief Return edited mesh ID
55 * \retval int - mesh ID
57 int GetMeshId() const { return myMesh->GetId(); }
62 * Return data of mesh edition preview
64 SMESH::MeshPreviewStruct* GetPreviewData() throw (SALOME::SALOME_Exception);
66 * If during last operation of MeshEditor some nodes were
67 * created this method returns list of their IDs, if new nodes
68 * not created - returns an empty list
70 SMESH::long_array* GetLastCreatedNodes() throw (SALOME::SALOME_Exception);
72 * If during last operation of MeshEditor some elements were
73 * created this method returns list of their IDs, if new elements
74 * not created - returns an empty list
76 SMESH::long_array* GetLastCreatedElems() throw (SALOME::SALOME_Exception);
78 * \brief Clears sequences of last created elements and nodes
80 void ClearLastCreated() throw (SALOME::SALOME_Exception);
82 * \brief Returns description of an error/warning occured during the last operation
84 SMESH::ComputeError* GetLastError() throw (SALOME::SALOME_Exception);
87 * \brief Wrap a sequence of ids in a SMESH_IDSource
89 SMESH::SMESH_IDSource_ptr MakeIDSource(const SMESH::long_array& IDsOfElements,
90 SMESH::ElementType type);
91 static bool IsTemporaryIDSource( SMESH::SMESH_IDSource_ptr& idSource );
92 static CORBA::Long* GetTemporaryIDs( SMESH::SMESH_IDSource_ptr& idSource, int& nbIds );
94 CORBA::Boolean RemoveElements(const SMESH::long_array & IDsOfElements)
95 throw (SALOME::SALOME_Exception);
96 CORBA::Boolean RemoveNodes (const SMESH::long_array & IDsOfNodes)
97 throw (SALOME::SALOME_Exception);
98 CORBA::Long RemoveOrphanNodes()
99 throw (SALOME::SALOME_Exception);
102 * Methods for creation new elements.
103 * Returns ID of created element or 0 if element not created
105 CORBA::Long AddNode(CORBA::Double x, CORBA::Double y, CORBA::Double z)
106 throw (SALOME::SALOME_Exception);
107 CORBA::Long Add0DElement(CORBA::Long IDOfNode)
108 throw (SALOME::SALOME_Exception);
109 CORBA::Long AddBall(CORBA::Long IDOfNodem, CORBA::Double diameter)
110 throw (SALOME::SALOME_Exception);
111 CORBA::Long AddEdge(const SMESH::long_array & IDsOfNodes)
112 throw (SALOME::SALOME_Exception);
113 CORBA::Long AddFace(const SMESH::long_array & IDsOfNodes)
114 throw (SALOME::SALOME_Exception);
115 CORBA::Long AddPolygonalFace(const SMESH::long_array & IDsOfNodes)
116 throw (SALOME::SALOME_Exception);
117 CORBA::Long AddVolume(const SMESH::long_array & IDsOfNodes)
118 throw (SALOME::SALOME_Exception);
119 CORBA::Long AddPolyhedralVolume(const SMESH::long_array & IDsOfNodes,
120 const SMESH::long_array & Quantities)
121 throw (SALOME::SALOME_Exception);
122 CORBA::Long AddPolyhedralVolumeByFaces(const SMESH::long_array & IdsOfFaces)
123 throw (SALOME::SALOME_Exception);
126 * \brief Create 0D elements on all nodes of the given object except those
127 * nodes on which a 0D element already exists.
128 * \param theObject object on whose nodes 0D elements will be created.
129 * \param theGroupName optional name of a group to add 0D elements created
130 * and/or found on nodes of \a theObject.
131 * \return an object (a new group or a temporary SMESH_IDSource) holding
132 * ids of new and/or found 0D elements.
134 SMESH::SMESH_IDSource_ptr Create0DElementsOnAllNodes(SMESH::SMESH_IDSource_ptr theObject,
135 const char* theGroupName)
136 throw (SALOME::SALOME_Exception);
139 * \brief Bind a node to a vertex
140 * \param NodeID - node ID
141 * \param VertexID - vertex ID available through GEOM_Object.GetSubShapeIndices()[0]
143 void SetNodeOnVertex(CORBA::Long NodeID, CORBA::Long VertexID)
144 throw (SALOME::SALOME_Exception);
146 * \brief Store node position on an edge
147 * \param NodeID - node ID
148 * \param EdgeID - edge ID available through GEOM_Object.GetSubShapeIndices()[0]
149 * \param paramOnEdge - parameter on edge where the node is located
151 void SetNodeOnEdge(CORBA::Long NodeID, CORBA::Long EdgeID,
152 CORBA::Double paramOnEdge)
153 throw (SALOME::SALOME_Exception);
155 * \brief Store node position on a face
156 * \param NodeID - node ID
157 * \param FaceID - face ID available through GEOM_Object.GetSubShapeIndices()[0]
158 * \param u - U parameter on face where the node is located
159 * \param v - V parameter on face where the node is located
161 void SetNodeOnFace(CORBA::Long NodeID, CORBA::Long FaceID,
162 CORBA::Double u, CORBA::Double v)
163 throw (SALOME::SALOME_Exception);
165 * \brief Bind a node to a solid
166 * \param NodeID - node ID
167 * \param SolidID - vertex ID available through GEOM_Object.GetSubShapeIndices()[0]
169 void SetNodeInVolume(CORBA::Long NodeID, CORBA::Long SolidID)
170 throw (SALOME::SALOME_Exception);
172 * \brief Bind an element to a shape
173 * \param ElementID - element ID
174 * \param ShapeID - shape ID available through GEOM_Object.GetSubShapeIndices()[0]
176 void SetMeshElementOnShape(CORBA::Long ElementID, CORBA::Long ShapeID)
177 throw (SALOME::SALOME_Exception);
180 CORBA::Boolean MoveNode(CORBA::Long NodeID,
181 CORBA::Double x, CORBA::Double y, CORBA::Double z)
182 throw (SALOME::SALOME_Exception);
184 CORBA::Boolean InverseDiag(CORBA::Long NodeID1, CORBA::Long NodeID2)
185 throw (SALOME::SALOME_Exception);
186 CORBA::Boolean DeleteDiag(CORBA::Long NodeID1, CORBA::Long NodeID2)
187 throw (SALOME::SALOME_Exception);
188 CORBA::Boolean Reorient(const SMESH::long_array & IDsOfElements)
189 throw (SALOME::SALOME_Exception);
190 CORBA::Boolean ReorientObject(SMESH::SMESH_IDSource_ptr theObject)
191 throw (SALOME::SALOME_Exception);
194 * \brief Reorient faces contained in \a the2Dgroup.
195 * \param the2Dgroup - the mesh or its part to reorient
196 * \param theDirection - desired direction of normal of \a theFace
197 * \param theFace - ID of face whose orientation is checked.
198 * It can be < 1 then \a thePoint is used to find a face.
199 * \param thePoint - is used to find a face if \a theFace < 1.
200 * \return number of reoriented elements.
202 CORBA::Long Reorient2D(SMESH::SMESH_IDSource_ptr the2Dgroup,
203 const SMESH::DirStruct& theDirection,
205 const SMESH::PointStruct& thePoint) throw (SALOME::SALOME_Exception);
208 CORBA::Boolean TriToQuad (const SMESH::long_array & IDsOfElements,
209 SMESH::NumericalFunctor_ptr Criterion,
210 CORBA::Double MaxAngle)
211 throw (SALOME::SALOME_Exception);
212 CORBA::Boolean TriToQuadObject (SMESH::SMESH_IDSource_ptr theObject,
213 SMESH::NumericalFunctor_ptr Criterion,
214 CORBA::Double MaxAngle)
215 throw (SALOME::SALOME_Exception);
216 CORBA::Boolean QuadToTri (const SMESH::long_array & IDsOfElements,
217 SMESH::NumericalFunctor_ptr Criterion)
218 throw (SALOME::SALOME_Exception);
219 CORBA::Boolean QuadToTriObject (SMESH::SMESH_IDSource_ptr theObject,
220 SMESH::NumericalFunctor_ptr Criterion)
221 throw (SALOME::SALOME_Exception);
222 void QuadTo4Tri (SMESH::SMESH_IDSource_ptr theObject)
223 throw (SALOME::SALOME_Exception);
224 CORBA::Boolean SplitQuad (const SMESH::long_array & IDsOfElements,
225 CORBA::Boolean Diag13)
226 throw (SALOME::SALOME_Exception);
227 CORBA::Boolean SplitQuadObject (SMESH::SMESH_IDSource_ptr theObject,
228 CORBA::Boolean Diag13)
229 throw (SALOME::SALOME_Exception);
230 CORBA::Long BestSplit (CORBA::Long IDOfQuad,
231 SMESH::NumericalFunctor_ptr Criterion)
232 throw (SALOME::SALOME_Exception);
233 void SplitVolumesIntoTetra(SMESH::SMESH_IDSource_ptr elems,
234 CORBA::Short methodFlags)
235 throw (SALOME::SALOME_Exception);
236 void SplitHexahedraIntoPrisms(SMESH::SMESH_IDSource_ptr elems,
237 CORBA::Short methodFlags,
238 const SMESH::AxisStruct & facetToSplitNormal,
239 CORBA::Boolean allDomains)
240 throw (SALOME::SALOME_Exception);
242 CORBA::Boolean Smooth(const SMESH::long_array & IDsOfElements,
243 const SMESH::long_array & IDsOfFixedNodes,
244 CORBA::Long MaxNbOfIterations,
245 CORBA::Double MaxAspectRatio,
246 SMESH::SMESH_MeshEditor::Smooth_Method Method)
247 throw (SALOME::SALOME_Exception);
248 CORBA::Boolean SmoothObject(SMESH::SMESH_IDSource_ptr theObject,
249 const SMESH::long_array & IDsOfFixedNodes,
250 CORBA::Long MaxNbOfIterations,
251 CORBA::Double MaxAspectRatio,
252 SMESH::SMESH_MeshEditor::Smooth_Method Method)
253 throw (SALOME::SALOME_Exception);
254 CORBA::Boolean SmoothParametric(const SMESH::long_array & IDsOfElements,
255 const SMESH::long_array & IDsOfFixedNodes,
256 CORBA::Long MaxNbOfIterations,
257 CORBA::Double MaxAspectRatio,
258 SMESH::SMESH_MeshEditor::Smooth_Method Method)
259 throw (SALOME::SALOME_Exception);
260 CORBA::Boolean SmoothParametricObject(SMESH::SMESH_IDSource_ptr theObject,
261 const SMESH::long_array & IDsOfFixedNodes,
262 CORBA::Long MaxNbOfIterations,
263 CORBA::Double MaxAspectRatio,
264 SMESH::SMESH_MeshEditor::Smooth_Method Method)
265 throw (SALOME::SALOME_Exception);
266 CORBA::Boolean smooth(const SMESH::long_array & IDsOfElements,
267 const SMESH::long_array & IDsOfFixedNodes,
268 CORBA::Long MaxNbOfIterations,
269 CORBA::Double MaxAspectRatio,
270 SMESH::SMESH_MeshEditor::Smooth_Method Method,
272 throw (SALOME::SALOME_Exception);
273 CORBA::Boolean smoothObject(SMESH::SMESH_IDSource_ptr theObject,
274 const SMESH::long_array & IDsOfFixedNodes,
275 CORBA::Long MaxNbOfIterations,
276 CORBA::Double MaxAspectRatio,
277 SMESH::SMESH_MeshEditor::Smooth_Method Method,
279 throw (SALOME::SALOME_Exception);
281 CORBA::Boolean ConvertFromQuadratic()
282 throw (SALOME::SALOME_Exception);
283 void ConvertFromQuadraticObject(SMESH::SMESH_IDSource_ptr theObject)
284 throw (SALOME::SALOME_Exception);
285 void ConvertToQuadratic(CORBA::Boolean Force3d)
286 throw (SALOME::SALOME_Exception);
287 void ConvertToQuadraticObject(CORBA::Boolean theForce3d,
288 SMESH::SMESH_IDSource_ptr theObject)
289 throw (SALOME::SALOME_Exception);
290 void ConvertToBiQuadratic(CORBA::Boolean theForce3d,
291 SMESH::SMESH_IDSource_ptr theObject)
292 throw (SALOME::SALOME_Exception);
294 void RenumberNodes() throw (SALOME::SALOME_Exception);
295 void RenumberElements() throw (SALOME::SALOME_Exception);
297 void RotationSweep(const SMESH::long_array & IDsOfElements,
298 const SMESH::AxisStruct & Axis,
299 CORBA::Double AngleInRadians,
300 CORBA::Long NbOfSteps,
301 CORBA::Double Tolerance)
302 throw (SALOME::SALOME_Exception);
303 void RotationSweepObject(SMESH::SMESH_IDSource_ptr theObject,
304 const SMESH::AxisStruct & Axis,
305 CORBA::Double AngleInRadians,
306 CORBA::Long NbOfSteps,
307 CORBA::Double Tolerance)
308 throw (SALOME::SALOME_Exception);
309 void RotationSweepObject1D(SMESH::SMESH_IDSource_ptr theObject,
310 const SMESH::AxisStruct & Axis,
311 CORBA::Double AngleInRadians,
312 CORBA::Long NbOfSteps,
313 CORBA::Double Tolerance)
314 throw (SALOME::SALOME_Exception);
315 void RotationSweepObject2D(SMESH::SMESH_IDSource_ptr theObject,
316 const SMESH::AxisStruct & Axis,
317 CORBA::Double AngleInRadians,
318 CORBA::Long NbOfSteps,
319 CORBA::Double Tolerance)
320 throw (SALOME::SALOME_Exception);
322 void ExtrusionSweep(const SMESH::long_array & IDsOfElements,
323 const SMESH::DirStruct & StepVector,
324 CORBA::Long NbOfSteps)
325 throw (SALOME::SALOME_Exception);
326 void ExtrusionSweep0D(const SMESH::long_array & IDsOfElements,
327 const SMESH::DirStruct & StepVector,
328 CORBA::Long NbOfSteps)
329 throw (SALOME::SALOME_Exception);
331 void ExtrusionSweepObject(SMESH::SMESH_IDSource_ptr theObject,
332 const SMESH::DirStruct & StepVector,
333 CORBA::Long NbOfSteps)
334 throw (SALOME::SALOME_Exception);
336 void ExtrusionSweepObject0D(SMESH::SMESH_IDSource_ptr theObject,
337 const SMESH::DirStruct & StepVector,
338 CORBA::Long NbOfSteps)
339 throw (SALOME::SALOME_Exception);
340 void ExtrusionSweepObject1D(SMESH::SMESH_IDSource_ptr theObject,
341 const SMESH::DirStruct & StepVector,
342 CORBA::Long NbOfSteps)
343 throw (SALOME::SALOME_Exception);
344 void ExtrusionSweepObject2D(SMESH::SMESH_IDSource_ptr theObject,
345 const SMESH::DirStruct & StepVector,
346 CORBA::Long NbOfSteps)
347 throw (SALOME::SALOME_Exception);
348 void AdvancedExtrusion(const SMESH::long_array & theIDsOfElements,
349 const SMESH::DirStruct & theStepVector,
350 CORBA::Long theNbOfSteps,
351 CORBA::Long theExtrFlags,
352 CORBA::Double theSewTolerance)
353 throw (SALOME::SALOME_Exception);
355 SMESH::SMESH_MeshEditor::Extrusion_Error
356 ExtrusionAlongPath(const SMESH::long_array & IDsOfElements,
357 SMESH::SMESH_Mesh_ptr PathMesh,
358 GEOM::GEOM_Object_ptr PathShape,
359 CORBA::Long NodeStart,
360 CORBA::Boolean HasAngles,
361 const SMESH::double_array & Angles,
362 CORBA::Boolean HasRefPoint,
363 const SMESH::PointStruct & RefPoint)
364 throw (SALOME::SALOME_Exception);
366 SMESH::SMESH_MeshEditor::Extrusion_Error
367 ExtrusionAlongPathObject(SMESH::SMESH_IDSource_ptr theObject,
368 SMESH::SMESH_Mesh_ptr PathMesh,
369 GEOM::GEOM_Object_ptr PathShape,
370 CORBA::Long NodeStart,
371 CORBA::Boolean HasAngles,
372 const SMESH::double_array & Angles,
373 CORBA::Boolean HasRefPoint,
374 const SMESH::PointStruct & RefPoint)
375 throw (SALOME::SALOME_Exception);
376 SMESH::SMESH_MeshEditor::Extrusion_Error
377 ExtrusionAlongPathObject1D(SMESH::SMESH_IDSource_ptr theObject,
378 SMESH::SMESH_Mesh_ptr PathMesh,
379 GEOM::GEOM_Object_ptr PathShape,
380 CORBA::Long NodeStart,
381 CORBA::Boolean HasAngles,
382 const SMESH::double_array & Angles,
383 CORBA::Boolean HasRefPoint,
384 const SMESH::PointStruct & RefPoint)
385 throw (SALOME::SALOME_Exception);
386 SMESH::SMESH_MeshEditor::Extrusion_Error
387 ExtrusionAlongPathObject2D(SMESH::SMESH_IDSource_ptr theObject,
388 SMESH::SMESH_Mesh_ptr PathMesh,
389 GEOM::GEOM_Object_ptr PathShape,
390 CORBA::Long NodeStart,
391 CORBA::Boolean HasAngles,
392 const SMESH::double_array & Angles,
393 CORBA::Boolean HasRefPoint,
394 const SMESH::PointStruct & RefPoint)
395 throw (SALOME::SALOME_Exception);
397 SMESH::double_array* LinearAnglesVariation(SMESH::SMESH_Mesh_ptr PathMesh,
398 GEOM::GEOM_Object_ptr PathShape,
399 const SMESH::double_array & Angles);
401 void Mirror(const SMESH::long_array & IDsOfElements,
402 const SMESH::AxisStruct & Axis,
403 SMESH::SMESH_MeshEditor::MirrorType MirrorType,
405 throw (SALOME::SALOME_Exception);
406 void MirrorObject(SMESH::SMESH_IDSource_ptr theObject,
407 const SMESH::AxisStruct & Axis,
408 SMESH::SMESH_MeshEditor::MirrorType MirrorType,
410 throw (SALOME::SALOME_Exception);
411 void Translate(const SMESH::long_array & IDsOfElements,
412 const SMESH::DirStruct & Vector,
414 throw (SALOME::SALOME_Exception);
415 void TranslateObject(SMESH::SMESH_IDSource_ptr theObject,
416 const SMESH::DirStruct & Vector,
418 throw (SALOME::SALOME_Exception);
419 void Rotate(const SMESH::long_array & IDsOfElements,
420 const SMESH::AxisStruct & Axis,
423 throw (SALOME::SALOME_Exception);
424 void RotateObject(SMESH::SMESH_IDSource_ptr theObject,
425 const SMESH::AxisStruct & Axis,
428 throw (SALOME::SALOME_Exception);
430 SMESH::ListOfGroups* RotationSweepMakeGroups(const SMESH::long_array& IDsOfElements,
431 const SMESH::AxisStruct& Axix,
432 CORBA::Double AngleInRadians,
433 CORBA::Long NbOfSteps,
434 CORBA::Double Tolerance)
435 throw (SALOME::SALOME_Exception);
436 SMESH::ListOfGroups* RotationSweepObjectMakeGroups(SMESH::SMESH_IDSource_ptr Object,
437 const SMESH::AxisStruct& Axix,
438 CORBA::Double AngleInRadians,
439 CORBA::Long NbOfSteps,
440 CORBA::Double Tolerance)
441 throw (SALOME::SALOME_Exception);
442 SMESH::ListOfGroups* RotationSweepObject1DMakeGroups(SMESH::SMESH_IDSource_ptr Object,
443 const SMESH::AxisStruct& Axix,
444 CORBA::Double AngleInRadians,
445 CORBA::Long NbOfSteps,
446 CORBA::Double Tolerance)
447 throw (SALOME::SALOME_Exception);
448 SMESH::ListOfGroups* RotationSweepObject2DMakeGroups(SMESH::SMESH_IDSource_ptr Object,
449 const SMESH::AxisStruct& Axix,
450 CORBA::Double AngleInRadians,
451 CORBA::Long NbOfSteps,
452 CORBA::Double Tolerance)
453 throw (SALOME::SALOME_Exception);
454 SMESH::ListOfGroups* ExtrusionSweepMakeGroups(const SMESH::long_array& IDsOfElements,
455 const SMESH::DirStruct& StepVector,
456 CORBA::Long NbOfSteps)
457 throw (SALOME::SALOME_Exception);
458 SMESH::ListOfGroups* ExtrusionSweepMakeGroups0D(const SMESH::long_array& IDsOfElements,
459 const SMESH::DirStruct& StepVector,
460 CORBA::Long NbOfSteps)
461 throw (SALOME::SALOME_Exception);
463 SMESH::ListOfGroups* AdvancedExtrusionMakeGroups(const SMESH::long_array& IDsOfElements,
464 const SMESH::DirStruct& StepVector,
465 CORBA::Long NbOfSteps,
466 CORBA::Long ExtrFlags,
467 CORBA::Double SewTolerance)
468 throw (SALOME::SALOME_Exception);
469 SMESH::ListOfGroups* ExtrusionSweepObjectMakeGroups(SMESH::SMESH_IDSource_ptr Object,
470 const SMESH::DirStruct& StepVector,
471 CORBA::Long NbOfSteps)
472 throw (SALOME::SALOME_Exception);
473 SMESH::ListOfGroups* ExtrusionSweepObject0DMakeGroups(SMESH::SMESH_IDSource_ptr Object,
474 const SMESH::DirStruct& StepVector,
475 CORBA::Long NbOfSteps)
476 throw (SALOME::SALOME_Exception);
477 SMESH::ListOfGroups* ExtrusionSweepObject1DMakeGroups(SMESH::SMESH_IDSource_ptr Object,
478 const SMESH::DirStruct& StepVector,
479 CORBA::Long NbOfSteps)
480 throw (SALOME::SALOME_Exception);
481 SMESH::ListOfGroups* ExtrusionSweepObject2DMakeGroups(SMESH::SMESH_IDSource_ptr Object,
482 const SMESH::DirStruct& StepVector,
483 CORBA::Long NbOfSteps)
484 throw (SALOME::SALOME_Exception);
485 SMESH::ListOfGroups* ExtrusionAlongPathMakeGroups(const SMESH::long_array& IDsOfElements,
486 SMESH::SMESH_Mesh_ptr PathMesh,
487 GEOM::GEOM_Object_ptr PathShape,
488 CORBA::Long NodeStart,
489 CORBA::Boolean HasAngles,
490 const SMESH::double_array& Angles,
491 CORBA::Boolean HasRefPoint,
492 const SMESH::PointStruct& RefPoint,
493 SMESH::SMESH_MeshEditor::Extrusion_Error& Error)
494 throw (SALOME::SALOME_Exception);
495 SMESH::ListOfGroups* ExtrusionAlongPathObjectMakeGroups(SMESH::SMESH_IDSource_ptr Object,
496 SMESH::SMESH_Mesh_ptr PathMesh,
497 GEOM::GEOM_Object_ptr PathShape,
498 CORBA::Long NodeStart,
499 CORBA::Boolean HasAngles,
500 const SMESH::double_array& Angles,
501 CORBA::Boolean HasRefPoint,
502 const SMESH::PointStruct& RefPoint,
503 SMESH::SMESH_MeshEditor::Extrusion_Error& Error)
504 throw (SALOME::SALOME_Exception);
505 SMESH::ListOfGroups* ExtrusionAlongPathObject1DMakeGroups(SMESH::SMESH_IDSource_ptr Object,
506 SMESH::SMESH_Mesh_ptr PathMesh,
507 GEOM::GEOM_Object_ptr PathShape,
508 CORBA::Long NodeStart,
509 CORBA::Boolean HasAngles,
510 const SMESH::double_array& Angles,
511 CORBA::Boolean HasRefPoint,
512 const SMESH::PointStruct& RefPoint,
513 SMESH::SMESH_MeshEditor::Extrusion_Error& Error)
514 throw (SALOME::SALOME_Exception);
515 SMESH::ListOfGroups* ExtrusionAlongPathObject2DMakeGroups(SMESH::SMESH_IDSource_ptr Object,
516 SMESH::SMESH_Mesh_ptr PathMesh,
517 GEOM::GEOM_Object_ptr PathShape,
518 CORBA::Long NodeStart,
519 CORBA::Boolean HasAngles,
520 const SMESH::double_array& Angles,
521 CORBA::Boolean HasRefPoint,
522 const SMESH::PointStruct& RefPoint,
523 SMESH::SMESH_MeshEditor::Extrusion_Error& Error)
524 throw (SALOME::SALOME_Exception);
527 SMESH::ListOfGroups* ExtrusionAlongPathObjX(SMESH::SMESH_IDSource_ptr Object,
528 SMESH::SMESH_IDSource_ptr Path,
529 CORBA::Long NodeStart,
530 CORBA::Boolean HasAngles,
531 const SMESH::double_array& Angles,
532 CORBA::Boolean LinearVariation,
533 CORBA::Boolean HasRefPoint,
534 const SMESH::PointStruct& RefPoint,
535 CORBA::Boolean MakeGroups,
536 SMESH::ElementType ElemType,
537 SMESH::SMESH_MeshEditor::Extrusion_Error& Error)
538 throw (SALOME::SALOME_Exception);
539 SMESH::ListOfGroups* ExtrusionAlongPathX(const SMESH::long_array& IDsOfElements,
540 SMESH::SMESH_IDSource_ptr Path,
541 CORBA::Long NodeStart,
542 CORBA::Boolean HasAngles,
543 const SMESH::double_array& Angles,
544 CORBA::Boolean LinearVariation,
545 CORBA::Boolean HasRefPoint,
546 const SMESH::PointStruct& RefPoint,
547 CORBA::Boolean MakeGroups,
548 SMESH::ElementType ElemType,
549 SMESH::SMESH_MeshEditor::Extrusion_Error& Error)
550 throw (SALOME::SALOME_Exception);
552 SMESH::ListOfGroups* MirrorMakeGroups(const SMESH::long_array& IDsOfElements,
553 const SMESH::AxisStruct& Mirror,
554 SMESH::SMESH_MeshEditor::MirrorType MirrorType)
555 throw (SALOME::SALOME_Exception);
556 SMESH::ListOfGroups* MirrorObjectMakeGroups(SMESH::SMESH_IDSource_ptr Object,
557 const SMESH::AxisStruct& Mirror,
558 SMESH::SMESH_MeshEditor::MirrorType MirrorType)
559 throw (SALOME::SALOME_Exception);
560 SMESH::ListOfGroups* TranslateMakeGroups(const SMESH::long_array& IDsOfElements,
561 const SMESH::DirStruct& Vector)
562 throw (SALOME::SALOME_Exception);
563 SMESH::ListOfGroups* TranslateObjectMakeGroups(SMESH::SMESH_IDSource_ptr Object,
564 const SMESH::DirStruct& Vector)
565 throw (SALOME::SALOME_Exception);
566 SMESH::ListOfGroups* RotateMakeGroups(const SMESH::long_array& IDsOfElements,
567 const SMESH::AxisStruct& Axis,
568 CORBA::Double AngleInRadians)
569 throw (SALOME::SALOME_Exception);
570 SMESH::ListOfGroups* RotateObjectMakeGroups(SMESH::SMESH_IDSource_ptr Object,
571 const SMESH::AxisStruct& Axis,
572 CORBA::Double AngleInRadians)
573 throw (SALOME::SALOME_Exception);
575 SMESH::SMESH_Mesh_ptr MirrorMakeMesh(const SMESH::long_array& IDsOfElements,
576 const SMESH::AxisStruct& Mirror,
577 SMESH::SMESH_MeshEditor::MirrorType MirrorType,
578 CORBA::Boolean CopyGroups,
579 const char* MeshName)
580 throw (SALOME::SALOME_Exception);
581 SMESH::SMESH_Mesh_ptr MirrorObjectMakeMesh(SMESH::SMESH_IDSource_ptr Object,
582 const SMESH::AxisStruct& Mirror,
583 SMESH::SMESH_MeshEditor::MirrorType MirrorType,
584 CORBA::Boolean CopyGroups,
585 const char* MeshName)
586 throw (SALOME::SALOME_Exception);
587 SMESH::SMESH_Mesh_ptr TranslateMakeMesh(const SMESH::long_array& IDsOfElements,
588 const SMESH::DirStruct& Vector,
589 CORBA::Boolean CopyGroups,
590 const char* MeshName)
591 throw (SALOME::SALOME_Exception);
592 SMESH::SMESH_Mesh_ptr TranslateObjectMakeMesh(SMESH::SMESH_IDSource_ptr Object,
593 const SMESH::DirStruct& Vector,
594 CORBA::Boolean CopyGroups,
595 const char* MeshName)
596 throw (SALOME::SALOME_Exception);
597 SMESH::SMESH_Mesh_ptr RotateMakeMesh(const SMESH::long_array& IDsOfElements,
598 const SMESH::AxisStruct& Axis,
599 CORBA::Double AngleInRadians,
600 CORBA::Boolean CopyGroups,
601 const char* MeshName)
602 throw (SALOME::SALOME_Exception);
603 SMESH::SMESH_Mesh_ptr RotateObjectMakeMesh(SMESH::SMESH_IDSource_ptr Object,
604 const SMESH::AxisStruct& Axis,
605 CORBA::Double AngleInRadians,
606 CORBA::Boolean CopyGroups,
607 const char* MeshName)
608 throw (SALOME::SALOME_Exception);
610 void Scale(SMESH::SMESH_IDSource_ptr theObject,
611 const SMESH::PointStruct& thePoint,
612 const SMESH::double_array& theScaleFact,
613 CORBA::Boolean theCopy)
614 throw (SALOME::SALOME_Exception);
616 SMESH::ListOfGroups* ScaleMakeGroups(SMESH::SMESH_IDSource_ptr theObject,
617 const SMESH::PointStruct& thePoint,
618 const SMESH::double_array& theScaleFact)
619 throw (SALOME::SALOME_Exception);
621 SMESH::SMESH_Mesh_ptr ScaleMakeMesh(SMESH::SMESH_IDSource_ptr Object,
622 const SMESH::PointStruct& Point,
623 const SMESH::double_array& theScaleFact,
624 CORBA::Boolean CopyGroups,
625 const char* MeshName)
626 throw (SALOME::SALOME_Exception);
628 void FindCoincidentNodes (CORBA::Double Tolerance,
629 SMESH::array_of_long_array_out GroupsOfNodes)
630 throw (SALOME::SALOME_Exception);
631 void FindCoincidentNodesOnPart(SMESH::SMESH_IDSource_ptr Object,
632 CORBA::Double Tolerance,
633 SMESH::array_of_long_array_out GroupsOfNodes)
634 throw (SALOME::SALOME_Exception);
635 void FindCoincidentNodesOnPartBut(SMESH::SMESH_IDSource_ptr Object,
636 CORBA::Double Tolerance,
637 SMESH::array_of_long_array_out GroupsOfNodes,
638 const SMESH::ListOfIDSources& ExceptSubMeshOrGroups)
639 throw (SALOME::SALOME_Exception);
640 void MergeNodes (const SMESH::array_of_long_array& GroupsOfNodes)
641 throw (SALOME::SALOME_Exception);
642 void FindEqualElements(SMESH::SMESH_IDSource_ptr Object,
643 SMESH::array_of_long_array_out GroupsOfElementsID)
644 throw (SALOME::SALOME_Exception);
645 void MergeElements(const SMESH::array_of_long_array& GroupsOfElementsID)
646 throw (SALOME::SALOME_Exception);
647 void MergeEqualElements()
648 throw (SALOME::SALOME_Exception);
649 CORBA::Long MoveClosestNodeToPoint(CORBA::Double x,
653 throw (SALOME::SALOME_Exception);
655 * \brief Return ID of node closest to a given point
657 CORBA::Long FindNodeClosestTo(CORBA::Double x,
660 throw (SALOME::SALOME_Exception);
662 * Return elements of given type where the given point is IN or ON.
663 * 'ALL' type means elements of any type excluding nodes
665 SMESH::long_array* FindElementsByPoint(CORBA::Double x,
668 SMESH::ElementType type)
669 throw (SALOME::SALOME_Exception);
671 * Searching among the given elements, return elements of given type
672 * where the given point is IN or ON.
673 * 'ALL' type means elements of any type excluding nodes
675 SMESH::long_array* FindAmongElementsByPoint(SMESH::SMESH_IDSource_ptr elements,
679 SMESH::ElementType type)
680 throw (SALOME::SALOME_Exception);
683 * Return point state in a closed 2D mesh in terms of TopAbs_State enumeration.
684 * TopAbs_UNKNOWN state means that either mesh is wrong or the analysis fails.
686 CORBA::Short GetPointState(CORBA::Double x, CORBA::Double y, CORBA::Double z)
687 throw (SALOME::SALOME_Exception);
689 SMESH::SMESH_MeshEditor::Sew_Error
690 SewFreeBorders(CORBA::Long FirstNodeID1,
691 CORBA::Long SecondNodeID1,
692 CORBA::Long LastNodeID1,
693 CORBA::Long FirstNodeID2,
694 CORBA::Long SecondNodeID2,
695 CORBA::Long LastNodeID2,
696 CORBA::Boolean CreatePolygons,
697 CORBA::Boolean CreatePolyedrs)
698 throw (SALOME::SALOME_Exception);
699 SMESH::SMESH_MeshEditor::Sew_Error
700 SewConformFreeBorders(CORBA::Long FirstNodeID1,
701 CORBA::Long SecondNodeID1,
702 CORBA::Long LastNodeID1,
703 CORBA::Long FirstNodeID2,
704 CORBA::Long SecondNodeID2)
705 throw (SALOME::SALOME_Exception);
706 SMESH::SMESH_MeshEditor::Sew_Error
707 SewBorderToSide(CORBA::Long FirstNodeIDOnFreeBorder,
708 CORBA::Long SecondNodeIDOnFreeBorder,
709 CORBA::Long LastNodeIDOnFreeBorder,
710 CORBA::Long FirstNodeIDOnSide,
711 CORBA::Long LastNodeIDOnSide,
712 CORBA::Boolean CreatePolygons,
713 CORBA::Boolean CreatePolyedrs)
714 throw (SALOME::SALOME_Exception);
715 SMESH::SMESH_MeshEditor::Sew_Error
716 SewSideElements(const SMESH::long_array& IDsOfSide1Elements,
717 const SMESH::long_array& IDsOfSide2Elements,
718 CORBA::Long NodeID1OfSide1ToMerge,
719 CORBA::Long NodeID1OfSide2ToMerge,
720 CORBA::Long NodeID2OfSide1ToMerge,
721 CORBA::Long NodeID2OfSide2ToMerge)
722 throw (SALOME::SALOME_Exception);
725 * Set new nodes for given element.
726 * If number of nodes is not corresponded to type of
727 * element - returns false
729 CORBA::Boolean ChangeElemNodes(CORBA::Long ide, const SMESH::long_array& newIDs)
730 throw (SALOME::SALOME_Exception);
732 SMESH::SMESH_Group_ptr DoubleElements(SMESH::SMESH_IDSource_ptr theElements,
733 const char* theGroupName)
734 throw (SALOME::SALOME_Exception);
736 CORBA::Boolean DoubleNodes( const SMESH::long_array& theNodes,
737 const SMESH::long_array& theModifiedElems )
738 throw (SALOME::SALOME_Exception);
740 CORBA::Boolean DoubleNode( CORBA::Long theNodeId,
741 const SMESH::long_array& theModifiedElems )
742 throw (SALOME::SALOME_Exception);
744 CORBA::Boolean DoubleNodeGroup( SMESH::SMESH_GroupBase_ptr theNodes,
745 SMESH::SMESH_GroupBase_ptr theModifiedElems )
746 throw (SALOME::SALOME_Exception);
749 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
750 * Works as DoubleNodeGroup(), but returns a new group with newly created nodes.
751 * \param theNodes - group of nodes to be doubled.
752 * \param theModifiedElems - group of elements to be updated.
753 * \return a new group with newly created nodes
754 * \sa DoubleNodeGroup()
756 SMESH::SMESH_Group_ptr DoubleNodeGroupNew( SMESH::SMESH_GroupBase_ptr theNodes,
757 SMESH::SMESH_GroupBase_ptr theModifiedElems )
758 throw (SALOME::SALOME_Exception);
760 CORBA::Boolean DoubleNodeGroups( const SMESH::ListOfGroups& theNodes,
761 const SMESH::ListOfGroups& theModifiedElems )
762 throw (SALOME::SALOME_Exception);
764 SMESH::SMESH_Group_ptr DoubleNodeGroupsNew( const SMESH::ListOfGroups& theNodes,
765 const SMESH::ListOfGroups& theModifiedElems )
766 throw (SALOME::SALOME_Exception);
769 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
770 * \param theElems - the list of elements (edges or faces) to be replicated
771 * The nodes for duplication could be found from these elements
772 * \param theNodesNot - list of nodes to NOT replicate
773 * \param theAffectedElems - the list of elements (cells and edges) to which the
774 * replicated nodes should be associated to.
775 * \return TRUE if operation has been completed successfully, FALSE otherwise
776 * \sa DoubleNodeGroup(), DoubleNodeGroups()
778 CORBA::Boolean DoubleNodeElem( const SMESH::long_array& theElems,
779 const SMESH::long_array& theNodesNot,
780 const SMESH::long_array& theAffectedElems )
781 throw (SALOME::SALOME_Exception);
784 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
785 * \param theElems - the list of elements (edges or faces) to be replicated
786 * The nodes for duplication could be found from these elements
787 * \param theNodesNot - list of nodes to NOT replicate
788 * \param theShape - shape to detect affected elements (element which geometric center
789 * located on or inside shape).
790 * The replicated nodes should be associated to affected elements.
791 * \return TRUE if operation has been completed successfully, FALSE otherwise
792 * \sa DoubleNodeGroupInRegion(), DoubleNodeGroupsInRegion()
794 CORBA::Boolean DoubleNodeElemInRegion( const SMESH::long_array& theElems,
795 const SMESH::long_array& theNodesNot,
796 GEOM::GEOM_Object_ptr theShape )
797 throw (SALOME::SALOME_Exception);
800 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
801 * \param theElems - group of of elements (edges or faces) to be replicated
802 * \param theNodesNot - group of nodes not to replicated
803 * \param theAffectedElems - group of elements to which the replicated nodes
804 * should be associated to.
805 * \return TRUE if operation has been completed successfully, FALSE otherwise
806 * \sa DoubleNodes(), DoubleNodeGroups(), DoubleNodeElemGroupNew()
808 CORBA::Boolean DoubleNodeElemGroup( SMESH::SMESH_GroupBase_ptr theElems,
809 SMESH::SMESH_GroupBase_ptr theNodesNot,
810 SMESH::SMESH_GroupBase_ptr theAffectedElems )
811 throw (SALOME::SALOME_Exception);
814 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
815 * Works as DoubleNodeElemGroup(), but returns a new group with newly created elements.
816 * \param theElems - group of of elements (edges or faces) to be replicated
817 * \param theNodesNot - group of nodes not to replicated
818 * \param theAffectedElems - group of elements to which the replicated nodes
819 * should be associated to.
820 * \return a new group with newly created elements
821 * \sa DoubleNodeElemGroup()
823 SMESH::SMESH_Group_ptr DoubleNodeElemGroupNew( SMESH::SMESH_GroupBase_ptr theElems,
824 SMESH::SMESH_GroupBase_ptr theNodesNot,
825 SMESH::SMESH_GroupBase_ptr theAffectedElems )
826 throw (SALOME::SALOME_Exception);
828 SMESH::ListOfGroups* DoubleNodeElemGroup2New(SMESH::SMESH_GroupBase_ptr theElems,
829 SMESH::SMESH_GroupBase_ptr theNodesNot,
830 SMESH::SMESH_GroupBase_ptr theAffectedElems,
831 CORBA::Boolean theElemGroupNeeded,
832 CORBA::Boolean theNodeGroupNeeded)
833 throw (SALOME::SALOME_Exception);
836 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
837 * \param theElems - group of of elements (edges or faces) to be replicated
838 * \param theNodesNot - group of nodes not to replicated
839 * \param theShape - shape to detect affected elements (element which geometric center
840 * located on or inside shape).
841 * The replicated nodes should be associated to affected elements.
842 * \return TRUE if operation has been completed successfully, FALSE otherwise
843 * \sa DoubleNodesInRegion(), DoubleNodeGroupsInRegion()
845 CORBA::Boolean DoubleNodeElemGroupInRegion( SMESH::SMESH_GroupBase_ptr theElems,
846 SMESH::SMESH_GroupBase_ptr theNodesNot,
847 GEOM::GEOM_Object_ptr theShape )
848 throw (SALOME::SALOME_Exception);
851 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
852 * This method provided for convenience works as DoubleNodes() described above.
853 * \param theElems - list of groups of elements (edges or faces) to be replicated
854 * \param theNodesNot - list of groups of nodes not to replicated
855 * \param theAffectedElems - group of elements to which the replicated nodes
856 * should be associated to.
857 * \return TRUE if operation has been completed successfully, FALSE otherwise
858 * \sa DoubleNodeGroup(), DoubleNodes(), DoubleNodeElemGroupsNew()
860 CORBA::Boolean DoubleNodeElemGroups( const SMESH::ListOfGroups& theElems,
861 const SMESH::ListOfGroups& theNodesNot,
862 const SMESH::ListOfGroups& theAffectedElems )
863 throw (SALOME::SALOME_Exception);
866 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
867 * Works as DoubleNodeElemGroups(), but returns a new group with newly created elements.
868 * \param theElems - list of groups of elements (edges or faces) to be replicated
869 * \param theNodesNot - list of groups of nodes not to replicated
870 * \param theAffectedElems - group of elements to which the replicated nodes
871 * should be associated to.
872 * \return a new group with newly created elements
873 * \sa DoubleNodeElemGroups()
875 SMESH::SMESH_Group_ptr DoubleNodeElemGroupsNew( const SMESH::ListOfGroups& theElems,
876 const SMESH::ListOfGroups& theNodesNot,
877 const SMESH::ListOfGroups& theAffectedElems )
878 throw (SALOME::SALOME_Exception);
880 SMESH::ListOfGroups* DoubleNodeElemGroups2New(const SMESH::ListOfGroups& theElems,
881 const SMESH::ListOfGroups& theNodesNot,
882 const SMESH::ListOfGroups& theAffectedElems,
883 CORBA::Boolean theElemGroupNeeded,
884 CORBA::Boolean theNodeGroupNeeded)
885 throw (SALOME::SALOME_Exception);
888 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
889 * This method provided for convenience works as DoubleNodes() described above.
890 * \param theElems - list of groups of elements (edges or faces) to be replicated
891 * \param theNodesNot - list of groups of nodes not to replicated
892 * \param theShape - shape to detect affected elements (element which geometric center
893 * located on or inside shape).
894 * The replicated nodes should be associated to affected elements.
895 * \return TRUE if operation has been completed successfully, FALSE otherwise
896 * \sa DoubleNodeGroupInRegion(), DoubleNodesInRegion()
898 CORBA::Boolean DoubleNodeElemGroupsInRegion( const SMESH::ListOfGroups& theElems,
899 const SMESH::ListOfGroups& theNodesNot,
900 GEOM::GEOM_Object_ptr theShape )
901 throw (SALOME::SALOME_Exception);
904 * \brief Identify the elements that will be affected by node duplication (actual duplication is not performed.
905 * This method is the first step of DoubleNodeElemGroupsInRegion.
906 * \param theElems - list of groups of elements (edges or faces) to be replicated
907 * \param theNodesNot - list of groups of nodes not to replicated
908 * \param theShape - shape to detect affected elements (element which geometric center
909 * located on or inside shape).
910 * The replicated nodes should be associated to affected elements.
911 * \return groups of affected elements
912 * \sa DoubleNodeElemGroupsInRegion()
914 SMESH::ListOfGroups* AffectedElemGroupsInRegion( const SMESH::ListOfGroups& theElems,
915 const SMESH::ListOfGroups& theNodesNot,
916 GEOM::GEOM_Object_ptr theShape )
917 throw (SALOME::SALOME_Exception);
920 * \brief Double nodes on shared faces between groups of volumes and create flat elements on demand.
921 * The list of groups must describe a partition of the mesh volumes.
922 * The nodes of the internal faces at the boundaries of the groups are doubled.
923 * In option, the internal faces are replaced by flat elements.
924 * Triangles are transformed in prisms, and quadrangles in hexahedrons.
925 * @param theDomains - list of groups of volumes
926 * @param createJointElems - if TRUE, create the elements
927 * @return TRUE if operation has been completed successfully, FALSE otherwise
929 CORBA::Boolean DoubleNodesOnGroupBoundaries( const SMESH::ListOfGroups& theDomains,
930 CORBA::Boolean createJointElems )
931 throw (SALOME::SALOME_Exception);
933 * \brief Double nodes on some external faces and create flat elements.
934 * Flat elements are mainly used by some types of mechanic calculations.
936 * Each group of the list must be constituted of faces.
937 * Triangles are transformed in prisms, and quadrangles in hexahedrons.
938 * @param theGroupsOfFaces - list of groups of faces
939 * @return TRUE if operation has been completed successfully, FALSE otherwise
941 CORBA::Boolean CreateFlatElementsOnFacesGroups( const SMESH::ListOfGroups& theGroupsOfFaces )
942 throw (SALOME::SALOME_Exception);
945 * \brief identify all the elements around a geom shape, get the faces delimiting the hole
946 * Build groups of volume to remove, groups of faces to replace on the skin of the object,
947 * groups of faces to remove insidethe object, (idem edges).
948 * Build ordered list of nodes at the border of each group of faces to replace (to be used to build a geom subshape)
950 void CreateHoleSkin(CORBA::Double radius,
951 GEOM::GEOM_Object_ptr theShape,
952 const char* groupName,
953 const SMESH::double_array& theNodesCoords,
954 SMESH::array_of_long_array_out GroupsOfNodes)
955 throw (SALOME::SALOME_Exception);
958 * \brief Generated skin mesh (containing 2D cells) from 3D mesh
959 * The created 2D mesh elements based on nodes of free faces of boundary volumes
960 * \return TRUE if operation has been completed successfully, FALSE otherwise
962 CORBA::Boolean Make2DMeshFrom3D()
963 throw (SALOME::SALOME_Exception);
965 SMESH::SMESH_Mesh_ptr MakeBoundaryMesh(SMESH::SMESH_IDSource_ptr elements,
966 SMESH::Bnd_Dimension dimension,
967 const char* groupName,
968 const char* meshName,
969 CORBA::Boolean toCopyElements,
970 CORBA::Boolean toCopyMissingBondary,
971 SMESH::SMESH_Group_out group)
972 throw (SALOME::SALOME_Exception);
974 CORBA::Long MakeBoundaryElements(SMESH::Bnd_Dimension dimension,
975 const char* groupName,
976 const char* meshName,
977 CORBA::Boolean toCopyAll,
978 const SMESH::ListOfIDSources& groups,
979 SMESH::SMESH_Mesh_out mesh,
980 SMESH::SMESH_Group_out group)
981 throw (SALOME::SALOME_Exception);
983 private: //!< private methods
985 ::SMESH_MeshEditor& getEditor();
987 SMESHDS_Mesh * getMeshDS() { return myMesh->GetMeshDS(); }
989 MeshEditor_I::TPreviewMesh * getPreviewMesh( SMDSAbs_ElementType previewType = SMDSAbs_All );
991 void declareMeshModified( bool isReComputeSafe );
994 * \brief Clear myLastCreated* or myPreviewData
996 void initData(bool deleteSearchers=true);
999 * \brief Return groups by their IDs
1001 SMESH::ListOfGroups* getGroups(const std::list<int>* groupIDs)
1002 throw (SALOME::SALOME_Exception);
1004 SMESH::ListOfGroups* rotationSweep(const SMESH::long_array & IDsOfElements,
1005 const SMESH::AxisStruct & Axis,
1006 CORBA::Double AngleInRadians,
1007 CORBA::Long NbOfSteps,
1008 CORBA::Double Tolerance,
1009 const bool MakeGroups,
1010 const SMDSAbs_ElementType ElementType=SMDSAbs_All)
1011 throw (SALOME::SALOME_Exception);
1012 SMESH::ListOfGroups* extrusionSweep(const SMESH::long_array & IDsOfElements,
1013 const SMESH::DirStruct & StepVector,
1014 CORBA::Long NbOfSteps,
1016 const SMDSAbs_ElementType ElementType=SMDSAbs_All)
1017 throw (SALOME::SALOME_Exception);
1018 SMESH::ListOfGroups* advancedExtrusion(const SMESH::long_array & theIDsOfElements,
1019 const SMESH::DirStruct & theStepVector,
1020 CORBA::Long theNbOfSteps,
1021 CORBA::Long theExtrFlags,
1022 CORBA::Double theSewTolerance,
1023 const bool MakeGroups)
1024 throw (SALOME::SALOME_Exception);
1025 SMESH::ListOfGroups* extrusionAlongPath(const SMESH::long_array & IDsOfElements,
1026 SMESH::SMESH_Mesh_ptr PathMesh,
1027 GEOM::GEOM_Object_ptr PathShape,
1028 CORBA::Long NodeStart,
1029 CORBA::Boolean HasAngles,
1030 const SMESH::double_array & Angles,
1031 CORBA::Boolean HasRefPoint,
1032 const SMESH::PointStruct & RefPoint,
1033 const bool MakeGroups,
1034 SMESH::SMESH_MeshEditor::Extrusion_Error & Error,
1035 const SMDSAbs_ElementType ElementType=SMDSAbs_All)
1036 throw (SALOME::SALOME_Exception);
1037 SMESH::ListOfGroups* extrusionAlongPathX(const SMESH::long_array & IDsOfElements,
1038 SMESH::SMESH_IDSource_ptr Path,
1039 CORBA::Long NodeStart,
1040 CORBA::Boolean HasAngles,
1041 const SMESH::double_array& Angles,
1042 CORBA::Boolean LinearVariation,
1043 CORBA::Boolean HasRefPoint,
1044 const SMESH::PointStruct& RefPoint,
1046 const SMDSAbs_ElementType ElementType,
1047 SMESH::SMESH_MeshEditor::Extrusion_Error & theError)
1048 throw (SALOME::SALOME_Exception);
1049 SMESH::ListOfGroups* mirror(TIDSortedElemSet & IDsOfElements,
1050 const SMESH::AxisStruct & Axis,
1051 SMESH::SMESH_MeshEditor::MirrorType MirrorType,
1052 CORBA::Boolean Copy,
1054 ::SMESH_Mesh* TargetMesh=0)
1055 throw (SALOME::SALOME_Exception);
1056 SMESH::ListOfGroups* translate(TIDSortedElemSet & IDsOfElements,
1057 const SMESH::DirStruct & Vector,
1058 CORBA::Boolean Copy,
1060 ::SMESH_Mesh* TargetMesh=0)
1061 throw (SALOME::SALOME_Exception);
1062 SMESH::ListOfGroups* rotate(TIDSortedElemSet & IDsOfElements,
1063 const SMESH::AxisStruct & Axis,
1064 CORBA::Double Angle,
1065 CORBA::Boolean Copy,
1067 ::SMESH_Mesh* TargetMesh=0)
1068 throw (SALOME::SALOME_Exception);
1070 SMESH::ListOfGroups* scale(SMESH::SMESH_IDSource_ptr theObject,
1071 const SMESH::PointStruct& thePoint,
1072 const SMESH::double_array& theScaleFact,
1073 CORBA::Boolean theCopy,
1075 ::SMESH_Mesh* theTargetMesh=0)
1076 throw (SALOME::SALOME_Exception);
1078 void convertToQuadratic(CORBA::Boolean theForce3d,
1079 CORBA::Boolean theToBiQuad,
1080 SMESH::SMESH_IDSource_ptr theObject = SMESH::SMESH_IDSource::_nil())
1081 throw (SALOME::SALOME_Exception);
1083 SMESH::SMESH_Mesh_ptr makeMesh(const char* theMeshName);
1085 void dumpGroupsList(SMESH::TPythonDump & theDumpPython,
1086 const SMESH::ListOfGroups * theGroupList);
1088 string generateGroupName(const string& thePrefix);
1090 void prepareIdSource(SMESH::SMESH_IDSource_ptr theObject);
1092 private: //!< fields
1094 SMESH_Mesh_i* myMesh_i;
1095 SMESH_Mesh * myMesh;
1096 ::SMESH_MeshEditor myEditor;
1098 bool myIsPreviewMode;
1099 MeshEditor_I::TPreviewMesh * myPreviewMesh;
1100 ::SMESH_MeshEditor * myPreviewEditor;
1101 SMESH::MeshPreviewStruct_var myPreviewData;
1103 // temporary IDSources
1105 // std::list< _IDSource* > myAuxIDSources;
1106 // void deleteAuxIDSources();