//---------------------------------------------------------------------------- // EgalTech 2014-2014 //---------------------------------------------------------------------------- // File : API_ModifyCurve.cpp Data : 03.10.14 Versione : 1.5i5 // Contenuto : Funzioni di modifica delle curve per API. // // // // Modifiche : 03.10.14 DS Creazione modulo. // // //---------------------------------------------------------------------------- //--------------------------- Include ---------------------------------------- #include "stdafx.h" #include "API.h" #include "/EgtDev/Include/EInAPI.h" #include "/EgtDev/Include/EXeExecutor.h" using namespace std ; //---------------------------------------------------------------------------- BOOL __stdcall EgtInvertCurve( int nId) { INTVECTOR vIds ; vIds.push_back( nId) ; return ( ExeInvertCurve( vIds) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtOffsetCurve( int nId, double dDist, int nType) { return ( ExeOffsetCurve( nId, dDist, nType) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtChangeClosedCurveStartPoint( int nId, const double ptP[3], int nRefType) { return ( ExeChangeClosedCurveStartPoint( nId, ptP, nRefType) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtModifyCurveStartPoint( int nId, const double ptP[3], int nRefType) { return ( ExeModifyCurveStartPoint( nId, ptP, nRefType) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtModifyCurveEndPoint( int nId, const double ptP[3], int nRefType) { return ( ExeModifyCurveEndPoint( nId, ptP, nRefType) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtModifyCurveExtrusion( int nId, const double vtExtr[3], int nRefType) { INTVECTOR vIds ; vIds.push_back( nId) ; return ( ExeModifyCurveExtrusion( vIds, vtExtr, nRefType) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtModifyCurveThickness( int nId, double dThick) { INTVECTOR vIds ; vIds.push_back( nId) ; return ( ExeModifyCurveThickness( vIds, dThick) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtTrimCurveStartAtLen( int nId, double dLen) { return ( ExeTrimCurveStartAtLen( nId, dLen) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtTrimCurveEndAtLen( int nId, double dLen) { return ( ExeTrimCurveEndAtLen( nId, dLen) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtTrimCurveStartAtParam( int nId, double dPar) { return ( ExeTrimCurveStartAtParam( nId, dPar) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtTrimCurveEndAtParam( int nId, double dPar) { return ( ExeTrimCurveEndAtParam( nId, dPar) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtTrimCurveStartEndAtParam( int nId, double dParS, double dParE) { return ( ExeTrimCurveStartEndAtParam( nId, dParS, dParE) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtExtendCurveStartByLen( int nId, double dLen) { return ( ExeExtendCurveStartByLen( nId, dLen) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtExtendCurveEndByLen( int nId, double dLen) { return ( ExeExtendCurveEndByLen( nId, dLen) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- BOOL __stdcall EgtTrimExtendCurveByLen( int nId, double dLen, const double ptNear[3], int nRefType) { return ( ExeTrimExtendCurveByLen( nId, dLen, ptNear, nRefType) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- int __stdcall EgtSplitCurve( int nId, int nParts) { return ExeSplitCurve( nId, nParts) ; } //---------------------------------------------------------------------------- int __stdcall EgtSplitCurveAtPoint( int nId, const double ptOn[3], int nRefType) { return ExeSplitCurveAtPoint( nId, ptOn, nRefType) ; } //------------------------------------------------------------------------------- BOOL __stdcall EgtModifyCurveCircleCPN( int nId, const double ptOn[3], int nRefType) { return ( ExeModifyCurveCircleCPN( nId, ptOn, nRefType) ? TRUE : FALSE) ; } //------------------------------------------------------------------------------- BOOL __stdcall EgtModifyCurveArcRadius( int nId, double dRad) { return ( ExeModifyCurveArcRadius( nId, dRad) ? TRUE : FALSE) ; } //------------------------------------------------------------------------------- BOOL __stdcall EgtModifyCurveArcC2PN( int nId, const double ptEnd[3], int nRefType) { return ( ExeModifyCurveArcC2PN( nId, ptEnd, nRefType) ? TRUE : FALSE) ; } //------------------------------------------------------------------------------- BOOL __stdcall EgtModifyCurveArc3P( int nId, const double ptMid[3], int nRefType) { return ( ExeModifyCurveArc3P( nId, ptMid, nRefType) ? TRUE : FALSE) ; } //------------------------------------------------------------------------------- int __stdcall EgtExplodeCurveCompo( int nId, int* pnCount) { return ExeExplodeCurveCompo( nId, pnCount) ; } //------------------------------------------------------------------------------- int __stdcall EgtApproxCurveArc( int nId, double dLinTol) { return ExeApproxCurveArc( nId, dLinTol) ; } //------------------------------------------------------------------------------- int __stdcall EgtApproxCurveBezier( int nId, BOOL bArcsVsLines, double dLinTol) { return ExeApproxCurveBezier( nId, ( bArcsVsLines != FALSE), dLinTol) ; }