X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=idl%2FSMESH_Pattern.idl;h=41740eb437d847800108bf6a6ae5993ab5a17926;hb=d078f9f262896bc72ff6c0c7dc218df91103db34;hp=fa1d7dd119bba1b3159e12e7eb15d19664af21d3;hpb=e465982eeb48dded773c5e18053a8da7fcf15222;p=modules%2Fsmesh.git diff --git a/idl/SMESH_Pattern.idl b/idl/SMESH_Pattern.idl index fa1d7dd11..41740eb43 100644 --- a/idl/SMESH_Pattern.idl +++ b/idl/SMESH_Pattern.idl @@ -1,33 +1,35 @@ -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// 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 +// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE // +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// 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, or (at your option) any later version. // +// 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.salome-platform.org/ or email : webmaster.salome@opencascade.com +// + // File : SMESH_Pattern.idl // Created : Mon Aug 2 10:48:36 2004 // Author : Edward AGAPOV (eap) // $Header: - +// #ifndef _SMESH_PATTERN_IDL_ #define _SMESH_PATTERN_IDL_ #include "SMESH_Mesh.idl" +#include "SMESH_smIdType.idl" module SMESH { @@ -84,10 +86,10 @@ module SMESH * the loaded pattern to mesh faces. The first key-point * will be mapped into -th node of each face */ - point_array ApplyToMeshFaces(in SMESH_Mesh theMesh, - in long_array theFacesIDs, - in long theNodeIndexOnKeyPoint1, - in boolean theReverse); + point_array ApplyToMeshFaces(in SMESH_Mesh theMesh, + in smIdType_array theFacesIDs, + in short theNodeIndexOnKeyPoint1, + in boolean theReverse); /*! * Compute nodes coordinates applying @@ -96,16 +98,22 @@ module SMESH * The (0,0,1) key-point will be mapped into -th * node of each volume. */ - point_array ApplyToHexahedrons(in SMESH_Mesh theMesh, - in long_array theVolumesIDs, - in long theNode000Index, - in long theNode001Index); + point_array ApplyToHexahedrons(in SMESH_Mesh theMesh, + in smIdType_array theVolumesIDs, + in short theNode000Index, + in short theNode001Index); /*! * Create nodes and elements in using nodes - * coordinates computed by either of Apply...() methods + * 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. */ - boolean MakeMesh(in SMESH_Mesh theMesh); + boolean MakeMesh (in SMESH_Mesh theMesh, + in boolean CreatePolygons, + in boolean CreatePolyedrs); /*! * Return the loaded pattern in the string form to be saved in file @@ -134,12 +142,13 @@ module SMESH // Load(face) ERR_LOADF_NARROW_FACE, // too narrow face ERR_LOADF_CLOSED_FACE, // closed face + ERR_LOADF_CANT_PROJECT, // impossible to project nodes // Load(volume) ERR_LOADV_BAD_SHAPE, // volume is not a brick of 6 faces - ERR_LOADV_COMPUTE_PARAMS, // cant compute point parameters + ERR_LOADV_COMPUTE_PARAMS, // can't compute point parameters // Apply(shape) ERR_APPL_NOT_LOADED, // pattern was not loaded - ERR_APPL_BAD_DIMENTION, // wrong shape dimention + ERR_APPL_BAD_DIMENTION, // wrong shape dimension ERR_APPL_BAD_NB_VERTICES, // keypoints - vertices mismatch // Apply(face) ERR_APPLF_BAD_TOPOLOGY, // bad pattern topology @@ -174,7 +183,7 @@ module SMESH /*! * Return nodal connectivity of the elements of the pattern - * or of all elements to be crated + * or of all elements to be created */ array_of_long_array GetElementPoints(in boolean all); };