mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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.
116 lines
4.3 KiB
Plaintext
116 lines
4.3 KiB
Plaintext
-- Created on: 1992-09-28
|
|
-- Created by: Remi GILET
|
|
-- 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 MakeCircle from GC inherits Root from GC
|
|
|
|
---Purpose : This class implements the following algorithms used
|
|
-- to create Cirlec from Geom.
|
|
--
|
|
-- * Create a Circle parallel to another and passing
|
|
-- though a point.
|
|
-- * Create a Circle parallel to another at the distance
|
|
-- Dist.
|
|
-- * Create a Circle passing through 3 points.
|
|
-- * Create a Circle with its center and the normal of its
|
|
-- plane and its radius.
|
|
-- * Create a Circle with its axis and radius.
|
|
-- The circle's parameter is the angle (Radian).
|
|
-- The parametrization range is [0,2*PI].
|
|
-- The circle is a closed and periodic curve.
|
|
-- The center of the circle is the Location point of its axis
|
|
-- placement. The XDirection of the axis placement defines the
|
|
-- origin of the parametrization.
|
|
|
|
uses Pnt from gp,
|
|
Circ from gp,
|
|
Circle from Geom,
|
|
Dir from gp,
|
|
Ax1 from gp,
|
|
Ax2 from gp,
|
|
Real from Standard
|
|
|
|
raises NotDone from StdFail
|
|
|
|
is
|
|
|
|
Create (C : Circ from gp) returns MakeCircle;
|
|
--- Purpose : creates a circle from a non persistent circle C by its conversion.
|
|
|
|
Create (A2 : Ax2 from gp ;
|
|
Radius : Real from Standard) returns MakeCircle;
|
|
--- Purpose :
|
|
-- A2 is the local coordinates system of the circle.
|
|
-- It is not forbidden to create a circle with Radius = 0.0
|
|
-- Status is "NegativeRadius" if Radius < 0.
|
|
|
|
Create(Circ : Circ from gp ;
|
|
Dist : Real from Standard) returns MakeCircle;
|
|
---Purpose : Make a Circle from Geom <TheCirc> parallel to another
|
|
-- Circ <Circ> with a distance <Dist>.
|
|
-- If Dist is greater than zero the result is enclosing
|
|
-- the circle <Circ>, else the result is enclosed by the
|
|
-- circle <Circ>.
|
|
|
|
Create(Circ : Circ from gp;
|
|
Point : Pnt from gp) returns MakeCircle;
|
|
---Purpose : Make a Circle from Geom <TheCirc> parallel to another
|
|
-- Circ <Circ> and passing through a Pnt <Point>.
|
|
|
|
Create(P1,P2,P3 : Pnt from gp) returns MakeCircle;
|
|
---Purpose : Make a Circ from gp <TheCirc> passing through 3
|
|
-- Pnt2d <P1>,<P2>,<P3>.
|
|
|
|
Create(Center : Pnt from gp ;
|
|
Norm : Dir from gp ;
|
|
Radius : Real from Standard) returns MakeCircle;
|
|
---Purpose : Make a Circle from Geom <TheCirc> with its center
|
|
-- <Center> and the normal of its plane <Norm> and
|
|
-- its radius <Radius>.
|
|
|
|
Create(Center : Pnt from gp ;
|
|
PtAxis : Pnt from gp ;
|
|
Radius : Real from Standard) returns MakeCircle;
|
|
---Purpose : Make a Circle from Geom <TheCirc> with its center
|
|
-- <Center> and the normal of its plane defined by the
|
|
-- two points <Center> and <PtAxis> and its radius <Radius>.
|
|
|
|
Create(Axis : Ax1 from gp ;
|
|
Radius : Real from Standard) returns MakeCircle;
|
|
---Purpose : Make a Circle from Geom <TheCirc> with its center
|
|
-- <Center> and its radius <Radius>.
|
|
|
|
Value(me) returns Circle from Geom
|
|
raises NotDone
|
|
is static;
|
|
--- Purpose:
|
|
-- Returns the constructed circle.
|
|
-- Exceptions
|
|
-- StdFail_NotDone if no circle is constructed.
|
|
---C++: return const&
|
|
|
|
Operator(me) returns Circle from Geom
|
|
is static;
|
|
---C++: return const&
|
|
---C++: alias "Standard_EXPORT operator Handle_Geom_Circle() const;"
|
|
|
|
fields
|
|
|
|
TheCircle : Circle from Geom;
|
|
--The solution from Geom.
|
|
|
|
end MakeCircle;
|
|
|