1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00
Files
occt/src/IntAna/IntAna_Quadric.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

134 lines
3.2 KiB
Plaintext

-- Created on: 1992-07-01
-- Created by: Laurent BUCHARD
-- 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 Quadric from IntAna
---Purpose: This class provides a description of Quadrics by their
-- Coefficients in natural coordinate system.
uses Ax3 from gp,
Cylinder from gp,
Cone from gp,
Sphere from gp,
Pln from gp
is
Create
---Purpose: Empty Constructor
returns Quadric from IntAna;
Create(P : Pln from gp)
---Purpose: Creates a Quadric from a Pln
returns Quadric from IntAna;
Create(Sph: Sphere from gp)
---Purpose: Creates a Quadric from a Sphere
returns Quadric from IntAna;
Create(Cyl: Cylinder from gp)
---Purpose: Creates a Quadric from a Cylinder
returns Quadric from IntAna;
Create(Cone: Cone from gp)
---Purpose: Creates a Quadric from a Cone
returns Quadric from IntAna;
SetQuadric(me: in out; P: Pln from gp)
---Purpose: Initializes the quadric with a Pln
is static;
SetQuadric(me: in out; Sph: Sphere from gp)
---Purpose: Initialize the quadric with a Sphere
is static;
SetQuadric(me: in out; Con: Cone from gp)
---Purpose: Initializes the quadric with a Cone
is static;
SetQuadric(me: in out; Cyl: Cylinder from gp)
---Purpose: Initializes the quadric with a Cylinder
is static;
Coefficients(me; xCXX,xCYY,xCZZ,xCXY
,xCXZ,xCYZ,xCX,xCY,xCZ,xCCte: out Real from Standard)
---Purpose: Returns the coefficients of the polynomial equation
-- which define the quadric:
-- xCXX x**2 + xCYY y**2 + xCZZ z**2
-- + 2 ( xCXY x y + xCXZ x z + xCYZ y z )
-- + 2 ( xCX x + xCY y + xCZ z )
-- + xCCte
is static;
NewCoefficients(me; xCXX,xCYY,xCZZ,xCXY,xCXZ
,xCYZ,xCX,xCY,xCZ,xCCte: in out Real from Standard;
Axis: Ax3 from gp)
---Purpose: Returns the coefficients of the polynomial equation
-- ( written in the natural coordinates system )
-- in the local coordinates system defined by Axis
is static;
fields
CXX : Real from Standard;
CYY : Real from Standard;
CZZ : Real from Standard;
CXY : Real from Standard;
CXZ : Real from Standard;
CYZ : Real from Standard;
CX : Real from Standard;
CY : Real from Standard;
CZ : Real from Standard;
CCte : Real from Standard;
end Quadric;