mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
107 lines
3.6 KiB
Plaintext
Executable File
107 lines
3.6 KiB
Plaintext
Executable File
-- Created on: 1995-09-01
|
|
-- Created by: Yves FRICAUD
|
|
-- Copyright (c) 1995-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
--
|
|
-- The content of this file is subject to the Open CASCADE Technology Public
|
|
-- License Version 6.5 (the "License"). You may not use the content of this file
|
|
-- except in compliance with the License. Please obtain a copy of the License
|
|
-- at http://www.opencascade.org and read it completely before using this file.
|
|
--
|
|
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
--
|
|
-- The Original Code and all software distributed under the License is
|
|
-- distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
-- Initial Developer hereby disclaims all such warranties, including without
|
|
-- limitation, any warranties of merchantability, fitness for a particular
|
|
-- purpose or non-infringement. Please see the License for the specific terms
|
|
-- and conditions governing the rights and limitations under the License.
|
|
|
|
|
|
|
|
class FaceRestrictor from BRepAlgo
|
|
|
|
---Purpose: Builds all the faces limited with a set of non
|
|
-- jointing and planars wires. if
|
|
-- <ControlOrientation> is false The Wires must have
|
|
-- correct orientations. Sinon orientation des wires
|
|
-- de telle sorte que les faces ne soient pas infinies
|
|
-- et qu'elles soient disjointes.
|
|
|
|
uses
|
|
Wire from TopoDS,
|
|
Face from TopoDS,
|
|
ListOfShape from TopTools,
|
|
DataMapOfShapeListOfShape from TopTools
|
|
is
|
|
|
|
Create returns FaceRestrictor from BRepAlgo;
|
|
|
|
Init (me : in out;
|
|
F : Face from TopoDS;
|
|
Proj : Boolean from Standard = Standard_False;
|
|
ControlOrientation : Boolean from Standard = Standard_False)
|
|
---Purpose: the surface of <F> will be the the surface of each new
|
|
-- faces built.
|
|
-- <Proj> is used to update pcurves on edges if necessary.
|
|
-- See Add().
|
|
is static;
|
|
|
|
Add( me : in out;
|
|
W : in out Wire from TopoDS)
|
|
---Purpose: Add the wire <W> to the set of wires.
|
|
--
|
|
-- Warning:
|
|
-- The Wires must be closed.
|
|
--
|
|
-- The edges of <W> can be modified if they have not pcurves
|
|
-- on the surface <S> of <F>. In this case
|
|
-- if <Proj> is false the first pcurve of the edge
|
|
-- is positionned on <S>.
|
|
-- if <Proj> is True ,the Pcurve On <S> is the
|
|
-- projection of the curve 3d on <F>.
|
|
is static;
|
|
|
|
Clear(me : in out)
|
|
---Purpose: Removes all the Wires
|
|
is static;
|
|
|
|
Perform( me : in out)
|
|
---Purpose: Evaluate all the faces limited by the set of Wires.
|
|
is static;
|
|
|
|
IsDone( me)
|
|
returns Boolean from Standard
|
|
is static;
|
|
|
|
More( me)
|
|
returns Boolean from Standard
|
|
is static;
|
|
|
|
Next( me : in out)
|
|
is static;
|
|
|
|
Current(me)
|
|
returns Face from TopoDS
|
|
is static;
|
|
|
|
PerformWithCorrection( me : in out)
|
|
---Purpose: Evaluate all the faces limited by the set of Wires.
|
|
is static private;
|
|
|
|
fields
|
|
|
|
myDone : Boolean from Standard;
|
|
modeProj : Boolean from Standard;
|
|
myFace : Face from TopoDS;
|
|
wires : ListOfShape from TopTools;
|
|
faces : ListOfShape from TopTools;
|
|
|
|
myCorrection : Boolean from Standard;
|
|
keyIsIn : DataMapOfShapeListOfShape from TopTools;
|
|
keyContains : DataMapOfShapeListOfShape from TopTools;
|
|
|
|
end FaceRestrictor;
|
|
|