mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-07 18:30:55 +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.
115 lines
4.2 KiB
Plaintext
115 lines
4.2 KiB
Plaintext
-- Created on: 1993-07-22
|
|
-- Created by: Remi LEQUETTE
|
|
-- 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 MakeRevolution from BRepPrimAPI inherits MakeOneAxis from BRepPrimAPI
|
|
|
|
---Purpose: Describes functions to build revolved shapes.
|
|
-- A MakeRevolution object provides a framework for:
|
|
-- - defining the construction of a revolved shape,
|
|
-- - implementing the construction algorithm, and
|
|
-- - consulting the result.
|
|
|
|
uses
|
|
Ax2 from gp,
|
|
Curve from Geom,
|
|
OneAxis from BRepPrim,
|
|
Revolution from BRepPrim
|
|
|
|
raises
|
|
DomainError from Standard
|
|
|
|
is
|
|
Create(Meridian : Curve from Geom)
|
|
returns MakeRevolution from BRepPrimAPI
|
|
---Purpose: Make a revolution body by rotating a curve around Z.
|
|
---Level: Public
|
|
raises
|
|
DomainError from Standard; -- if M is not in a plane containing Z.
|
|
|
|
Create(Meridian : Curve from Geom; angle : Real)
|
|
returns MakeRevolution from BRepPrimAPI
|
|
---Purpose: Make a revolution body by rotating a curve around Z.
|
|
---Level: Public
|
|
raises
|
|
DomainError from Standard; -- if M is not in a plane containing Z.
|
|
|
|
Create(Meridian : Curve from Geom; VMin, VMax : Real)
|
|
returns MakeRevolution from BRepPrimAPI
|
|
---Purpose: Make a revolution body by rotating a curve around Z.
|
|
---Level: Public
|
|
raises
|
|
DomainError from Standard; -- if M is not in a plane containing Z.
|
|
|
|
Create(Meridian : Curve from Geom; VMin, VMax, angle : Real)
|
|
returns MakeRevolution from BRepPrimAPI
|
|
---Purpose: Make a revolution body by rotating a curve around Z.
|
|
---Level: Public
|
|
raises
|
|
DomainError from Standard; -- if M is not in a plane containing Z.
|
|
|
|
Create(Axes : Ax2 from gp; Meridian : Curve from Geom)
|
|
returns MakeRevolution from BRepPrimAPI
|
|
---Purpose: Make a revolution body by rotating a curve around Z.
|
|
---Level: Public
|
|
raises
|
|
DomainError from Standard; -- if M is not in a plane containing Z.
|
|
|
|
Create(Axes : Ax2 from gp; Meridian : Curve from Geom; angle : Real)
|
|
returns MakeRevolution from BRepPrimAPI
|
|
---Purpose: Make a revolution body by rotating a curve around Z.
|
|
---Level: Public
|
|
raises
|
|
DomainError from Standard; -- if M is not in a plane containing Z.
|
|
|
|
Create(Axes : Ax2 from gp; Meridian : Curve from Geom; VMin, VMax : Real)
|
|
returns MakeRevolution from BRepPrimAPI
|
|
---Purpose: Make a revolution body by rotating a curve around Z.
|
|
---Level: Public
|
|
raises
|
|
DomainError from Standard; -- if M is not in a plane containing Z.
|
|
|
|
Create(Axes : Ax2 from gp; Meridian : Curve from Geom; VMin, VMax, angle : Real)
|
|
returns MakeRevolution from BRepPrimAPI
|
|
---Purpose: Make a revolution body by rotating a curve around Z.
|
|
---Level: Public
|
|
raises
|
|
DomainError from Standard; -- if M is not in a plane containing Z.
|
|
---Purpose: For all algorithms the resulting shape is composed of
|
|
-- - a lateral revolved face,
|
|
-- - two planar faces in planes parallel to the plane z =
|
|
-- 0, and passing by the extremities of the revolved
|
|
-- portion of Meridian, if these points are not on the Z
|
|
-- axis (in case of a complete revolved shape, these faces are circles),
|
|
-- - and in the case of a portion of a revolved shape, two
|
|
-- planar faces to close the shape (in the planes u = 0 and u = angle).
|
|
|
|
OneAxis(me : in out) returns Address;
|
|
---Purpose: Returns the algorithm.
|
|
---Level: Advanced
|
|
|
|
Revolution(me : in out) returns Revolution from BRepPrim
|
|
---Purpose: Returns the algorithm.
|
|
--
|
|
---C++: return &
|
|
---Level: Public
|
|
is static;
|
|
|
|
fields
|
|
|
|
myRevolution : Revolution from BRepPrim;
|
|
|
|
end MakeRevolution;
|