mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast Wrong license statements corrected in several files. Copyright and license statements added in XSD and GLSL files. Copyright year updated in some files. Obsolete documentation files removed from DrawResources.
229 lines
7.1 KiB
Plaintext
229 lines
7.1 KiB
Plaintext
-- Created on: 1995-10-26
|
|
-- Created by: Yves FRICAUD
|
|
-- Copyright (c) 1995-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or modify it under
|
|
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
-- Modified by skv - Tue Mar 15 16:17:37 2005
|
|
-- Add methods for supporting history.
|
|
|
|
class MakeOffset from BRepOffset
|
|
|
|
---Purpose:
|
|
|
|
uses
|
|
Image from BRepAlgo,
|
|
AsDes from BRepAlgo,
|
|
Analyse from BRepOffset,
|
|
Mode from BRepOffset,
|
|
DataMapOfShapeOffset from BRepOffset,
|
|
Error from BRepOffset,
|
|
Inter3d from BRepOffset,
|
|
DataMapOfShapeReal from TopTools,
|
|
Shape from TopoDS,
|
|
JoinType from GeomAbs,
|
|
Face from TopoDS,
|
|
Edge from TopoDS,
|
|
MapOfShape from TopTools,
|
|
IndexedMapOfShape from TopTools,
|
|
ListOfShape from TopTools,
|
|
MakeLoops from BRepOffset
|
|
|
|
is
|
|
|
|
Create;
|
|
|
|
Create ( S : Shape from TopoDS;
|
|
Offset : Real from Standard;
|
|
Tol : Real from Standard;
|
|
Mode : Mode from BRepOffset = BRepOffset_Skin;
|
|
Intersection : Boolean from Standard = Standard_False;
|
|
SelfInter : Boolean from Standard = Standard_False;
|
|
Join : JoinType from GeomAbs = GeomAbs_Arc;
|
|
Thickening : Boolean from Standard = Standard_False)
|
|
returns MakeOffset from BRepOffset;
|
|
|
|
---Category: Initialization.
|
|
|
|
Initialize (me : in out;
|
|
S : Shape from TopoDS;
|
|
Offset : Real from Standard;
|
|
Tol : Real from Standard;
|
|
Mode : Mode from BRepOffset = BRepOffset_Skin;
|
|
Intersection : Boolean from Standard = Standard_False;
|
|
SelfInter : Boolean from Standard = Standard_False;
|
|
Join : JoinType from GeomAbs = GeomAbs_Arc;
|
|
Thickening : Boolean from Standard = Standard_False)
|
|
is static;
|
|
|
|
Clear (me : in out)
|
|
is static;
|
|
|
|
AddFace (me : in out; F : Face from TopoDS) is static;
|
|
---Purpose: Add Closing Faces, <F> has to be in the initial
|
|
-- shape S.
|
|
|
|
SetOffsetOnFace (me : in out;
|
|
F : Face from TopoDS;
|
|
Off : Real from Standard) is static;
|
|
---Purpose: set the offset <Off> on the Face <F>
|
|
|
|
|
|
---Category: Computation.
|
|
|
|
MakeOffsetShape (me : in out) is static;
|
|
|
|
MakeThickSolid (me : in out) is static;
|
|
|
|
---Category: Querying.
|
|
|
|
GetAnalyse(me)
|
|
---C++: return const &
|
|
returns Analyse from BRepOffset
|
|
is static;
|
|
|
|
IsDone (me) returns Boolean from Standard
|
|
is static;
|
|
|
|
Shape (me)
|
|
---C++: return const &
|
|
returns Shape from TopoDS
|
|
is static;
|
|
|
|
Error (me) returns Error from BRepOffset;
|
|
---Purpose: returns information if IsDone() = FALSE.
|
|
|
|
|
|
OffsetFacesFromShapes (me)
|
|
---Purpose: Returns <Image> containing links between initials
|
|
-- shapes and offset faces.
|
|
---C++: return const &
|
|
returns Image from BRepAlgo
|
|
is static;
|
|
|
|
-- Modified by skv - Tue Mar 15 16:17:37 2005 Begin
|
|
-- Query offset join type.
|
|
|
|
GetJoinType(me)
|
|
---Purpose: Returns myJoin.
|
|
returns JoinType from GeomAbs
|
|
is static;
|
|
|
|
-- Add methods for supporting history.
|
|
|
|
OffsetEdgesFromShapes (me)
|
|
---Purpose: Returns <Image> containing links between initials
|
|
-- shapes and offset edges.
|
|
---C++: return const &
|
|
returns Image from BRepAlgo
|
|
is static;
|
|
|
|
-- Modified by skv - Tue Mar 15 16:17:37 2005 End
|
|
|
|
ClosingFaces (me)
|
|
---Purpose: Returns the list of closing faces stores by AddFace
|
|
---C++: return const &
|
|
returns IndexedMapOfShape from TopTools
|
|
is static;
|
|
|
|
---Category: private methods
|
|
|
|
BuildOffsetByArc ( me : in out )
|
|
is static private;
|
|
|
|
BuildOffsetByInter ( me : in out )
|
|
is static private;
|
|
|
|
SelfInter (me : in out ;
|
|
Modif : in out MapOfShape from TopTools)
|
|
is static private;
|
|
|
|
Intersection3D (me : in out;
|
|
Inter : in out Inter3d from BRepOffset)
|
|
is static private;
|
|
|
|
Intersection2D ( me : in out ;
|
|
Modif : IndexedMapOfShape from TopTools;
|
|
NewEdges : IndexedMapOfShape from TopTools)
|
|
is static private;
|
|
|
|
MakeLoops ( me : in out ;
|
|
Modif : in out IndexedMapOfShape from TopTools)
|
|
is static private;
|
|
|
|
MakeLoopsOnContext ( me : in out ;
|
|
Modif : in out MapOfShape from TopTools)
|
|
is static private;
|
|
|
|
MakeFaces ( me : in out ;
|
|
Modif : in out IndexedMapOfShape from TopTools)
|
|
is static private;
|
|
|
|
MakeShells (me : in out )
|
|
is static private;
|
|
|
|
SelectShells (me : in out)
|
|
is static private;
|
|
|
|
EncodeRegularity( me : in out)
|
|
is static private;
|
|
|
|
MakeSolid (me : in out)
|
|
is static private;
|
|
|
|
ToContext (me : in out;
|
|
MapSF : in out DataMapOfShapeOffset from BRepOffset)
|
|
is static private;
|
|
|
|
UpdateFaceOffset (me: in out)
|
|
---Purpose: Private method use to update the map face<->offset
|
|
is static private;
|
|
|
|
CorrectConicalFaces (me: in out)
|
|
---Purpose: Private method used to correct degenerated edges on conical faces
|
|
is static private;
|
|
|
|
MakeMissingWalls (me: in out)
|
|
---Purpose: Private method used to build walls for thickening the shell
|
|
is static private;
|
|
|
|
fields
|
|
|
|
myOffset : Real from Standard;
|
|
myTol : Real from Standard;
|
|
myShape : Shape from TopoDS; -- Initial
|
|
myMode : Mode from BRepOffset;
|
|
myInter : Boolean from Standard;
|
|
mySelfInter : Boolean from Standard;
|
|
myJoin : JoinType from GeomAbs;
|
|
myThickening : Boolean from Standard;
|
|
|
|
myFaceOffset : DataMapOfShapeReal from TopTools;
|
|
|
|
myFaces : IndexedMapOfShape from TopTools;
|
|
myAnalyse : Analyse from BRepOffset;
|
|
|
|
myOffsetShape : Shape from TopoDS; -- Result
|
|
myInitOffsetFace : Image from BRepAlgo;
|
|
myInitOffsetEdge : Image from BRepAlgo;
|
|
myImageOffset : Image from BRepAlgo;
|
|
myWalls : ListOfShape from TopTools;
|
|
myAsDes : AsDes from BRepAlgo;
|
|
|
|
myDone : Boolean from Standard;
|
|
myError : Error from BRepOffset;
|
|
|
|
myMakeLoops : MakeLoops from BRepOffset;
|
|
|
|
end MakeOffset;
|