EgtInterface 1.6o3 :
- aggiornamenti vari.
This commit is contained in:
+36
-1
@@ -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 ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user