Files
OCCT/src/BRepPrim/BRepPrim_Revolution.cdl
abv d5f74e42d6 0024624: Lost word in license statement in source files
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.
2014-02-20 16:15:17 +04:00

77 lines
2.6 KiB
Plaintext

-- Created on: 1992-11-05
-- Created by: Remi LEQUETTE
-- Copyright (c) 1992-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 Revolution from BRepPrim inherits OneAxis from BRepPrim
---Purpose: Implement the OneAxis algoritm for a revolution
-- surface.
uses
Face from TopoDS,
Edge from TopoDS,
Curve from Geom,
Curve from Geom2d,
Ax2 from gp,
Pnt2d from gp
is
Create(A : Ax2 from gp;
VMin, VMax : Real from Standard;
M : Curve from Geom;
PM : Curve from Geom2d) returns Revolution from BRepPrim;
---Purpose: Create a revolution body <M> is the meridian nd
-- must be in the XZ plane of <A>. <PM> is the
-- meridian in the XZ plane.
Create(A : Ax2 from gp;
VMin, VMax : Real from Standard) returns Revolution from BRepPrim
---Purpose: Create a revolution body. The meridian is set
-- later. Reserved for derivated classes.
is protected;
Meridian(me : in out; M : Curve from Geom; PM : Curve from Geom2d)
is protected;
MakeEmptyLateralFace(me) returns Face from TopoDS
---Purpose: The surface normal should be directed towards the
-- outside.
is virtual;
MakeEmptyMeridianEdge(me; Ang : Real) returns Edge from TopoDS
---Purpose: Returns an edge with a 3D curve made from the
-- meridian in the XZ plane rotated by <Ang> around
-- the Z-axis. Ang may be 0 or myAngle.
is virtual;
MeridianValue(me; V : Real) returns Pnt2d from gp
---Purpose: Returns the meridian point at parameter <V> in the
-- plane XZ.
is virtual;
SetMeridianPCurve(me; E : in out Edge from TopoDS; F : Face from TopoDS)
---Purpose: Sets the parametric urve of the edge <E> in the
-- face <F> to be the 2d representation of the
-- meridian.
is virtual;
fields
myMeridian : Curve from Geom;
myPMeridian : Curve from Geom2d;
end Revolution;