mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-06 10:36:12 +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.
103 lines
3.3 KiB
Plaintext
103 lines
3.3 KiB
Plaintext
-- Created on: 1998-11-13
|
|
-- Created by: Jean-Michel BOULCOURT
|
|
-- Copyright (c) 1998-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.
|
|
|
|
class Projection from BRepProj
|
|
|
|
---Purpose: The Projection class provides conical and
|
|
-- cylindrical projections of Edge or Wire on
|
|
-- a Shape from TopoDS. The result will be a Edge
|
|
-- or Wire from TopoDS.
|
|
|
|
uses
|
|
Dir from gp,
|
|
Pnt from gp,
|
|
Shape from TopoDS,
|
|
Edge from TopoDS,
|
|
Wire from TopoDS,
|
|
Face from TopoDS,
|
|
Compound from TopoDS,
|
|
HSequenceOfShape from TopTools
|
|
|
|
raises
|
|
NoSuchObject from Standard,
|
|
ConstructionError from Standard,
|
|
NullObject from Standard
|
|
|
|
is
|
|
|
|
Create(Wire, Shape : Shape from TopoDS;
|
|
D : Dir from gp)
|
|
returns Projection from BRepProj
|
|
raises NullObject from Standard,
|
|
ConstructionError from Standard;
|
|
---Purpose: Makes a Cylindrical projection of Wire om Shape
|
|
|
|
Create(Wire, Shape : Shape from TopoDS;
|
|
P : Pnt from gp)
|
|
returns Projection from BRepProj
|
|
raises NullObject from Standard,
|
|
ConstructionError from Standard;
|
|
---Purpose: Makes a Conical projection of Wire om Shape
|
|
|
|
|
|
IsDone(me) returns Boolean from Standard
|
|
---Purpose: returns False if the section failed
|
|
---C++: inline
|
|
is static;
|
|
|
|
Init(me : in out)
|
|
---Purpose: Resets the iterator by resulting wires.
|
|
---C++: inline
|
|
is static;
|
|
|
|
More(me) returns Boolean from Standard
|
|
---Purpose: Returns True if there is a current result wire
|
|
---C++: inline
|
|
is static;
|
|
|
|
Next(me : in out)
|
|
---Purpose: Move to the next result wire.
|
|
---C++: inline
|
|
is static;
|
|
|
|
Current(me)
|
|
returns Wire from TopoDS
|
|
---Purpose: Returns the current result wire.
|
|
---C++: inline
|
|
is static;
|
|
|
|
Shape(me)
|
|
returns Compound from TopoDS
|
|
---Purpose: Returns the complete result as compound of wires.
|
|
---C++: inline
|
|
is static;
|
|
|
|
BuildSection(me: in out; Shape, Tool: Shape from TopoDS)
|
|
is private;
|
|
---Purpose: Performs section of theShape by theTool
|
|
--- and stores result in the fields.
|
|
|
|
fields
|
|
|
|
myIsDone : Boolean from Standard;
|
|
myLsh : Shape from TopoDS;
|
|
myShape : Compound from TopoDS;
|
|
mySection : HSequenceOfShape from TopTools;
|
|
myItr : Integer from Standard;
|
|
|
|
end Projection;
|
|
|