mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +03:00
135 lines
4.2 KiB
Plaintext
Executable File
135 lines
4.2 KiB
Plaintext
Executable File
-- Created on: 1998-07-02
|
|
-- Created by: Joelle CHAUVET
|
|
-- Copyright (c) 1998-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 CompatibleWires from BRepFill
|
|
|
|
---Purpose: Constructs a sequence of Wires agreed each other
|
|
-- so that the surface passing through these sections
|
|
-- is not twisted
|
|
|
|
uses
|
|
|
|
Edge from TopoDS,
|
|
SequenceOfShape from TopTools,
|
|
ListOfShape from TopTools,
|
|
DataMapOfShapeListOfShape from TopTools
|
|
|
|
raises
|
|
ConstructionError from Standard,
|
|
NoSuchObject from Standard
|
|
|
|
is
|
|
|
|
Create returns CompatibleWires from BRepFill;
|
|
|
|
Create ( Sections : SequenceOfShape from TopTools)
|
|
returns CompatibleWires from BRepFill;
|
|
|
|
Init ( me : in out;
|
|
Sections : SequenceOfShape from TopTools)
|
|
raises
|
|
ConstructionError from Standard
|
|
is static;
|
|
|
|
SetPercent ( me : in out; percent : Real = 0.01)
|
|
is static;
|
|
|
|
Perform (me : in out;
|
|
WithRotation : Boolean = Standard_True)
|
|
---Purpose: Performs CompatibleWires According to the orientation
|
|
-- and the origin of each other
|
|
raises
|
|
ConstructionError from Standard
|
|
is static;
|
|
|
|
IsDone ( me)
|
|
returns Boolean from Standard
|
|
is static;
|
|
|
|
|
|
|
|
Shape(me) returns SequenceOfShape from TopTools
|
|
---Purpose: returns the generated sequence.
|
|
---C++ : return const &
|
|
is static;
|
|
|
|
GeneratedShapes (me ; SubSection : Edge from TopoDS)
|
|
---Purpose: Returns the shapes created from a subshape
|
|
-- <SubSection> of a section.
|
|
--
|
|
---C++ : return const &
|
|
returns ListOfShape from TopTools
|
|
is static;
|
|
|
|
Generated (me)
|
|
---C++: return const &
|
|
returns DataMapOfShapeListOfShape from TopTools
|
|
is static;
|
|
|
|
SameNumberByPolarMethod (me : in out;
|
|
WithRotation : Boolean = Standard_True)
|
|
---Purpose: Insert cutting points on closed wires to have same
|
|
-- number of edges. The sequence of shapes must
|
|
-- be a sequence of wires.
|
|
is static private;
|
|
|
|
SameNumberByACR (me : in out; report : Boolean from Standard )
|
|
---Purpose: Insert cutting points on open wires to have same
|
|
-- number of edges. The sequence of shapes must
|
|
-- be a sequence of wires.
|
|
is static private;
|
|
|
|
ComputeOrigin (me : in out; polar : Boolean from Standard )
|
|
---Purpose: Computes origins and orientation on closed wires to
|
|
-- avoid twisted results. The sequence of shapes must
|
|
-- be a sequence of wires. <polar> must be true
|
|
-- if SameNumberByPolarMethod was used before.
|
|
is static private;
|
|
|
|
SearchOrigin (me : in out)
|
|
---Purpose: Computes origins and orientation on open wires to
|
|
-- avoid twisted results. The sequence of shapes must
|
|
-- be a sequence of wires.
|
|
|
|
is static private;
|
|
|
|
fields
|
|
|
|
myInit : SequenceOfShape from TopTools;
|
|
myWork : SequenceOfShape from TopTools;
|
|
myPercent : Real from Standard;
|
|
myDegen1 : Boolean from Standard;
|
|
myDegen2 : Boolean from Standard;
|
|
myIsDone : Boolean from Standard;
|
|
myMap : DataMapOfShapeListOfShape from TopTools;
|
|
|
|
end CompatibleWires;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|