2003-07-10 19:35:03 +06:00
|
|
|
// SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
|
|
|
|
//
|
|
|
|
// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
2005-08-11 14:06:39 +06:00
|
|
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
|
|
|
//
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2.1 of the License.
|
|
|
|
//
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
//
|
|
|
|
// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
|
2003-07-10 19:35:03 +06:00
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// File : SMESH_MeshEditor_i.hxx
|
|
|
|
// Author : Nicolas REJNERI
|
|
|
|
// Module : SMESH
|
2003-05-19 19:54:48 +06:00
|
|
|
// $Header$
|
|
|
|
|
|
|
|
#ifndef _SMESH_MESHEDITOR_I_HXX_
|
|
|
|
#define _SMESH_MESHEDIOTR_I_HXX_
|
|
|
|
|
|
|
|
#include <SALOMEconfig.h>
|
|
|
|
#include CORBA_SERVER_HEADER(SMESH_Mesh)
|
|
|
|
|
2004-12-01 15:48:31 +05:00
|
|
|
#include "SMESH_Mesh.hxx"
|
2003-05-19 19:54:48 +06:00
|
|
|
|
2003-09-04 16:41:22 +06:00
|
|
|
class SMESH_MeshEditor_i: public POA_SMESH::SMESH_MeshEditor
|
2003-05-19 19:54:48 +06:00
|
|
|
{
|
2004-12-01 15:48:31 +05:00
|
|
|
public:
|
|
|
|
SMESH_MeshEditor_i(SMESH_Mesh * theMesh);
|
2003-05-19 19:54:48 +06:00
|
|
|
|
2004-12-01 15:48:31 +05:00
|
|
|
virtual ~ SMESH_MeshEditor_i()
|
|
|
|
{
|
|
|
|
};
|
2003-05-19 19:54:48 +06:00
|
|
|
|
2004-12-01 15:48:31 +05:00
|
|
|
// --- CORBA
|
|
|
|
CORBA::Boolean RemoveElements(const SMESH::long_array & IDsOfElements);
|
|
|
|
CORBA::Boolean RemoveNodes(const SMESH::long_array & IDsOfNodes);
|
2003-05-19 19:54:48 +06:00
|
|
|
|
2004-12-01 15:48:31 +05:00
|
|
|
CORBA::Boolean AddNode(CORBA::Double x, CORBA::Double y, CORBA::Double z);
|
|
|
|
CORBA::Boolean AddEdge(const SMESH::long_array & IDsOfNodes);
|
|
|
|
CORBA::Boolean AddFace(const SMESH::long_array & IDsOfNodes);
|
|
|
|
CORBA::Boolean AddVolume(const SMESH::long_array & IDsOfNodes);
|
2005-06-07 19:22:20 +06:00
|
|
|
|
|
|
|
CORBA::Boolean AddPolyhedralVolume(const SMESH::long_array & IDsOfNodes,
|
|
|
|
const SMESH::long_array & Quantities);
|
|
|
|
CORBA::Boolean AddPolyhedralVolumeByFaces(const SMESH::long_array & IdsOfFaces);
|
|
|
|
|
2004-12-01 15:48:31 +05:00
|
|
|
CORBA::Boolean MoveNode(CORBA::Long NodeID,
|
|
|
|
CORBA::Double x, CORBA::Double y, CORBA::Double z);
|
2003-05-19 19:54:48 +06:00
|
|
|
|
2004-12-01 15:48:31 +05:00
|
|
|
CORBA::Boolean InverseDiag(CORBA::Long NodeID1, CORBA::Long NodeID2);
|
|
|
|
CORBA::Boolean DeleteDiag(CORBA::Long NodeID1, CORBA::Long NodeID2);
|
|
|
|
CORBA::Boolean Reorient(const SMESH::long_array & IDsOfElements);
|
|
|
|
CORBA::Boolean ReorientObject(SMESH::SMESH_IDSource_ptr theObject);
|
|
|
|
|
2005-08-11 14:06:39 +06:00
|
|
|
// Split/Join faces
|
|
|
|
CORBA::Boolean TriToQuad (const SMESH::long_array & IDsOfElements,
|
|
|
|
SMESH::NumericalFunctor_ptr Criterion,
|
|
|
|
CORBA::Double MaxAngle);
|
|
|
|
CORBA::Boolean TriToQuadObject (SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
SMESH::NumericalFunctor_ptr Criterion,
|
|
|
|
CORBA::Double MaxAngle);
|
|
|
|
CORBA::Boolean QuadToTri (const SMESH::long_array & IDsOfElements,
|
|
|
|
SMESH::NumericalFunctor_ptr Criterion);
|
|
|
|
CORBA::Boolean QuadToTriObject (SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
SMESH::NumericalFunctor_ptr Criterion);
|
|
|
|
CORBA::Boolean SplitQuad (const SMESH::long_array & IDsOfElements,
|
|
|
|
CORBA::Boolean Diag13);
|
|
|
|
CORBA::Boolean SplitQuadObject (SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
CORBA::Boolean Diag13);
|
|
|
|
CORBA::Long BestSplit (CORBA::Long IDOfQuad,
|
|
|
|
SMESH::NumericalFunctor_ptr Criterion);
|
2004-12-01 15:48:31 +05:00
|
|
|
|
|
|
|
CORBA::Boolean Smooth(const SMESH::long_array & IDsOfElements,
|
|
|
|
const SMESH::long_array & IDsOfFixedNodes,
|
|
|
|
CORBA::Long MaxNbOfIterations,
|
|
|
|
CORBA::Double MaxAspectRatio,
|
|
|
|
SMESH::SMESH_MeshEditor::Smooth_Method Method);
|
|
|
|
CORBA::Boolean SmoothObject(SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
const SMESH::long_array & IDsOfFixedNodes,
|
|
|
|
CORBA::Long MaxNbOfIterations,
|
|
|
|
CORBA::Double MaxAspectRatio,
|
|
|
|
SMESH::SMESH_MeshEditor::Smooth_Method Method);
|
2005-06-07 19:22:20 +06:00
|
|
|
CORBA::Boolean SmoothParametric(const SMESH::long_array & IDsOfElements,
|
|
|
|
const SMESH::long_array & IDsOfFixedNodes,
|
|
|
|
CORBA::Long MaxNbOfIterations,
|
|
|
|
CORBA::Double MaxAspectRatio,
|
|
|
|
SMESH::SMESH_MeshEditor::Smooth_Method Method);
|
|
|
|
CORBA::Boolean SmoothParametricObject(SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
const SMESH::long_array & IDsOfFixedNodes,
|
|
|
|
CORBA::Long MaxNbOfIterations,
|
|
|
|
CORBA::Double MaxAspectRatio,
|
|
|
|
SMESH::SMESH_MeshEditor::Smooth_Method Method);
|
|
|
|
CORBA::Boolean smooth(const SMESH::long_array & IDsOfElements,
|
|
|
|
const SMESH::long_array & IDsOfFixedNodes,
|
|
|
|
CORBA::Long MaxNbOfIterations,
|
|
|
|
CORBA::Double MaxAspectRatio,
|
|
|
|
SMESH::SMESH_MeshEditor::Smooth_Method Method,
|
|
|
|
bool IsParametric);
|
|
|
|
CORBA::Boolean smoothObject(SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
const SMESH::long_array & IDsOfFixedNodes,
|
|
|
|
CORBA::Long MaxNbOfIterations,
|
|
|
|
CORBA::Double MaxAspectRatio,
|
|
|
|
SMESH::SMESH_MeshEditor::Smooth_Method Method,
|
|
|
|
bool IsParametric);
|
2004-12-01 15:48:31 +05:00
|
|
|
|
|
|
|
void RenumberNodes();
|
|
|
|
void RenumberElements();
|
|
|
|
|
|
|
|
void RotationSweep(const SMESH::long_array & IDsOfElements,
|
|
|
|
const SMESH::AxisStruct & Axis,
|
|
|
|
CORBA::Double AngleInRadians,
|
|
|
|
CORBA::Long NbOfSteps,
|
|
|
|
CORBA::Double Tolerance);
|
|
|
|
void RotationSweepObject(SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
const SMESH::AxisStruct & Axis,
|
|
|
|
CORBA::Double AngleInRadians,
|
|
|
|
CORBA::Long NbOfSteps,
|
|
|
|
CORBA::Double Tolerance);
|
|
|
|
|
|
|
|
void ExtrusionSweep(const SMESH::long_array & IDsOfElements,
|
|
|
|
const SMESH::DirStruct & StepVector,
|
|
|
|
CORBA::Long NbOfSteps);
|
|
|
|
void ExtrusionSweepObject(SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
const SMESH::DirStruct & StepVector,
|
|
|
|
CORBA::Long NbOfSteps);
|
2005-03-21 17:40:07 +05:00
|
|
|
void ExtrusionSweepObject1D(SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
const SMESH::DirStruct & StepVector,
|
|
|
|
CORBA::Long NbOfSteps);
|
|
|
|
void ExtrusionSweepObject2D(SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
const SMESH::DirStruct & StepVector,
|
|
|
|
CORBA::Long NbOfSteps);
|
2005-08-11 14:06:39 +06:00
|
|
|
|
2005-01-20 19:50:37 +05:00
|
|
|
SMESH::SMESH_MeshEditor::Extrusion_Error
|
|
|
|
ExtrusionAlongPath(const SMESH::long_array & IDsOfElements,
|
|
|
|
SMESH::SMESH_Mesh_ptr PathMesh,
|
|
|
|
GEOM::GEOM_Object_ptr PathShape,
|
|
|
|
CORBA::Long NodeStart,
|
|
|
|
CORBA::Boolean HasAngles,
|
|
|
|
const SMESH::double_array & Angles,
|
|
|
|
CORBA::Boolean HasRefPoint,
|
|
|
|
const SMESH::PointStruct & RefPoint);
|
2005-08-11 14:06:39 +06:00
|
|
|
|
2005-01-20 19:50:37 +05:00
|
|
|
SMESH::SMESH_MeshEditor::Extrusion_Error
|
|
|
|
ExtrusionAlongPathObject(SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
SMESH::SMESH_Mesh_ptr PathMesh,
|
|
|
|
GEOM::GEOM_Object_ptr PathShape,
|
|
|
|
CORBA::Long NodeStart,
|
|
|
|
CORBA::Boolean HasAngles,
|
|
|
|
const SMESH::double_array & Angles,
|
|
|
|
CORBA::Boolean HasRefPoint,
|
|
|
|
const SMESH::PointStruct & RefPoint);
|
2005-01-20 11:25:54 +05:00
|
|
|
|
2004-12-01 15:48:31 +05:00
|
|
|
void Mirror(const SMESH::long_array & IDsOfElements,
|
|
|
|
const SMESH::AxisStruct & Axis,
|
|
|
|
SMESH::SMESH_MeshEditor::MirrorType MirrorType,
|
|
|
|
CORBA::Boolean Copy);
|
|
|
|
void MirrorObject(SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
const SMESH::AxisStruct & Axis,
|
|
|
|
SMESH::SMESH_MeshEditor::MirrorType MirrorType,
|
|
|
|
CORBA::Boolean Copy);
|
|
|
|
void Translate(const SMESH::long_array & IDsOfElements,
|
|
|
|
const SMESH::DirStruct & Vector,
|
|
|
|
CORBA::Boolean Copy);
|
|
|
|
void TranslateObject(SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
const SMESH::DirStruct & Vector,
|
|
|
|
CORBA::Boolean Copy);
|
|
|
|
void Rotate(const SMESH::long_array & IDsOfElements,
|
|
|
|
const SMESH::AxisStruct & Axis,
|
|
|
|
CORBA::Double Angle,
|
|
|
|
CORBA::Boolean Copy);
|
|
|
|
void RotateObject(SMESH::SMESH_IDSource_ptr theObject,
|
|
|
|
const SMESH::AxisStruct & Axis,
|
|
|
|
CORBA::Double Angle,
|
|
|
|
CORBA::Boolean Copy);
|
|
|
|
|
|
|
|
void FindCoincidentNodes (CORBA::Double Tolerance,
|
|
|
|
SMESH::array_of_long_array_out GroupsOfNodes);
|
|
|
|
void MergeNodes (const SMESH::array_of_long_array& GroupsOfNodes);
|
|
|
|
void MergeEqualElements();
|
|
|
|
|
|
|
|
SMESH::SMESH_MeshEditor::Sew_Error
|
|
|
|
SewFreeBorders(CORBA::Long FirstNodeID1,
|
|
|
|
CORBA::Long SecondNodeID1,
|
|
|
|
CORBA::Long LastNodeID1,
|
|
|
|
CORBA::Long FirstNodeID2,
|
|
|
|
CORBA::Long SecondNodeID2,
|
2005-06-07 19:22:20 +06:00
|
|
|
CORBA::Long LastNodeID2,
|
|
|
|
CORBA::Boolean CreatePolygons,
|
|
|
|
CORBA::Boolean CreatePolyedrs);
|
2004-12-01 15:48:31 +05:00
|
|
|
SMESH::SMESH_MeshEditor::Sew_Error
|
|
|
|
SewConformFreeBorders(CORBA::Long FirstNodeID1,
|
|
|
|
CORBA::Long SecondNodeID1,
|
|
|
|
CORBA::Long LastNodeID1,
|
|
|
|
CORBA::Long FirstNodeID2,
|
|
|
|
CORBA::Long SecondNodeID2);
|
|
|
|
SMESH::SMESH_MeshEditor::Sew_Error
|
|
|
|
SewBorderToSide(CORBA::Long FirstNodeIDOnFreeBorder,
|
|
|
|
CORBA::Long SecondNodeIDOnFreeBorder,
|
|
|
|
CORBA::Long LastNodeIDOnFreeBorder,
|
|
|
|
CORBA::Long FirstNodeIDOnSide,
|
2005-06-07 19:22:20 +06:00
|
|
|
CORBA::Long LastNodeIDOnSide,
|
|
|
|
CORBA::Boolean CreatePolygons,
|
|
|
|
CORBA::Boolean CreatePolyedrs);
|
2004-12-01 15:48:31 +05:00
|
|
|
SMESH::SMESH_MeshEditor::Sew_Error
|
|
|
|
SewSideElements(const SMESH::long_array& IDsOfSide1Elements,
|
|
|
|
const SMESH::long_array& IDsOfSide2Elements,
|
|
|
|
CORBA::Long NodeID1OfSide1ToMerge,
|
|
|
|
CORBA::Long NodeID1OfSide2ToMerge,
|
|
|
|
CORBA::Long NodeID2OfSide1ToMerge,
|
|
|
|
CORBA::Long NodeID2OfSide2ToMerge);
|
|
|
|
|
|
|
|
private:
|
|
|
|
SMESHDS_Mesh * GetMeshDS() { return _myMesh->GetMeshDS(); }
|
|
|
|
SMESH_Mesh *_myMesh;
|
2003-05-19 19:54:48 +06:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|