EgtInterface 1.6t3 :

- aggiunta EgtCurveMinAreaRectangleXY.
This commit is contained in:
Dario Sassi
2016-08-25 16:00:20 +00:00
parent 2a149990be
commit 5d3e2a1bea
2 changed files with 30 additions and 1 deletions
+30 -1
View File
@@ -290,11 +290,40 @@ __stdcall EgtCurveThickness( int nId, double* pdThick)
//----------------------------------------------------------------------------
BOOL
__stdcall EgtCurveSelfIntersCount( int nId, int* pnCount)
__stdcall EgtCurveSelfIntersCount( int nId, int* pnCount)
{
return ( ExeCurveSelfIntersCount( nId, pnCount) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtCurveMinAreaRectangleXY( int nId, int nRefId,
double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3], double* pdDimX, double* pdDimY)
{
// eseguo calcoli
Frame3d frRect ;
double dDimX, dDimY ;
if ( ! ExeCurveMinAreaRectangleXY( nId, nRefId, frRect, dDimX, dDimY))
return FALSE ;
// assegno l'origine
if ( ptOrig != nullptr)
VEC_FROM_3D( ptOrig, frRect.Orig())
// assegno il versore X
if ( vtX != nullptr)
VEC_FROM_3D( vtX, frRect.VersX())
// assegno il versore Y
if ( vtY != nullptr)
VEC_FROM_3D( vtY, frRect.VersY())
// assegno il versore Z
if ( vtZ != nullptr)
VEC_FROM_3D( vtZ, frRect.VersZ())
if ( pdDimX != nullptr)
*pdDimX = dDimX ;
if ( pdDimY != nullptr)
*pdDimY = dDimY ;
return TRUE ;
}
//----------------------------------------------------------------------------
int
__stdcall EgtClosedCurveClassify( int nId1, int nId2)