mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-12 09:59:03 +08: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.
116 lines
3.9 KiB
Plaintext
116 lines
3.9 KiB
Plaintext
-- Created on: 1993-06-22
|
|
-- Created by: Laurent BOURESCHE
|
|
-- Copyright (c) 1993-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 Prism from BRepSweep
|
|
|
|
---Purpose: Provides natural constructors to build BRepSweep
|
|
-- translated swept Primitives.
|
|
|
|
uses
|
|
Location from TopLoc,
|
|
NumShape from Sweep,
|
|
Translation from BRepSweep,
|
|
Shape from TopoDS,
|
|
Vec from gp,
|
|
Dir from gp
|
|
|
|
raises
|
|
ConstructionError from Standard
|
|
|
|
is
|
|
Create (S : Shape from TopoDS;
|
|
V : Vec from gp;
|
|
Copy : Boolean from Standard = Standard_False;
|
|
Canonize: Boolean from Standard = Standard_True)
|
|
---Purpose: Builds the prism of base S and vector V. If C is true,
|
|
-- S is copied. If Canonize is true then generated surfaces
|
|
-- are attempted to be canonized in simple types
|
|
returns Prism from BRepSweep;
|
|
|
|
Create (S : Shape from TopoDS;
|
|
D : Dir from gp;
|
|
Inf : Boolean from Standard = Standard_True;
|
|
Copy : Boolean from Standard = Standard_False;
|
|
Canonize : Boolean from Standard = Standard_True)
|
|
---Purpose: Builds a semi-infinite or an infinite prism of base S.
|
|
-- If Copy is true S is copied. If Inf is true the prism
|
|
-- is infinite, if Inf is false the prism is infinite in
|
|
-- the direction D. If Canonize is true then generated surfaces
|
|
-- are attempted to be canonized in simple types
|
|
returns Prism from BRepSweep;
|
|
|
|
Shape (me : in out)
|
|
---Purpose: Returns the TopoDS Shape attached to the prism.
|
|
returns Shape from TopoDS
|
|
is static;
|
|
|
|
Shape (me : in out; aGenS : Shape from TopoDS)
|
|
---Purpose: Returns the TopoDS Shape generated with aGenS
|
|
-- (subShape of the generating shape).
|
|
returns Shape from TopoDS
|
|
is static;
|
|
|
|
FirstShape (me : in out)
|
|
---Purpose: Returns the TopoDS Shape of the bottom of the prism.
|
|
returns Shape from TopoDS
|
|
is static;
|
|
|
|
FirstShape (me : in out; aGenS : Shape from TopoDS)
|
|
---Purpose: Returns the TopoDS Shape of the bottom of the prism.
|
|
-- generated with aGenS (subShape of the generating
|
|
-- shape).
|
|
returns Shape from TopoDS
|
|
is static;
|
|
|
|
LastShape (me : in out)
|
|
---Purpose: Returns the TopoDS Shape of the top of the prism.
|
|
returns Shape from TopoDS
|
|
is static;
|
|
|
|
LastShape (me : in out; aGenS : Shape from TopoDS)
|
|
---Purpose: Returns the TopoDS Shape of the top of the prism.
|
|
-- generated with aGenS (subShape of the generating
|
|
-- shape).
|
|
returns Shape from TopoDS
|
|
is static;
|
|
|
|
Vec(me)
|
|
---Purpose: Returns the Vector of the Prism, if it is an infinite
|
|
-- prism the Vec is unitar.
|
|
returns Vec from gp
|
|
is static;
|
|
|
|
NumShape (me)
|
|
returns NumShape from Sweep
|
|
---Purpose: used to build the NumShape of a limited prism.
|
|
is static private;
|
|
|
|
NumShape (me; Inf : Boolean from Standard)
|
|
returns NumShape from Sweep
|
|
---Purpose: used to build the NumShape of an infinite prism.
|
|
is static private;
|
|
|
|
Location(me; V : Vec from gp)
|
|
returns Location from TopLoc
|
|
---Purpose: used to build the Location.
|
|
is static private;
|
|
|
|
fields
|
|
|
|
myTranslation : Translation from BRepSweep;
|
|
|
|
end Prism from BRepSweep;
|