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.
106 lines
3.6 KiB
Plaintext
106 lines
3.6 KiB
Plaintext
-- Created on: 1997-09-12
|
|
-- Created by: Philippe MANGIN
|
|
-- Copyright (c) 1997-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 Curve from FEmTool inherits TShared from MMgt
|
|
|
|
---Purpose: Curve defined by Polynomial Elements.
|
|
|
|
uses
|
|
Base from PLib,
|
|
Array1OfReal from TColStd,
|
|
HArray1OfInteger from TColStd,
|
|
Array2OfReal from TColStd,
|
|
Array1OfInteger from TColStd,
|
|
HArray1OfReal from TColStd
|
|
|
|
raises
|
|
DimensionError
|
|
|
|
is
|
|
Create(Dimension : Integer;
|
|
NbElements : Integer;
|
|
TheBase : Base from PLib;
|
|
Tolerance : Real);
|
|
|
|
Knots(me)
|
|
---C++: return &
|
|
returns Array1OfReal;
|
|
|
|
SetElement(me : mutable; IndexOfElement : Integer;
|
|
Coeffs : Array2OfReal);
|
|
|
|
D0(me : mutable; U : Real; Pnt : out Array1OfReal);
|
|
|
|
D1(me : mutable; U : Real; Vec : out Array1OfReal);
|
|
|
|
D2(me : mutable; U : Real; Vec : out Array1OfReal);
|
|
|
|
Length(me : mutable;
|
|
FirstU, LastU : Real;
|
|
Length : out Real);
|
|
|
|
GetElement(me : mutable; IndexOfElement : Integer;
|
|
Coeffs : out Array2OfReal);
|
|
|
|
GetPolynom(me : mutable; Coeffs : out Array1OfReal);
|
|
---Purpose: returns coefficients of all elements in canonical base.
|
|
|
|
NbElements(me) returns Integer;
|
|
|
|
Dimension(me) returns Integer;
|
|
|
|
Base(me) returns Base from PLib;
|
|
|
|
Degree(me; IndexOfElement : Integer) returns Integer;
|
|
|
|
SetDegree(me : mutable;
|
|
IndexOfElement : Integer;
|
|
Degree : Integer);
|
|
|
|
ReduceDegree(me : mutable;
|
|
IndexOfElement : Integer; Tol : Real;
|
|
NewDegree : out Integer; MaxError : out Real);
|
|
|
|
|
|
Update(me:mutable; Element : Integer; Order : Integer)
|
|
is private;
|
|
|
|
fields
|
|
myNbElements : Integer;
|
|
myDimension : Integer;
|
|
myBase : Base from PLib;
|
|
myKnots : HArray1OfReal;
|
|
myDegree : Array1OfInteger;
|
|
myCoeff : Array1OfReal; -- Coeff in <myBase>
|
|
myPoly : Array1OfReal; -- Coeff in the canonnical Bases
|
|
myDeri : Array1OfReal; -- Coeff of the first Derivative
|
|
-- in the canonical Base
|
|
myDsecn : Array1OfReal; -- Coeff of the second Derivative
|
|
-- in the canonnical Base
|
|
HasPoly : Array1OfInteger; -- Say If the Ith Element
|
|
-- has an canonical Representation.
|
|
HasDeri : Array1OfInteger; -- Say If the Ith Element
|
|
-- has an first Derivative Representation.
|
|
HasSecn : Array1OfInteger; -- Say If the Ith Element
|
|
-- has an second Derivative Representation.
|
|
myLength : Array1OfReal; -- Table of Length Element by Element
|
|
Uf, Ul : Real;
|
|
Denom, USum : Real;
|
|
myIndex, myPtr : Integer;
|
|
end Curve;
|
|
|
|
|