mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 09:30:48 +08:00
113 lines
3.4 KiB
Plaintext
Executable File
113 lines
3.4 KiB
Plaintext
Executable File
-- File: AppDef_MyLineTool.cdl
|
|
-- Created: Wed Jan 20 16:20:46 1993
|
|
-- Author: Laurent PAINNOT
|
|
-- <lpa@sdsun1>
|
|
---Copyright: Matra Datavision 1993
|
|
|
|
|
|
|
|
|
|
class MyLineTool from AppDef
|
|
|
|
uses MultiLine from AppDef,
|
|
Pnt from gp,
|
|
Pnt2d from gp,
|
|
Vec from gp,
|
|
Vec2d from gp,
|
|
Array1OfPnt from TColgp,
|
|
Array1OfPnt2d from TColgp,
|
|
Array1OfVec from TColgp,
|
|
Array1OfVec2d from TColgp,
|
|
Status from Approx
|
|
|
|
is
|
|
|
|
|
|
FirstPoint(myclass; ML: MultiLine) returns Integer;
|
|
---Purpose: Returns the first index of multipoints of the MultiLine.
|
|
|
|
|
|
LastPoint(myclass; ML: MultiLine) returns Integer;
|
|
---Purpose: Returns the last index of multipoints of the MultiLine.
|
|
|
|
|
|
|
|
NbP2d(myclass; ML: MultiLine) returns Integer;
|
|
---Purpose: Returns the number of 2d points of a MultiLine.
|
|
|
|
|
|
NbP3d(myclass; ML: MultiLine) returns Integer;
|
|
---Purpose: Returns the number of 3d points of a MultiLine.
|
|
|
|
|
|
Value(myclass; ML: MultiLine; MPointIndex: Integer;
|
|
tabPt: out Array1OfPnt);
|
|
---Purpose: returns the 3d points of the multipoint <MPointIndex>
|
|
-- when only 3d points exist.
|
|
|
|
|
|
Value(myclass; ML: MultiLine; MPointIndex: Integer;
|
|
tabPt2d: out Array1OfPnt2d);
|
|
---Purpose: returns the 2d points of the multipoint <MPointIndex>
|
|
-- when only 2d points exist.
|
|
|
|
|
|
Value(myclass; ML: MultiLine; MPointIndex: Integer;
|
|
tabPt: out Array1OfPnt; tabPt2d: out Array1OfPnt2d);
|
|
---Purpose: returns the 3d and 2d points of the multipoint
|
|
-- <MPointIndex>.
|
|
|
|
|
|
Tangency(myclass; ML: MultiLine; MPointIndex: Integer;
|
|
tabV: out Array1OfVec) returns Boolean;
|
|
---Purpose: returns the 3d points of the multipoint <MPointIndex>
|
|
-- when only 3d points exist.
|
|
|
|
|
|
Tangency(myclass; ML: MultiLine; MPointIndex: Integer;
|
|
tabV2d: out Array1OfVec2d) returns Boolean;
|
|
---Purpose: returns the 2d tangency points of the multipoint
|
|
-- <MPointIndex> only when 2d points exist.
|
|
|
|
|
|
Tangency(myclass; ML: MultiLine; MPointIndex: Integer;
|
|
tabV: out Array1OfVec; tabV2d: out Array1OfVec2d)
|
|
returns Boolean;
|
|
---Purpose: returns the 3d and 2d points of the multipoint
|
|
-- <MPointIndex>.
|
|
|
|
|
|
Curvature(myclass; ML: MultiLine; MPointIndex: Integer;
|
|
tabV: out Array1OfVec) returns Boolean;
|
|
---Purpose: returns the 3d curvatures of the multipoint <MPointIndex>
|
|
-- when only 3d points exist.
|
|
|
|
|
|
Curvature(myclass; ML: MultiLine; MPointIndex: Integer;
|
|
tabV2d: out Array1OfVec2d) returns Boolean;
|
|
---Purpose: returns the 2d curvatures of the multipoint
|
|
-- <MPointIndex> only when 2d points exist.
|
|
|
|
|
|
Curvature(myclass; ML: MultiLine; MPointIndex: Integer;
|
|
tabV: out Array1OfVec; tabV2d: out Array1OfVec2d)
|
|
returns Boolean;
|
|
---Purpose: returns the 3d and 2d curvatures of the multipoint
|
|
-- <MPointIndex>.
|
|
|
|
|
|
|
|
WhatStatus(myclass; ML: MultiLine; I1, I2: Integer)
|
|
returns Status from Approx;
|
|
---Purpose: returns NoPointsAdded
|
|
|
|
MakeMLBetween(myclass; ML: MultiLine; I1, I2: Integer;
|
|
NbPMin: Integer)
|
|
returns MultiLine;
|
|
---Purpose: Is never called in the algorithms.
|
|
-- Nothing is done.
|
|
---C++: return &
|
|
|
|
|
|
end MyLineTool;
|