1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-07 18:30:55 +03:00
occt/src/BRepPrimAPI/BRepPrimAPI_MakeSphere.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

146 lines
4.7 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 MakeSphere from BRepPrimAPI inherits MakeOneAxis from BRepPrimAPI
---Purpose: Describes functions to build spheres or portions of spheres.
-- A MakeSphere object provides a framework for:
-- - defining the construction of a sphere,
-- - implementing the construction algorithm, and
-- - consulting the result.
uses
Pnt from gp,
Ax2 from gp,
Sphere from BRepPrim,
OneAxis from BRepPrim
raises
DomainError from Standard
is
Create(R : Real)
returns MakeSphere from BRepPrimAPI
---Purpose: Make a sphere of radius R.
---Level: Public
raises
DomainError from Standard; -- if R <= Precision::Confusion()
Create(R, angle : Real)
returns MakeSphere from BRepPrimAPI
---Purpose: Make a sphere of radius R.
---Level: Public
raises
DomainError from Standard; -- if R <= Precision::Confusion()
Create(R, angle1, angle2 : Real)
returns MakeSphere from BRepPrimAPI
---Purpose: Make a sphere of radius R.
---Level: Public
raises
DomainError from Standard; -- if R <= Precision::Confusion()
Create(R, angle1, angle2, angle3 : Real)
returns MakeSphere from BRepPrimAPI
---Purpose: Make a sphere of radius R.
---Level: Public
raises
DomainError from Standard; -- if R <= Precision::Confusion()
Create(Center : Pnt from gp; R : Real)
returns MakeSphere from BRepPrimAPI
---Purpose: Make a sphere of radius R.
---Level: Public
raises
DomainError from Standard; -- if R <= Precision::Confusion()
Create(Center : Pnt from gp; R, angle : Real)
returns MakeSphere from BRepPrimAPI
---Purpose: Make a sphere of radius R.
---Level: Public
raises
DomainError from Standard; -- if R <= Precision::Confusion()
Create(Center : Pnt from gp; R, angle1, angle2 : Real)
returns MakeSphere from BRepPrimAPI
---Purpose: Make a sphere of radius R.
---Level: Public
raises
DomainError from Standard; -- if R <= Precision::Confusion()
Create(Center : Pnt from gp; R, angle1, angle2, angle3 : Real)
returns MakeSphere from BRepPrimAPI
---Purpose: Make a sphere of radius R.
---Level: Public
raises
DomainError from Standard; -- if R <= Precision::Confusion()
Create(Axis : Ax2 from gp; R : Real)
returns MakeSphere from BRepPrimAPI
---Purpose: Make a sphere of radius R.
---Level: Public
raises
DomainError from Standard; -- if R <= Precision::Confusion()
Create(Axis : Ax2 from gp; R, angle : Real)
returns MakeSphere from BRepPrimAPI
---Purpose: Make a sphere of radius R.
---Level: Public
raises
DomainError from Standard; -- if R <= Precision::Confusion()
Create(Axis : Ax2 from gp; R, angle1, angle2 : Real)
returns MakeSphere from BRepPrimAPI
---Purpose: Make a sphere of radius R.
---Level: Public
raises
DomainError from Standard; -- if R <= Precision::Confusion()
Create(Axis : Ax2 from gp; R, angle1, angle2, angle3 : Real)
returns MakeSphere from BRepPrimAPI
---Purpose: Make a sphere of radius R.
---Level: Public
raises
DomainError from Standard; -- if R <= Precision::Confusion()
---Purpose: For all algorithms The resulting shape is composed of
-- - a lateral spherical face,
-- - two planar faces parallel to the plane z = 0 if the
-- sphere is truncated in the v parametric direction, or
-- only one planar face if angle1 is equal to -p/2 or if
-- angle2 is equal to p/2 (these faces are circles in
-- case of a complete truncated sphere),
-- - and in case of a portion of sphere, two planar faces
-- to shut the shape.(in the planes u = 0 and u = angle).
OneAxis(me : in out) returns Address;
---Purpose: Returns the algorithm.
---Level: Advanced
Sphere(me : in out) returns Sphere from BRepPrim
---Purpose: Returns the algorithm.
--
---C++: return &
---Level: Public
is static;
fields
mySphere : Sphere from BRepPrim;
end MakeSphere;