Files
OCCT/src/BRepSweep/BRepSweep_Prism.cdl
bugmaster b311480ed5 0023024: Update headers of OCCT files
Added appropriate copyright and license information in source files
2012-03-21 19:43:04 +04:00

122 lines
4.2 KiB
Plaintext
Executable File

-- Created on: 1993-06-22
-- Created by: Laurent BOURESCHE
-- Copyright (c) 1993-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 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;