mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-15 12:35:51 +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.
127 lines
4.9 KiB
Plaintext
127 lines
4.9 KiB
Plaintext
-- Created on: 1992-09-23
|
|
-- Created by: Gilles DEBARBOUILLE
|
|
-- 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.
|
|
|
|
generic class Tool from MAT (Item as any)
|
|
|
|
|
|
--- Purpose : Set of the methods useful for the MAT's computation.
|
|
-- Warning : To use the algorithm MAT, it's necessary to use four
|
|
-- indexed sets (Array,Sequence ...)
|
|
-- One set contains the geometric definitions of
|
|
-- the simple composants of the Figure.
|
|
-- An other set contains the geometric definitions of
|
|
-- the bisectors.
|
|
-- An other set contains the geometric definitions of
|
|
-- the points created during the MAT's computation.
|
|
-- An other set contains the geometric definitions of
|
|
-- the Tangent Vectors to the edge's extremitis.
|
|
--
|
|
uses
|
|
Bisector from MAT
|
|
|
|
is
|
|
|
|
Create returns Tool from MAT;
|
|
|
|
NumberOfItems(me) returns Integer
|
|
--- Purpose : Returns the Number of Items .
|
|
is static;
|
|
|
|
ToleranceOfConfusion(me) returns Real
|
|
---Purpose: Returns tolerance to test the confusion of two points.
|
|
is static;
|
|
|
|
FirstPoint(me ; anitem : Integer;
|
|
dist : out Real ) returns Integer
|
|
--- Purpose : Creates the point at the origin of the bisector between
|
|
-- anitem and the previous item.
|
|
-- dist is the distance from the FirstPoint to <anitem>.
|
|
-- Returns an index.
|
|
is static;
|
|
|
|
TangentBefore(me ; anitem : Integer) returns Integer
|
|
--- Purpose : Create the Tangent at the end of the Item defined
|
|
-- by <anitem>. Returns the index of this vector in
|
|
-- <theGeomVecs>
|
|
is static;
|
|
|
|
TangentAfter(me ; anitem : Integer) returns Integer
|
|
--- Purpose : Create the Reversed Tangent at the origin of the Item
|
|
-- defined by <anitem>. Returns the index of this vector in
|
|
-- <theGeomVecs>
|
|
is static;
|
|
|
|
Tangent(me ; bisector : Integer ) returns Integer
|
|
--- Purpose : Create the Tangent at the end of the bisector defined
|
|
-- by <bisector>. Returns the index of this vector in
|
|
-- <theGeomVecs>
|
|
is static;
|
|
|
|
CreateBisector(me : in out ; abisector : mutable Bisector from MAT)
|
|
--- Purpose : Create the geometric bisector defined by <abisector>.
|
|
is static;
|
|
|
|
TrimBisector(me : in out ;
|
|
abisector : mutable Bisector from MAT)
|
|
--- Purpose : Trim the geometric bisector by the <firstparameter>
|
|
-- of <abisector>.
|
|
-- If the parameter is out of the bisector, Return False.
|
|
-- else Return True.
|
|
returns Boolean is static;
|
|
|
|
TrimBisector(me : in out ;
|
|
abisector : mutable Bisector from MAT ;
|
|
apoint : Integer)
|
|
--- Purpose : Trim the geometric bisector by the point of index
|
|
-- <apoint> in <theGeomPnts>.
|
|
-- If the point is out of the bisector, Return False
|
|
-- else Return True.
|
|
returns Boolean is static;
|
|
|
|
IntersectBisector(me : in out ;
|
|
bisectorone : mutable Bisector from MAT ;
|
|
bisectortwo : mutable Bisector from MAT ;
|
|
intpnt : in out Integer)
|
|
--- Purpose : Computes the point of intesection between the
|
|
-- bisectors defined by <bisectorone> and
|
|
-- <bisectortwo> .
|
|
-- If this point exists, <intpnt> is its index
|
|
-- in <theGeomPnts> and Return the distance of the point
|
|
-- from the edges separated by the bisectors else
|
|
-- Returns <RealLast>.
|
|
returns Real is static;
|
|
|
|
Distance(me;
|
|
abisector : Bisector from MAT;
|
|
param1 : Real;
|
|
param2 : Real)
|
|
---Purpose: Returns the distance between the two points designed
|
|
-- by their parameters on <abisector>.
|
|
returns Real is static;
|
|
|
|
Dump(me ;
|
|
bisector : Integer ;
|
|
erease : Integer)
|
|
--- Purpose : display informations about the bisector defined by
|
|
-- <bisector>.
|
|
is static;
|
|
|
|
end Tool;
|
|
|
|
|
|
|
|
|