mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-21 07:22:16 +08: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.
281 lines
9.1 KiB
Plaintext
281 lines
9.1 KiB
Plaintext
-- Created on: 1998-06-02
|
|
-- Created by: Philippe NOUAILLE
|
|
-- Copyright (c) 1998-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 ChAsym from BlendFunc
|
|
|
|
inherits Function from Blend
|
|
|
|
---Purpose:
|
|
|
|
uses Vector from math,
|
|
Matrix from math,
|
|
Tensor from BlendFunc,
|
|
Vec from gp,
|
|
Vec2d from gp,
|
|
Pnt from gp,
|
|
Lin from gp,
|
|
Array1OfPnt from TColgp,
|
|
Array1OfVec from TColgp,
|
|
Array1OfPnt2d from TColgp,
|
|
Array1OfVec2d from TColgp,
|
|
Array1OfReal from TColStd,
|
|
Array1OfInteger from TColStd,
|
|
Point from Blend,
|
|
Shape from GeomAbs,
|
|
HCurve from Adaptor3d,
|
|
HSurface from Adaptor3d
|
|
is
|
|
|
|
Create(S1, S2 : HSurface from Adaptor3d; C : HCurve from Adaptor3d)
|
|
returns ChAsym from BlendFunc;
|
|
|
|
NbEquations(me)
|
|
---Purpose: returns the number of equations of the function.
|
|
returns Integer from Standard
|
|
is redefined static;
|
|
|
|
Set(me: in out; Param : Real from Standard);
|
|
|
|
Set(me: in out; First, Last : Real from Standard);
|
|
|
|
GetTolerance(me; Tolerance : out Vector from math; Tol : Real from Standard);
|
|
|
|
GetBounds(me; InfBound,SupBound : out Vector from math);
|
|
|
|
IsSolution(me: in out; Sol : Vector from math; Tol : Real from Standard)
|
|
returns Boolean from Standard;
|
|
|
|
GetMinimalDistance(me)
|
|
---Purpose: Returns the minimal Distance beetween two
|
|
-- extremitys of calculed sections.
|
|
returns Real from Standard;
|
|
|
|
ComputeValues(me : in out;
|
|
X : Vector from math;
|
|
DegF : Integer from Standard;
|
|
DegL : Integer from Standard)
|
|
---Purpose: computes the values <F> of the derivatives for the
|
|
-- variable <X> between DegF and DegL.
|
|
-- Returns True if the computation was done successfully,
|
|
-- False otherwise.
|
|
returns Boolean from Standard
|
|
is static;
|
|
|
|
Value(me: in out; X : Vector; F : out Vector)
|
|
---Purpose: computes the values <F> of the Functions for the
|
|
-- variable <X>.
|
|
-- Returns True if the computation was done successfully,
|
|
-- False otherwise.
|
|
returns Boolean from Standard
|
|
is redefined static;
|
|
|
|
Derivatives(me: in out; X : Vector; D : out Matrix)
|
|
---Purpose: returns the values <D> of the derivatives for the
|
|
-- variable <X>.
|
|
-- Returns True if the computation was done successfully,
|
|
-- False otherwise.
|
|
returns Boolean from Standard
|
|
is redefined static ;
|
|
|
|
Values(me: in out; X : Vector; F : out Vector; D : out Matrix)
|
|
---Purpose: returns the values <F> of the functions and the derivatives
|
|
-- <D> for the variable <X>.
|
|
-- Returns True if the computation was done successfully,
|
|
-- False otherwise.
|
|
returns Boolean from Standard
|
|
is redefined static;
|
|
|
|
|
|
PointOnS1(me) returns Pnt from gp;
|
|
---C++: return const&
|
|
|
|
PointOnS2(me) returns Pnt from gp;
|
|
---C++: return const&
|
|
|
|
IsTangencyPoint(me) returns Boolean from Standard;
|
|
|
|
TangentOnS1(me) returns Vec from gp;
|
|
---C++: return const&
|
|
|
|
Tangent2dOnS1(me) returns Vec2d from gp;
|
|
---C++: return const&
|
|
|
|
TangentOnS2(me) returns Vec from gp;
|
|
---C++: return const&
|
|
|
|
Tangent2dOnS2(me) returns Vec2d from gp;
|
|
---C++: return const&
|
|
|
|
TwistOnS1(me)
|
|
returns Boolean from Standard
|
|
is redefined;
|
|
|
|
TwistOnS2(me)
|
|
returns Boolean from Standard
|
|
is redefined;
|
|
|
|
Tangent(me; U1,V1,U2,V2: Real from Standard;
|
|
TgFirst,TgLast,NormFirst,NormLast: out Vec from gp)
|
|
|
|
---Purpose: Returns the tangent vector at the section,
|
|
-- at the beginning and the end of the section, and
|
|
-- returns the normal (of the surfaces) at
|
|
-- these points.
|
|
|
|
;
|
|
|
|
|
|
-- methodes hors template (en plus du create)
|
|
|
|
Section(me: in out; Param: Real from Standard;
|
|
U1,V1,U2,V2: Real from Standard;
|
|
Pdeb,Pfin: out Real from Standard;
|
|
C: out Lin from gp)
|
|
---Purpose: Utile pour une visu rapide et approximative de la surface.
|
|
is static;
|
|
|
|
--- Pour les approximations
|
|
|
|
IsRational(me) returns Boolean
|
|
---Purpose: Returns if the section is rationnal
|
|
is static;
|
|
|
|
GetSectionSize(me) returns Real
|
|
---Purpose: Returns the length of the maximum section
|
|
is static;
|
|
|
|
GetMinimalWeight(me; Weigths : out Array1OfReal from TColStd)
|
|
---Purpose: Compute the minimal value of weight for each poles
|
|
-- of all sections.
|
|
is static;
|
|
|
|
NbIntervals(me; S : Shape from GeomAbs) returns Integer
|
|
---Purpose: Returns the number of intervals for continuity
|
|
-- <S>. May be one if Continuity(me) >= <S>
|
|
is static;
|
|
|
|
Intervals(me; T : in out Array1OfReal from TColStd;
|
|
S : Shape from GeomAbs)
|
|
---Purpose: Stores in <T> the parameters bounding the intervals
|
|
-- of continuity <S>.
|
|
--
|
|
-- The array must provide enough room to accomodate
|
|
-- for the parameters. i.e. T.Length() > NbIntervals()
|
|
is static;
|
|
|
|
GetShape(me: in out;
|
|
NbPoles : out Integer from Standard;
|
|
NbKnots : out Integer from Standard;
|
|
Degree : out Integer from Standard;
|
|
NbPoles2d : out Integer from Standard)
|
|
|
|
is static;
|
|
|
|
GetTolerance(me;
|
|
BoundTol, SurfTol, AngleTol : Real;
|
|
Tol3d : out Vector;
|
|
Tol1D : out Vector )
|
|
---Purpose: Returns the tolerance to reach in approximation
|
|
-- to respecte
|
|
-- BoundTol error at the Boundary
|
|
-- AngleTol tangent error at the Boundary
|
|
-- SurfTol error inside the surface.
|
|
is static;
|
|
|
|
Knots(me: in out; TKnots: out Array1OfReal from TColStd)
|
|
is static;
|
|
|
|
|
|
Mults(me: in out; TMults: out Array1OfInteger from TColStd)
|
|
is static;
|
|
|
|
|
|
Section(me: in out ; P: Point from Blend;
|
|
Poles : out Array1OfPnt from TColgp;
|
|
Poles2d : out Array1OfPnt2d from TColgp;
|
|
Weigths : out Array1OfReal from TColStd)
|
|
is static;
|
|
|
|
|
|
|
|
Section(me: in out ; P: Point from Blend;
|
|
Poles : out Array1OfPnt from TColgp;
|
|
DPoles : out Array1OfVec from TColgp;
|
|
Poles2d : out Array1OfPnt2d from TColgp;
|
|
DPoles2d : out Array1OfVec2d from TColgp;
|
|
Weigths : out Array1OfReal from TColStd;
|
|
DWeigths : out Array1OfReal from TColStd)
|
|
---Purpose: Used for the first and last section
|
|
returns Boolean from Standard
|
|
is redefined;
|
|
|
|
Section(me: in out ; P: Point from Blend;
|
|
Poles : out Array1OfPnt from TColgp;
|
|
DPoles : out Array1OfVec from TColgp;
|
|
D2Poles : out Array1OfVec from TColgp;
|
|
Poles2d : out Array1OfPnt2d from TColgp;
|
|
DPoles2d : out Array1OfVec2d from TColgp;
|
|
D2Poles2d : out Array1OfVec2d from TColgp;
|
|
Weigths : out Array1OfReal from TColStd;
|
|
DWeigths : out Array1OfReal from TColStd;
|
|
D2Weigths : out Array1OfReal from TColStd)
|
|
---Purpose: Used for the first and last section
|
|
returns Boolean from Standard
|
|
is redefined;
|
|
|
|
|
|
Resolution(me;
|
|
IC2d : Integer from Standard;
|
|
Tol : Real from Standard;
|
|
TolU, TolV : out Real from Standard);
|
|
|
|
Set(me : in out;
|
|
Dist1 : Real from Standard;
|
|
Angle : Real from Standard;
|
|
Choix : Integer from Standard)
|
|
---Purpose: Sets the distances and the angle.
|
|
is static;
|
|
|
|
fields
|
|
surf1 : HSurface from Adaptor3d;
|
|
surf2 : HSurface from Adaptor3d;
|
|
curv : HCurve from Adaptor3d;
|
|
tcurv : HCurve from Adaptor3d;
|
|
|
|
param : Real from Standard;
|
|
dist1 : Real from Standard;
|
|
angle : Real from Standard;
|
|
tgang : Real from Standard;
|
|
|
|
nplan : Vec from gp;
|
|
pt1 : Pnt from gp;
|
|
tsurf1 : Vec from gp;
|
|
pt2 : Pnt from gp;
|
|
FX : Vector from math;
|
|
DX : Matrix from math;
|
|
|
|
istangent: Boolean from Standard;
|
|
tg1 : Vec from gp;
|
|
tg12d : Vec2d from gp;
|
|
tg2 : Vec from gp;
|
|
tg22d : Vec2d from gp;
|
|
|
|
choix : Integer from Standard;
|
|
distmin : Real from Standard;
|
|
|
|
|
|
end ChAsym;
|