EgtInterface 2.3d4 :

- aggiunte interfacce per EgtCreateCurveCompoByInterpolation e EgtCreateCurveCompoByApproximation
- aggiunta interfaccia per EgtAdjustOperationPhase.
This commit is contained in:
DarioS
2021-04-19 15:07:28 +02:00
parent 78f05e39be
commit 723f2174b6
3 changed files with 29 additions and 0 deletions
+22
View File
@@ -243,6 +243,28 @@ __stdcall EgtCreateCurveCompoByReorder( int nParentId, int nNumId, const int nId
return ExeCreateCurveCompoByReorder( nParentId, vIds, ptNear, ( bErase != FALSE), nRefType, nullptr) ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtCreateCurveCompoByInterpolation( int nParentId, int nP, const double ptPs[], int nType, int nRefType)
{
PolyLine PL ;
for ( int i = 0 ; i < nP ; ++i) {
PL.AddUPoint( 0, Point3d( ptPs[3*i], ptPs[3*i+1], ptPs[3*i+2])) ;
}
return ExeCreateCurveCompoByInterpolation( nParentId, PL, nType, nRefType) ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtCreateCurveCompoByApproximation( int nParentId, int nP, const double ptPs[], int nType, double dLinTol, int nRefType)
{
PolyLine PL ;
for ( int i = 0 ; i < nP ; ++i) {
PL.AddUPoint( 0, Point3d( ptPs[3*i], ptPs[3*i+1], ptPs[3*i+2])) ;
}
return ExeCreateCurveCompoByApproximation( nParentId, PL, nType, dLinTol, nRefType) ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtCreateCurveCompoFromPoints( int nParentId, int nP, const double ptPs[], int nRefType)