mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 02:00:35 +05:00
88 lines
2.7 KiB
Plaintext
88 lines
2.7 KiB
Plaintext
-- GEOM PARTITION : partition algorithm
|
|
--
|
|
-- 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
|
|
--
|
|
--
|
|
--
|
|
-- File : Partition_Loop.cdl
|
|
-- Author : Benedicte MARTIN
|
|
-- Module : GEOM
|
|
|
|
class Loop from Partition
|
|
|
|
---Purpose: Builds the loops from a set of edges on a face.
|
|
|
|
uses
|
|
|
|
Face from TopoDS,
|
|
Edge from TopoDS,
|
|
ListOfShape from TopTools,
|
|
DataMapOfShapeListOfShape from TopTools
|
|
|
|
is
|
|
|
|
Create;
|
|
|
|
Init (me : in out; F : Face from TopoDS)
|
|
---Purpose: Init with <F> the set of edges must have
|
|
-- pcurves on <F>.
|
|
is static;
|
|
|
|
AddEdge (me : in out; E : in out Edge from TopoDS;
|
|
LV : ListOfShape from TopTools)
|
|
---Purpose: Add E with <LV>. <E> will be copied and trim
|
|
-- by vertices in <LV>.
|
|
is static;
|
|
|
|
AddConstEdge (me : in out; E : Edge from TopoDS)
|
|
---Purpose: Add <E> as const edge, E can be in the result.
|
|
is static;
|
|
|
|
Perform(me : in out)
|
|
---Purpose: Make loops.
|
|
is static;
|
|
|
|
NewWires (me)
|
|
---Purpose: Returns the list of wires performed.
|
|
-- can be an empty list.
|
|
---C++: return const &
|
|
returns ListOfShape from TopTools;
|
|
|
|
WiresToFaces (me : in out)
|
|
---Purpose: Build faces from the wires result.
|
|
is static;
|
|
|
|
NewFaces (me)
|
|
---Purpose: Returns the list of faces.
|
|
---Warning: The method <WiresToFaces> as to be called before.
|
|
-- can be an empty list.
|
|
---C++: return const &
|
|
returns ListOfShape from TopTools;
|
|
|
|
|
|
fields
|
|
|
|
myFace : Face from TopoDS;
|
|
myConstEdges : ListOfShape from TopTools;
|
|
myNewWires : ListOfShape from TopTools;
|
|
myNewFaces : ListOfShape from TopTools;
|
|
|
|
end Loop;
|