EgtInterface 1.6o3 :

- aggiornamenti vari.
This commit is contained in:
Dario Sassi
2016-03-29 09:09:13 +00:00
parent 46bc4842ff
commit 33603e5961
4 changed files with 98 additions and 1 deletions
+36 -1
View File
@@ -213,11 +213,46 @@ __stdcall EgtCurveLengthAtPoint( int nId, const double ptOn[3], double dExtend,
return ( ExeCurveLengthAtPoint( nId, ptOn, dExtend, pdLen) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtCurveIsClosed( int nId)
{
return ( ExeCurveIsClosed( nId) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtCurveIsFlat( int nId, double vtN[3], double* pdDist)
{
if ( vtN == nullptr || pdDist == nullptr)
return FALSE ;
Plane3d Plane ;
if ( ! ExeCurveIsFlat( nId, Plane))
return FALSE ;
VEC_FROM_3D( vtN, Plane.vtN)
*pdDist = Plane.dDist ;
return true ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtCurveAreaXY( int nId, double* pdArea)
{
return ( ExeCurveAreaXY( nId, pdArea) ? TRUE : FALSE) ;
return ( ExeCurveAreaXY( nId, *pdArea) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtCurveArea( int nId, double vtN[3], double* pdDist, double* pdArea)
{
if ( vtN == nullptr || pdDist == nullptr || pdArea == nullptr)
return FALSE ;
Plane3d Plane ;
if ( ! ExeCurveArea( nId, Plane, *pdArea))
return FALSE ;
VEC_FROM_3D( vtN, Plane.vtN)
*pdDist = Plane.dDist ;
return true ;
}
//----------------------------------------------------------------------------