73 Commits

Author SHA1 Message Date
Dario Sassi 5fdd675a10 EgtInterface 3.1e2 :
- ricompilazione con cambio versione.
2026-05-12 16:36:16 +02:00
Dario Sassi 3553abd8cb EgtInterface 3.1e1 :
- ricompilazione con cambio versione.
2026-05-07 12:24:26 +02:00
Dario Sassi 245f6af29d EgtInterface 3.1d2 :
- ricompilazione con cambio versione.
2026-04-19 10:59:54 +02:00
Dario Sassi ca2e0e43f9 EgtInterface 3.1d1 :
- aggiunta interfaccia per funzione EgtRedraw.
2026-04-08 19:30:52 +02:00
Dario Sassi 75d251f561 EgtInterface :
- aggiornata interfaccia di EgtSurfBezierParamsFromPoint
- aggiunta interfaccia di EgtSurfBezierGetPointNrmD1.
2026-03-13 13:35:00 +01:00
Daniele Bariletti 9d89ccb1d7 EgtInterface :
- cabmio restituzione valori per ExeSurfBezParamsFromPoint.
2026-03-12 18:14:34 +01:00
Daniele Bariletti dc18e160e6 EgtInterface :
- aggiunte funzioni per le isoparametriche di una bezier.
2026-03-11 16:09:30 +01:00
Daniele Bariletti 829381c5be EgtInterface 3.1c3 :
- cambio versione.
2026-03-10 17:37:26 +01:00
Daniele Bariletti cdc79945e1 EgtInterface :
- aggiunta funzione EgtSurfBezParamsFromPoint.
2026-03-10 17:36:24 +01:00
Dario Sassi 644081c6fa EgtInterface 3.1c2 :
- ricompilazione con cambio versione.
2026-03-05 11:20:20 +01:00
Dario Sassi 9516b56b5a EgtInterface 3.1c1 :
- aggiunta interfaccia per EgtChangePreviewMachiningToolShow.
2026-03-03 18:35:54 +01:00
Dario Sassi 59f2cd1c4d EgtInterface 3.1b1 :
- ricompilazione con cambio versione.
2026-02-24 08:38:35 +01:00
Dario Sassi f39a48ec52 EgtInterface 3.1a1 :
- ricompilazione con cambio major version.
2026-01-02 12:34:39 +01:00
Dario Sassi 724536202a EgtInterface 2.7l2 :
- ricompilazione con cambio versione.
2025-12-19 09:48:38 +01:00
Dario Sassi 8c98da8f78 EgtInterface 2.7l1 :
- ricompilazione con cambio versione.
2025-12-09 08:18:34 +01:00
Dario Sassi ad06fb63ae EgtInterface 2.7k2 :
- aggiunta interfaccia per funzione EgtGetAllCurrAxesNames.
2025-11-07 18:00:05 +01:00
Dario Sassi c73d3d1a86 EgtInterface 2.7k1 :
- modifiche a funzioni EgtSetlevel, EgtSetMode e EgtSetStatus per mantenere inalterata l'interfaccia
- ricompilazione per passaggio a C++ 20.
2025-11-01 17:40:53 +01:00
Dario Sassi 62097608b0 EgtInterface :
- aggiornamento interfaccia di EgtSaveObjToFile.
2025-10-29 19:32:18 +01:00
Dario Sassi 05b0602bd7 EgtInterface 2.7j3 :
- aggiornato prototipo di EgtSaveMachGroupToFile per permettere un nuovo parametro (identificativi di oggetti aggiuntivi).
2025-10-28 15:21:59 +01:00
Dario Sassi 9dffc04234 EgtInterface :
- aggiunta interfaccia per EgtBeamCalcAllSolids e EgtBeamShowAllSolids.
2025-10-13 09:48:08 +02:00
Dario Sassi a52a9c5edb EgtInterface :
- adattamenti per modifica nomi puntatori a funzione.
2025-10-13 08:50:00 +02:00
Dario Sassi 3b20d2a487 EgtInterface 2.7j2 :
- aggiornamento prototipi per assemblaggi BTL.
2025-10-11 10:13:38 +02:00
Dario Sassi 21ff1216af EgtInterface 2.7j1 :
- aggiunte interfacce per funzioni EgtCopyEx e EgtCopyGlobEx.
2025-10-08 18:33:33 +02:00
Daniele Bariletti 2a95bc7c31 EgtInterface :
- aggiunta funzione per creare il loop di un triangolo di una trimesh.
2025-09-17 11:28:54 +02:00
Dario Sassi 5f82731b02 EgtInterface :
- aggiornamento a EgtGetCalcPositions per conservare interfaccia invariata nonostante parametro nStat non più usato.
2025-09-14 23:03:53 +02:00
Dario Sassi c6fc09bfb6 EgtInterface 2.7i1 :
- ricompilazione con cambio versione.
2025-09-10 08:52:35 +02:00
Dario Sassi 90e29084c7 EgtInterface :
- aggiunti prototipi EgtSetShowSurfBezierTol e EgtGetShowSurfBezierTol.
2025-08-24 19:15:23 +02:00
Dario Sassi e85ade1d90 EgtInterface 2.7h1 :
- ricompilazione con cambio versione.
2025-08-22 11:53:20 +02:00
Dario Sassi df0b822c8c EgtInterface 2.7g1 :
- ricompilazione con cambio versione.
2025-07-02 19:50:44 +02:00
Dario Sassi 42251eb37d EgtInterface 2.7f2 :
- ricompilazione con cambio versione.
2025-06-26 09:49:37 +02:00
Dario Sassi 1447d1d049 EgtInterface 2.7f1 :
- aggiunta interfaccia per EgtSimEnableToolTipTrace.
2025-06-08 19:22:02 +02:00
Dario Sassi 0b1ba8c557 EgtInterface 2.7e2 :
- aggiornamento interfacce.
2025-05-12 09:49:45 +02:00
Dario Sassi 119586e54e EgtInterface 2.7d3 :
- ricompilazione con cambio versione.
2025-04-21 11:20:39 +02:00
Dario Sassi 47f64fca72 EgtInterface 2.7d1 :
- ricompilazione con cambio versione.
2025-04-07 11:55:18 +02:00
Daniele Bariletti 303489452a - aggiunta interfaccia per EgtCopyCompoSubCurve e EgtCopyParamRange.
- cambio versione.
2025-03-27 10:20:45 +01:00
Dario Sassi e9615222be EgtInterface 2.7c3 :
- ricompilazione con cambio versione.
2025-03-26 11:30:30 +01:00
Dario Sassi 92769d6783 EgtInterface 2.7c2 :
- aggiunta interfaccia funzione EgtGetAllInfo
- piccola miglioria accodamento stringhe con separatore '\n'.
2025-03-22 18:07:41 +01:00
Dario Sassi 7659e40140 EgtInterface 2.7c1 :
- ricompilazione con cambio versione.
2025-03-13 19:19:16 +01:00
Dario Sassi d65f563ea9 EgtInterface 2.7b3 :
- aggiunta interfaccia per funzione EgtImportPly.
2025-03-02 19:44:54 +01:00
Dario Sassi f1f0f7198f EgtInterface 2.7b1 :
- ricompilazione con cambio versione.
2025-02-28 12:12:27 +01:00
Dario Sassi 74a00d54a5 EgtInterface 2.7a4 :
- aggiunta interfaccia per funzione EgtSetFixtureLink.
2025-01-31 09:01:32 +01:00
SaraP 60772489fb EgtInterface 2.7a2 :
- aggiunte interfacce per gestione camera prospettica.
2025-01-23 10:11:33 +01:00
Dario Sassi 4d3a19c18a EgtInterface 2.7a1 :
- cambio annuale di versione
- compilazione 32bit senza più limiti per Windows XP.
2025-01-09 18:01:25 +01:00
Dario Sassi 9b30bdfdda EgtInterface 2.6l3 :
- aggiornamento interfaccia funzione EgtImport3MF.
2024-12-17 10:24:40 +01:00
Dario Sassi f426e04657 EgtInterface 2.6l1 :
- aggiunta interfaccia per funzione EgtImportOff.
2024-11-29 18:57:48 +01:00
Dario Sassi 49364bc33c EgtInterface 2.6j4 :
- aggiunta interfaccia per funzione EgtSetFixtureMobile.
2024-10-31 18:33:21 +01:00
Dario Sassi ebfbd5e8f0 EgtInterface :
- aggiunta interfaccia per funzione EgtKeepAllDispAxes.
2024-10-16 19:50:41 +02:00
Dario Sassi afd3000a27 EgtInterface 2.6j3 :
- aggiunte in interfaccia funzioni EgtMoveDispAxis, EgtRemoveDispAxis, EgtGetAxisType e EgtGetAxisDir.
2024-10-15 17:37:13 +02:00
Dario Sassi 875656bbed EgtInterface 2.6j1 :
- aggiunta interfaccia per EgtSurfTmSetFaceColor
- modificata interfaccia per EgtSetMark.
2024-10-01 15:23:28 +02:00
Dario Sassi 8ccd525a3d EgtInterface 2.6i1 :
- ricompilazione con cambio versione.
2024-09-23 13:05:40 +02:00
Dario Sassi f97734d654 EgtInterface :
- modifica a interfaccia di EgtSetMarkAttribs (ora con due colori).
2024-08-22 09:15:20 +02:00
Dario Sassi d67c660e60 EgtInterface 2.6h2 :
- aggiunta interfaccia per funzione EgtSurfFrChunkCenter.
2024-08-21 14:40:58 +02:00
Dario Sassi a9ac0026e1 EgtInterface 2.6g5 :
- ricompilazione con cambio versione.
2024-07-18 20:20:50 +02:00
Dario Sassi 7b7b2f9726 EgtInterface 2.6g1 :
- ricompilazione con cambio versione.
2024-07-09 11:16:32 +02:00
Dario Sassi 039a6d731a EgtInterface :
- aggiunte interfacce per EgtCurveIsACircle, EgtCurveIsARectangle e EgtCurveIsATrapezoid.
2024-06-26 17:39:55 +02:00
Dario Sassi f93b500ce4 EgtInterface 2.6f4 :
- ricompilazione con cambio versione.
2024-06-26 08:44:45 +02:00
Dario Sassi 30b7624a78 EgtInterface 2.6f3 :
- ricompilazione con cambio versione.
2024-06-13 08:03:17 +02:00
Dario Sassi 22def7d324 EgtInterface 2.6f1 :
- ricompilazione con cambio versione.
2024-06-07 19:01:11 +02:00
Dario Sassi ac992fd113 EgtInterface 2.6e6 :
- aggiunta interfaccia per funzione EgtGetPreviewMachiningToolStepCount.
2024-05-30 15:22:18 +02:00
Dario Sassi d43f30c1f1 EgtInterface 2.6e1 :
- ricompilazione con cambio versione.
2024-05-06 09:05:52 +02:00
Dario Sassi c36fea7de7 EgtInterface 2.6d4 :
- aggiunta interfaccia per funzione EgtCreateArc2PR.
2024-04-19 17:52:07 +02:00
Dario Sassi fa91e49927 EgtInterface :
- aggiornato prototipo di EgtAdvancedImport per il nuovo parametro nFlag.
2024-04-13 17:22:04 +02:00
Dario Sassi 2261a9f4d1 EgtInterface 2.6d2 :
- aggiunta interfaccia per EgtGetNetHwKey.
2024-04-09 14:50:35 +02:00
Dario Sassi 5580700af2 EgtInterface 2.6d1 :
- modifiche a interfaccia di EgtCreateSurfTmSwept.
2024-04-05 16:53:27 +02:00
Dario Sassi 2cd376bbd8 EgtInterface 2.6c3 :
- aggiunta interfaccia EgtGetCalcAnglesEx
- modificate interfacce EgtGetCalcPositions, EgtGetCalcTipFromPositions e EgtGetCalcToolDirFromAngles.
2024-03-27 16:20:57 +01:00
Dario Sassi 4cc9be61d7 EgtInterface :
- aggiunte interfacce per EgtCreateAngularDimension, EgtCreateAngularDimensionEx, EgtCreateDiametralDimension e EgtCreateRadialDimension.
2024-03-14 20:03:38 +01:00
Dario Sassi f1fd976d13 EgtInterface :
- aggiunte interfacce per EgtSurfTmGetVertex, EgtSurfTmGetNearestVertex, EgtSurfTmMoveVertex e EgtSurfTmMoveFacet.
2024-03-13 09:25:47 +01:00
Dario Sassi 9d1a064611 EgtInterface 2.6c2 :
- ricompilazione con cambio versione.
2024-03-10 10:27:19 +01:00
Dario Sassi 97e1a108ba EgtInterface 2.6b3 :
- ricompilazione con cambio versione.
2024-02-16 08:48:22 +01:00
Dario Sassi 2d0397c826 EgtInterface 2.6b2 :
- ricompilazione con cambio versione.
2024-02-13 14:36:53 +01:00
Dario Sassi 34a116cfe9 EgtInterface 2.6a2 :
- aggiunta interfaccia per funzione EgtGetKeyAssLeftDays (numero di giorni mancanti al termine dell'assistenza).
2024-01-25 18:21:37 +01:00
Dario Sassi f9d1746fa8 EgtInterface :
- aggiunta interfaccia di funzione EgtChangeMachGroupName.
2024-01-16 19:43:28 +01:00
Dario Sassi e632c3be1c EgtInterface 2.6a1 :
- ricompilazione con cambio versione.
2024-01-16 15:51:29 +01:00
17 changed files with 630 additions and 107 deletions
+18 -4
View File
@@ -194,6 +194,20 @@ __stdcall EgtBeamEnableProcess( int nGeomId, BOOL bEnable, BOOL bUpdate)
return ( ExeBeamEnableProcess( nGeomId, ( bEnable != FALSE), ( bUpdate != FALSE)) ? TRUE : FALSE) ; return ( ExeBeamEnableProcess( nGeomId, ( bEnable != FALSE), ( bUpdate != FALSE)) ? TRUE : FALSE) ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtBeamCalcAllSolids( BOOL bShow, BOOL bRecalc)
{
return ( ExeBeamCalcAllSolids( ( bShow != FALSE), ( bRecalc != FALSE)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtBeamShowAllSolids( BOOL bShow)
{
return ( ExeBeamShowAllSolids( ( bShow != FALSE)) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtBeamCalcSolid( int nPartId, BOOL bRecalc) __stdcall EgtBeamCalcSolid( int nPartId, BOOL bRecalc)
@@ -217,14 +231,14 @@ __stdcall EgtBeamShowSolid( int nPartId, BOOL bShow)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtBeamGetBuildingIsOn( void) __stdcall EgtBeamGetBuildingIsOn( int nAssGrpId)
{ {
return ( ExeBeamGetBuildingIsOn() ? TRUE : FALSE) ; return ( ExeBeamGetBuildingIsOn( nAssGrpId) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtBeamShowBuilding( BOOL bShow) __stdcall EgtBeamShowBuilding( int nAssGrpId, BOOL bShow)
{ {
return ( ExeBeamShowBuilding( ( bShow != FALSE)) ? TRUE : FALSE) ; return ( ExeBeamShowBuilding( nAssGrpId, ( bShow != FALSE)) ? TRUE : FALSE) ;
} }
+18 -4
View File
@@ -85,9 +85,23 @@ __stdcall EgtImportStl( const wchar_t* wsFilePath, double dScaleFactor)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtImport3MF( const wchar_t* wsFilePath) __stdcall EgtImportOff( const wchar_t* wsFilePath, double dScaleFactor)
{ {
return ( ExeImport3MF( wstrztoA( wsFilePath)) ? TRUE : FALSE) ; return ( ExeImportOff( wstrztoA( wsFilePath), dScaleFactor) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtImportPly( const wchar_t* wsFilePath, double dScaleFactor)
{
return ( ExeImportPly( wstrztoA( wsFilePath), dScaleFactor) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtImport3MF( const wchar_t* wsFilePath, int nFlag)
{
return ( ExeImport3MF( wstrztoA( wsFilePath), nFlag) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -106,9 +120,9 @@ __stdcall EgtAdvancedImportIsEnabled( void)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtAdvancedImport( const wchar_t* wsFilePath, double dLinToler) __stdcall EgtAdvancedImport( const wchar_t* wsFilePath, double dLinToler, int nFlag)
{ {
return ( ExeAdvancedImport( wstrztoA( wsFilePath), dLinToler) ? TRUE : FALSE) ; return ( ExeAdvancedImport( wstrztoA( wsFilePath), dLinToler, nFlag) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
+33 -1
View File
@@ -122,4 +122,36 @@ __stdcall EgtCreateAlignedDimension( int nParentId, const double ptP1[3], const
{ {
return ExeCreateAlignedDimension( nParentId, ptP1, ptP2, ptDim, wstrztoA( wsText), nRefType) ; return ExeCreateAlignedDimension( nParentId, ptP1, ptP2, ptDim, wstrztoA( wsText), nRefType) ;
} }
//-------------------------------------------------------------------------------
int
__stdcall EgtCreateAngularDimension( int nParentId, const double ptV[3], const double ptP1[3], const double ptP2[3],
const double ptDim[3], const wchar_t* wsText, int nRefType)
{
return ExeCreateAngularDimension( nParentId, ptV, ptP1, ptP2, ptDim, wstrztoA( wsText), nRefType) ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtCreateAngularDimensionEx( int nParentId, const double ptV1[3], const double ptP1[3],
const double ptV2[3], const double ptP2[3],
const double ptDim[3], const wchar_t* wsText, int nRefType)
{
return ExeCreateAngularDimensionEx( nParentId, ptV1, ptP1, ptV2, ptP2, ptDim, wstrztoA( wsText), nRefType) ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtCreateDiametralDimension( int nParentId, int nCrvId, const double ptDim[3],
const wchar_t* wsText, int nRefType)
{
return ExeCreateDiametralDimension( nParentId, nCrvId, ptDim, wstrztoA( wsText), nRefType) ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtCreateRadialDimension( int nParentId, int nCrvId, const double ptDim[3],
const wchar_t* wsText, int nRefType)
{
return ExeCreateRadialDimension( nParentId, nCrvId, ptDim, wstrztoA( wsText), nRefType) ;
}
+34
View File
@@ -129,14 +129,28 @@ int
__stdcall EgtCreateArc3P( int nParentId, const double ptP1[3], __stdcall EgtCreateArc3P( int nParentId, const double ptP1[3],
const double ptP2[3], const double ptP3[3], int nRefType) const double ptP2[3], const double ptP3[3], int nRefType)
{ {
if ( ptP1 == nullptr || ptP2 == nullptr || ptP3 == nullptr)
return GDB_ID_NULL ;
return ExeCreateArc3P( nParentId, ptP1, ptP2, ptP3, nRefType) ; return ExeCreateArc3P( nParentId, ptP1, ptP2, ptP3, nRefType) ;
} }
//-------------------------------------------------------------------------------
int
__stdcall EgtCreateArc2PR( int nParentId, const double ptStart[3], const double ptEnd[3],
double dRad, BOOL bCCW, int nRefType)
{
if ( ptStart == nullptr || ptEnd == nullptr)
return GDB_ID_NULL ;
return ExeCreateArc2PR( nParentId, ptStart, ptEnd, dRad, ( bCCW != FALSE), nRefType) ;
}
//------------------------------------------------------------------------------- //-------------------------------------------------------------------------------
int int
__stdcall EgtCreateArc2PD( int nParentId, const double ptStart[3], const double ptEnd[3], __stdcall EgtCreateArc2PD( int nParentId, const double ptStart[3], const double ptEnd[3],
double dDirSDeg, int nRefType) double dDirSDeg, int nRefType)
{ {
if ( ptStart == nullptr || ptEnd == nullptr)
return GDB_ID_NULL ;
return ExeCreateArc2PD( nParentId, ptStart, ptEnd, dDirSDeg, nRefType) ; return ExeCreateArc2PD( nParentId, ptStart, ptEnd, dDirSDeg, nRefType) ;
} }
@@ -146,6 +160,8 @@ __stdcall EgtCreateArc2PDEx( int nParentId, const double ptStart[3],
const double ptEnd[3], int nSep, int nId, const double ptEnd[3], int nSep, int nId,
double dDirSDeg, int nRefType) double dDirSDeg, int nRefType)
{ {
if ( ptStart == nullptr || ptEnd == nullptr)
return GDB_ID_NULL ;
return ExeCreateArc2PDEx( nParentId, ptStart, ptEnd, nSep, nId, dDirSDeg, nRefType) ; return ExeCreateArc2PDEx( nParentId, ptStart, ptEnd, nSep, nId, dDirSDeg, nRefType) ;
} }
@@ -154,6 +170,8 @@ int
__stdcall EgtCreateArc2PV( int nParentId, const double ptStart[3], const double ptEnd[3], __stdcall EgtCreateArc2PV( int nParentId, const double ptStart[3], const double ptEnd[3],
const double vtDirS[3], int nRefType) const double vtDirS[3], int nRefType)
{ {
if ( ptStart == nullptr || ptEnd == nullptr)
return GDB_ID_NULL ;
return ExeCreateArc2PV( nParentId, ptStart, ptEnd, vtDirS, nRefType) ; return ExeCreateArc2PV( nParentId, ptStart, ptEnd, vtDirS, nRefType) ;
} }
@@ -162,6 +180,8 @@ int
__stdcall EgtCreateBiArc( int nParentId, const double ptStart[3], const double ptEnd[3], __stdcall EgtCreateBiArc( int nParentId, const double ptStart[3], const double ptEnd[3],
double dDirSDeg, double dDirEDeg, double dPar, int nRefType) double dDirSDeg, double dDirEDeg, double dPar, int nRefType)
{ {
if ( ptStart == nullptr || ptEnd == nullptr)
return GDB_ID_NULL ;
return ExeCreateBiArc( nParentId, ptStart, ptEnd, dDirSDeg, dDirEDeg, dPar, nRefType) ; return ExeCreateBiArc( nParentId, ptStart, ptEnd, dDirSDeg, dDirEDeg, dPar, nRefType) ;
} }
@@ -334,3 +354,17 @@ __stdcall EgtCreatePolygonFromSide( int nParentId, int nNumSides, const double p
{ {
return ExeCreatePolygonFromSide( nParentId, nNumSides, ptIni, ptFin, nRefType) ; return ExeCreatePolygonFromSide( nParentId, nNumSides, ptIni, ptFin, nRefType) ;
} }
//-------------------------------------------------------------------------------
int
__stdcall EgtSurfBezierGetCurveU( int nSurfId, double dV, int nDestGroup)
{
return ExeSurfBezierGetCurveU( nSurfId, dV, nDestGroup) ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtSurfBezierGetCurveV( int nSurfId, double dU, int nDestGroup)
{
return ExeSurfBezierGetCurveV( nSurfId, dU, nDestGroup) ;
}
+3 -2
View File
@@ -157,9 +157,10 @@ __stdcall EgtCreateSurfTmByScrewing( int nParentId, int nCrvId,
//------------------------------------------------------------------------------- //-------------------------------------------------------------------------------
int int
__stdcall EgtCreateSurfTmSwept( int nParentId, int nSectId, int nGuideId, BOOL bCapEnds, double dLinTol) __stdcall EgtCreateSurfTmSwept( int nParentId, int nSectId, int nGuideId, const double vtAx[3],
BOOL bCapEnds, double dLinTol, int nRefType)
{ {
return ExeCreateSurfTmSwept( nParentId, nSectId, nGuideId, ( bCapEnds != FALSE), dLinTol) ; return ExeCreateSurfTmSwept( nParentId, nSectId, nGuideId, vtAx, ( bCapEnds != FALSE), dLinTol, nRefType) ;
} }
//------------------------------------------------------------------------------- //-------------------------------------------------------------------------------
+66
View File
@@ -68,6 +68,58 @@ __stdcall EgtCurveIsFlat( int nId, BOOL bUseExtrusion, double dToler, double vtN
return TRUE ; return TRUE ;
} }
//----------------------------------------------------------------------------
BOOL
__stdcall EgtCurveIsACircle( int nId, double dToler, double ptC[3], double vtN[3], double* pdRad, BOOL* pbCCW)
{
if ( ptC == nullptr || vtN == nullptr || pdRad == nullptr || pbCCW == nullptr)
return FALSE ;
Point3d ptCen ;
Vector3d vtNorm ;
double dRad ;
bool bCCW ;
if ( ! ExeCurveIsACircle( nId, ptCen, vtNorm, dRad, bCCW, dToler))
return FALSE ;
VEC_FROM_3D( ptC, ptCen)
VEC_FROM_3D( vtN, vtNorm)
*pdRad = dRad ;
*pbCCW = ( bCCW ? TRUE : FALSE) ;
return TRUE ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtCurveIsARectangle( int nId, double dToler, double ptP[3], double vtL1[3], double vtL2[3])
{
if ( ptP == nullptr || vtL1 == nullptr || vtL2 == nullptr)
return FALSE ;
Point3d ptPNT ;
Vector3d vtLato1, vtLato2 ;
if ( ! ExeCurveIsARectangle( nId, ptPNT, vtLato1, vtLato2, dToler))
return FALSE ;
VEC_FROM_3D( ptP, ptPNT)
VEC_FROM_3D( vtL1, vtLato1)
VEC_FROM_3D( vtL2, vtLato2)
return TRUE ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtCurveIsATrapezoid( int nId, double dToler, double ptP[3], double vtB1[3], double vtL1[3], double vtB2[3])
{
if ( ptP == nullptr || vtB1 == nullptr || vtL1 == nullptr || vtB2 == nullptr)
return FALSE ;
Point3d ptPNT ;
Vector3d vtBase1, vtLato1, vtBase2 ;
if ( ! ExeCurveIsATrapezoid( nId, ptPNT, vtBase1, vtLato1, vtBase2, dToler))
return FALSE ;
VEC_FROM_3D( ptP, ptPNT)
VEC_FROM_3D( vtB1, vtBase1)
VEC_FROM_3D( vtL1, vtLato1)
VEC_FROM_3D( vtB2, vtBase2)
return TRUE ;
}
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtCurveAreaXY( int nId, double* pdArea) __stdcall EgtCurveAreaXY( int nId, double* pdArea)
@@ -218,3 +270,17 @@ __stdcall EgtCurveCompoCenter( int nId, int nSimpCrv, int nRefId, double ptCen[3
VEC_FROM_3D( ptCen, ptTmp) VEC_FROM_3D( ptCen, ptTmp)
return TRUE ; return TRUE ;
} }
//----------------------------------------------------------------------------
int
__stdcall EgtCopyCompoSubCurve( int nId, int nSubCrvToCopy, int nParentId)
{
return ExeCopyCompoSubCurve( nId, nSubCrvToCopy, nParentId) ;
}
//----------------------------------------------------------------------------
int
__stdcall EgtCopyParamRange( int nId, double dUStart, double dUEnd, int nParentId)
{
return ExeCopyParamRange( nId, dUStart, dUEnd, nParentId) ;
}
+101
View File
@@ -84,6 +84,24 @@ __stdcall EgtSurfFrChunkSimpleClassify( int nId1, int nChunk1, int nId2, int nCh
return ExeSurfFrChunkSimpleClassify( nId1, nChunk1, nId2, nChunk2, dToler) ; return ExeSurfFrChunkSimpleClassify( nId1, nChunk1, nId2, nChunk2, dToler) ;
} }
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfFrChunkCenter( int nId, int nChunk, int nRefId, double ptCen[3], double vtNorm[3])
{
// verifica parametri
if ( ptCen == nullptr || vtNorm == nullptr)
return FALSE ;
// recupero il centro e la normale
Point3d ptTmp ;
Vector3d vtN ;
if ( ! ExeSurfFrChunkCenter( nId, nChunk, nRefId, ptTmp, vtN))
return FALSE ;
// li assegno
VEC_FROM_3D( ptCen, ptTmp)
VEC_FROM_3D( vtNorm, vtN)
return TRUE ;
}
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
int int
__stdcall EgtExtractSurfFrChunkLoops( int nId, int nChunk, int nDestGrpId, int* pnCount) __stdcall EgtExtractSurfFrChunkLoops( int nId, int nChunk, int nDestGrpId, int* pnCount)
@@ -112,11 +130,46 @@ __stdcall EgtSurfTmFacetFromTria( int nId, int nT)
return ExeSurfTmFacetFromTria( nId, nT) ; return ExeSurfTmFacetFromTria( nId, nT) ;
} }
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfTmGetVertex( int nId, int nVert, int nRefId, double ptVert[3])
{
// verifica parametri
if ( ptVert == nullptr)
return FALSE ;
// recupero il vertice
Point3d ptV ;
if ( ! ExeSurfTmGetVertex( nId, nVert, nRefId, ptV))
return FALSE ;
// lo assegno
VEC_FROM_3D( ptVert, ptV)
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfTmGetNearestVertex( int nId, const double ptNear[3], int nRefId, int* pnVert, double ptVert[3])
{
// verifica parametri
if ( ptNear == nullptr || pnVert == nullptr || ptVert == nullptr)
return FALSE ;
// recupero indice del vertice e sue coordinate
Point3d ptTmp ;
if ( ! ExeSurfTmGetNearestVertex( nId, ptNear, nRefId, *pnVert, ptTmp))
return FALSE ;
// le assegno
VEC_FROM_3D( ptVert, ptTmp)
return TRUE ;
}
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtSurfTmFacetNearestEndPoint( int nId, int nFacet, const double ptNear[3], int nRefId, __stdcall EgtSurfTmFacetNearestEndPoint( int nId, int nFacet, const double ptNear[3], int nRefId,
double ptEnd[3], double vtNorm[3]) double ptEnd[3], double vtNorm[3])
{ {
// verifica parametri
if ( ptNear == nullptr || ptEnd == nullptr || vtNorm == nullptr)
return FALSE ;
// recupero il punto e la normale // recupero il punto e la normale
Point3d ptTmp ; Point3d ptTmp ;
Vector3d vtN ; Vector3d vtN ;
@@ -133,6 +186,9 @@ BOOL
__stdcall EgtSurfTmFacetNearestMidPoint( int nId, int nFacet, const double ptNear[3], int nRefId, __stdcall EgtSurfTmFacetNearestMidPoint( int nId, int nFacet, const double ptNear[3], int nRefId,
double ptMid[3], double vtNorm[3]) double ptMid[3], double vtNorm[3])
{ {
// verifica parametri
if ( ptNear == nullptr || ptMid == nullptr || vtNorm == nullptr)
return FALSE ;
// recupero il punto e la normale // recupero il punto e la normale
Point3d ptTmp ; Point3d ptTmp ;
Vector3d vtN ; Vector3d vtN ;
@@ -148,6 +204,9 @@ __stdcall EgtSurfTmFacetNearestMidPoint( int nId, int nFacet, const double ptNea
BOOL BOOL
__stdcall EgtSurfTmFacetCenter( int nId, int nFacet, int nRefId, double ptCen[3], double vtNorm[3]) __stdcall EgtSurfTmFacetCenter( int nId, int nFacet, int nRefId, double ptCen[3], double vtNorm[3])
{ {
// verifica parametri
if ( ptCen == nullptr || vtNorm == nullptr)
return FALSE ;
// recupero il centro e la normale // recupero il centro e la normale
Point3d ptTmp ; Point3d ptTmp ;
Vector3d vtN ; Vector3d vtN ;
@@ -163,6 +222,9 @@ __stdcall EgtSurfTmFacetCenter( int nId, int nFacet, int nRefId, double ptCen[3]
BOOL BOOL
__stdcall EgtSurfTmFacetNormVersor( int nId, int nFacet, int nRefId, double vtNorm[3]) __stdcall EgtSurfTmFacetNormVersor( int nId, int nFacet, int nRefId, double vtNorm[3])
{ {
// verifica parametri
if ( vtNorm == nullptr)
return FALSE ;
// recupero il vettore normale // recupero il vettore normale
Vector3d vtTmp ; Vector3d vtTmp ;
if ( ! ExeSurfTmFacetNormVersor( nId, nFacet, nRefId, vtTmp)) if ( ! ExeSurfTmFacetNormVersor( nId, nFacet, nRefId, vtTmp))
@@ -268,6 +330,13 @@ __stdcall EgtExtractSurfTmFacetLoops( int nId, int nFacet, int nDestGrpId, int*
return ExeExtractSurfTmFacetLoops( nId, nFacet, nDestGrpId, pnCount) ; return ExeExtractSurfTmFacetLoops( nId, nFacet, nDestGrpId, pnCount) ;
} }
//----------------------------------------------------------------------------
int
__stdcall EgtExtractSurfTmTriaLoop( int nId, int nT, int nDestGrpId)
{
return ExeExtractSurfTmTriaLoop( nId, nT, nDestGrpId) ;
}
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
int int
__stdcall EgtCopySurfTmFacet( int nId, int nFacet, int nDestGrpId) __stdcall EgtCopySurfTmFacet( int nId, int nFacet, int nDestGrpId)
@@ -275,6 +344,38 @@ __stdcall EgtCopySurfTmFacet( int nId, int nFacet, int nDestGrpId)
return ExeCopySurfTmFacet( nId, nFacet, nDestGrpId) ; return ExeCopySurfTmFacet( nId, nFacet, nDestGrpId) ;
} }
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfBezierParamsFromPoint( int nSurfId, const double ptOnSurf[3], int nRefId, double* pdU, double* pdV)
{
// verifica parametri
if ( ptOnSurf == nullptr || pdU == nullptr || pdV == nullptr)
return FALSE ;
// eseguo
return ( ExeSurfBezierParamsFromPoint( nSurfId, ptOnSurf, nRefId, *pdU, *pdV) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfBezierGetPointNrmD1( int nSurfId, double dU, double dV, int nUsd, int nVsd, int nRefId,
double ptP[3], double vtNorm[3], double vtDerU[3], double vtDerV[3])
{
// verifica parametri di ritorno
if ( ptP == nullptr || vtNorm == nullptr || vtDerU == nullptr || vtDerV == nullptr)
return FALSE ;
// eseguo
Point3d ptMyP ;
Vector3d vtMyNorm, vtMyDerU, vtMyDerV ;
if ( ! ExeSurfBezierGetPointNrmD1( nSurfId, dU, dV, nUsd, nVsd, nRefId, ptMyP, vtMyNorm, vtMyDerU, vtMyDerV))
return FALSE ;
// assegno risultati
VEC_FROM_3D( ptP, ptMyP)
VEC_FROM_3D( vtNorm, vtMyNorm)
VEC_FROM_3D( vtDerU, vtMyDerU)
VEC_FROM_3D( vtDerV, vtMyDerV)
return TRUE ;
}
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
int int
__stdcall EgtExtractSurfBezierLoops( int nId, int nDestGrpId, int* pnCount) __stdcall EgtExtractSurfBezierLoops( int nId, int nDestGrpId, int* pnCount)
+21
View File
@@ -70,6 +70,20 @@ __stdcall EgtSurfFrOffset( int nId, double dDist, int nType)
return ( ExeSurfFrOffset( nId, dDist, nType) ? TRUE : FALSE) ; return ( ExeSurfFrOffset( nId, dDist, nType) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfTmMoveVertex( int nId, int nVert, const double ptNewVert[3], int nRefType, BOOL bUpdate)
{
return ( ExeSurfTmMoveVertex( nId, nVert, ptNewVert, nRefType, ( bUpdate != FALSE)) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfTmMoveFacet( int nId, int nFacet, const double vtMove[3], int nRefType, BOOL bUpdate)
{
return ( ExeSurfTmMoveFacet( nId, nFacet, vtMove, nRefType, ( bUpdate != FALSE)) ? TRUE : FALSE) ;
}
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
int int
__stdcall EgtSurfTmToTriangles( int nId, int* pnCount) __stdcall EgtSurfTmToTriangles( int nId, int* pnCount)
@@ -119,6 +133,13 @@ __stdcall EgtSurfTmIntersect( int nId1, int nId2, BOOL bTwoColors)
return ( ExeSurfTmIntersect( nId1, nId2, ( bTwoColors != FALSE)) ? TRUE : FALSE) ; return ( ExeSurfTmIntersect( nId1, nId2, ( bTwoColors != FALSE)) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfTmSetFaceColor( int nId, int nFacet, int nColor)
{
return ( ExeSurfTmSetFaceColor( nId, nFacet, nColor) ? TRUE : FALSE) ;
}
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtSurfTmResetTwoColors( int nId) __stdcall EgtSurfTmResetTwoColors( int nId)
+24 -7
View File
@@ -24,7 +24,7 @@ using namespace std ;
BOOL BOOL
__stdcall EgtSetLevel( int nId, int nLevel) __stdcall EgtSetLevel( int nId, int nLevel)
{ {
return ( ExeSetLevel( nId, nLevel) ? TRUE : FALSE) ; return ( ExeSetLevel( {nId}, nLevel) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -52,7 +52,7 @@ __stdcall EgtGetCalcLevel( int nId, int* pnLevel)
BOOL BOOL
__stdcall EgtSetMode( int nId, int nMode) __stdcall EgtSetMode( int nId, int nMode)
{ {
return ( ExeSetMode( nId, nMode) ? TRUE : FALSE) ; return ( ExeSetMode( {nId}, nMode) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -80,9 +80,7 @@ __stdcall EgtGetCalcMode( int nId, int* pnMode)
BOOL BOOL
__stdcall EgtSetStatus( int nId, int nStat) __stdcall EgtSetStatus( int nId, int nStat)
{ {
INTVECTOR vIds ; return ( ExeSetStatus( {nId}, nStat) ? TRUE : FALSE) ;
vIds.push_back( nId) ;
return ( ExeSetStatus( vIds, nStat) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -108,9 +106,9 @@ __stdcall EgtGetCalcStatus( int nId, int* pnStat)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtSetMark( int nId) __stdcall EgtSetMark( int nId, int nMark)
{ {
return ( ExeSetMark( nId) ? TRUE : FALSE) ; return ( ExeSetMark( nId, nMark) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -426,6 +424,25 @@ __stdcall EgtGetInfoFrame( int nId, const wchar_t* wsKey, double ptOrig[3],
return TRUE ; return TRUE ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetAllInfo( int nId, wchar_t*& wsInfos)
{
if ( &wsInfos == nullptr)
return FALSE ;
STRVECTOR vsInfo ;
if ( ! ExeGetAllInfo( nId, vsInfo))
return FALSE ;
// restituzione vettore risultati
string sInfos ;
for ( const auto& sInfo : vsInfo)
sInfos += sInfo + "\n" ;
if ( ! sInfos.empty())
sInfos.pop_back() ;
wsInfos = _wcsdup( stringtoW( sInfos)) ;
return (( wsInfos == nullptr) ? FALSE : TRUE) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtExistsInfo( int nId, const wchar_t* wsKey) __stdcall EgtExistsInfo( int nId, const wchar_t* wsKey)
+14
View File
@@ -223,6 +223,13 @@ __stdcall EgtCopy( int nSouId, int nRefId, int nSonBeforeAfter)
return ExeCopy( nSouId, nRefId, nSonBeforeAfter) ; return ExeCopy( nSouId, nRefId, nSonBeforeAfter) ;
} }
//-----------------------------------------------------------------------------
int
__stdcall EgtCopyEx( int nSouCtx, int nSouId, int nDestCtx, int nRefId, int nSonBeforeAfter)
{
return ExeCopyEx( nSouCtx, nSouId, nDestCtx, nRefId, nSonBeforeAfter) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
int int
__stdcall EgtCopyGlob( int nSouId, int nRefId, int nSonBeforeAfter) __stdcall EgtCopyGlob( int nSouId, int nRefId, int nSonBeforeAfter)
@@ -230,6 +237,13 @@ __stdcall EgtCopyGlob( int nSouId, int nRefId, int nSonBeforeAfter)
return ExeCopyGlob( nSouId, nRefId, nSonBeforeAfter) ; return ExeCopyGlob( nSouId, nRefId, nSonBeforeAfter) ;
} }
//-----------------------------------------------------------------------------
int
__stdcall EgtCopyGlobEx( int nSouCtx, int nSouId, int nDestCtx, int nRefId, int nSonBeforeAfter)
{
return ExeCopyGlobEx( nSouCtx, nSouId, nDestCtx, nRefId, nSonBeforeAfter) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtRelocate( int nSouId, int nRefId, int nSonBeforeAfter) __stdcall EgtRelocate( int nSouId, int nRefId, int nSonBeforeAfter)
+20 -4
View File
@@ -41,7 +41,7 @@ __stdcall EgtExit( void)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtSetOnTerminateProcess( pfOnTerminateProcess pFun) __stdcall EgtSetOnTerminateProcess( psfOnTerminateProcess pFun)
{ {
return ( ExeSetOnTerminateProcess( pFun) ? TRUE : FALSE) ; return ( ExeSetOnTerminateProcess( pFun) ? TRUE : FALSE) ;
} }
@@ -227,6 +227,15 @@ __stdcall EgtGetKeyLeftDays( int* pnLeftDays)
return ( ExeGetKeyLeftDays( *pnLeftDays) ? TRUE : FALSE) ; return ( ExeGetKeyLeftDays( *pnLeftDays) ? TRUE : FALSE) ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetKeyAssLeftDays( int* pnAssLeftDays)
{
if ( pnAssLeftDays == nullptr)
return FALSE ;
return ( ExeGetKeyAssLeftDays( *pnAssLeftDays) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtGetKeyOptLeftDays( int* pnOptLeftDays) __stdcall EgtGetKeyOptLeftDays( int* pnOptLeftDays)
@@ -236,6 +245,13 @@ __stdcall EgtGetKeyOptLeftDays( int* pnOptLeftDays)
return ( ExeGetKeyOptLeftDays( *pnOptLeftDays) ? TRUE : FALSE) ; return ( ExeGetKeyOptLeftDays( *pnOptLeftDays) ? TRUE : FALSE) ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetNetHwKey( void)
{
return ( ExeGetNetHwKey() ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtGetOsInfo( wchar_t*& wsOs) __stdcall EgtGetOsInfo( wchar_t*& wsOs)
@@ -291,14 +307,14 @@ __stdcall EgtOutLog( const wchar_t* wsMsg)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtSetProcessEvents( pfProcEvents pFun) __stdcall EgtSetProcessEvents( psfProcEvents pFun)
{ {
return ( ExeSetProcessEvents( pFun) ? TRUE : FALSE) ; return ( ExeSetProcessEvents( pFun) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
static pfOutTextW s_pFunOutText = nullptr ; static psfOutTextW s_pFunOutText = nullptr ;
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
bool bool
@@ -316,7 +332,7 @@ __stdcall MyOutText( const string& sText)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtSetOutText( pfOutTextW pFun) __stdcall EgtSetOutText( psfOutTextW pFun)
{ {
s_pFunOutText = pFun ; s_pFunOutText = pFun ;
return ( ExeSetOutText( (( pFun != nullptr) ? MyOutText : nullptr)) ? TRUE : FALSE) ; return ( ExeSetOutText( (( pFun != nullptr) ? MyOutText : nullptr)) ? TRUE : FALSE) ;
+4 -2
View File
@@ -23,6 +23,8 @@ using namespace std ;
BOOL BOOL
__stdcall EgtPointCurveDist( const double ptP[3], int nId, int nRefType, double* pdDist, double* pdU) __stdcall EgtPointCurveDist( const double ptP[3], int nId, int nRefType, double* pdDist, double* pdU)
{ {
if ( ptP == nullptr || pdDist == NULL || pdU == nullptr)
return FALSE ;
Point3d ptTemp ; Point3d ptTemp ;
return ( ExePointCurveDist( ptP, nId, nRefType, pdDist, ptTemp, pdU) ? TRUE : FALSE) ; return ( ExePointCurveDist( ptP, nId, nRefType, pdDist, ptTemp, pdU) ? TRUE : FALSE) ;
} }
@@ -32,7 +34,7 @@ BOOL
__stdcall EgtPointCurveDistSide( const double ptP[3], int nId, const double vtN[3], int nRefType, __stdcall EgtPointCurveDistSide( const double ptP[3], int nId, const double vtN[3], int nRefType,
double* pdDist, double ptMin[3], int* pnSide) double* pdDist, double ptMin[3], int* pnSide)
{ {
if ( pdDist == nullptr || ptMin == nullptr || pnSide == nullptr) if ( ptP == nullptr || vtN == nullptr || pdDist == nullptr || ptMin == nullptr || pnSide == nullptr)
return FALSE ; return FALSE ;
Point3d ptTmp ; Point3d ptTmp ;
if ( ! ExePointCurveDistSide( ptP, nId, vtN, nRefType, pdDist, ptTmp, pnSide)) if ( ! ExePointCurveDistSide( ptP, nId, vtN, nRefType, pdDist, ptTmp, pnSide))
@@ -45,7 +47,7 @@ __stdcall EgtPointCurveDistSide( const double ptP[3], int nId, const double vtN[
BOOL BOOL
__stdcall EgtPointSurfTmDist( const double ptP[3], int nId, int nRefType, double* pdDist, double ptMin[3], int* pnTria) __stdcall EgtPointSurfTmDist( const double ptP[3], int nId, int nRefType, double* pdDist, double ptMin[3], int* pnTria)
{ {
if ( pdDist == nullptr || ptMin == nullptr || pnTria == nullptr) if ( ptP == nullptr || pdDist == nullptr || ptMin == nullptr || pnTria == nullptr)
return FALSE ; return FALSE ;
Point3d ptTmp ; Point3d ptTmp ;
if ( ! ExePointSurfTmDist( ptP, nId, nRefType, pdDist, ptTmp, pnTria)) if ( ! ExePointSurfTmDist( ptP, nId, nRefType, pdDist, ptTmp, pnTria))
+12 -4
View File
@@ -184,14 +184,22 @@ __stdcall EgtSaveFile( const wchar_t* wsFilePath, int nFlag)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtSaveObjToFile( int nId, const wchar_t* wsFilePath, int nFlag) __stdcall EgtSaveObjToFile( int nNumId, const int nIds[], const wchar_t* wsFilePath, int nFlag)
{ {
return ( ExeSaveObjToFile( nId, wstrztoA( wsFilePath), nFlag) ? TRUE : FALSE) ; INTVECTOR vId ;
vId.reserve( nNumId) ;
for ( int i = 0 ; i < nNumId ; ++i)
vId.push_back( nIds[i]) ;
return ( ExeSaveObjToFile( vId, wstrztoA( wsFilePath), nFlag) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtSaveMachGroupToFile( int nMGroupId, const wchar_t* wsFilePath, int nFlag) __stdcall EgtSaveMachGroupToFile( int nMGroupId, int nNumPlusId, const int nPlusIds[], const wchar_t* wsFilePath, int nFlag)
{ {
return ( ExeSaveMachGroupToFile( nMGroupId, wstrztoA( wsFilePath), nFlag) ? TRUE : FALSE) ; INTVECTOR vPlusId ;
vPlusId.reserve( nNumPlusId) ;
for ( int i = 0 ; i < nNumPlusId ; ++i)
vPlusId.push_back( nPlusIds[i]) ;
return ( ExeSaveMachGroupToFile( nMGroupId, vPlusId, wstrztoA( wsFilePath), nFlag) ? TRUE : FALSE) ;
} }
+218 -70
View File
@@ -72,21 +72,19 @@ __stdcall EgtGetMachines( wchar_t*& wsMachineNames, wchar_t*& wsMachineDirs)
return FALSE ; return FALSE ;
// restituzione vettore nomi // restituzione vettore nomi
string sMachineNames ; string sMachineNames ;
for ( const auto& sName : vsMachineNames) { for ( const auto& sName : vsMachineNames)
if ( ! sMachineNames.empty()) sMachineNames += sName + "\n" ;
sMachineNames += "\n" ; if ( ! sMachineNames.empty())
sMachineNames += sName ; sMachineNames.pop_back() ;
}
wsMachineNames = _wcsdup( stringtoW( sMachineNames)) ; wsMachineNames = _wcsdup( stringtoW( sMachineNames)) ;
if ( wsMachineNames == nullptr) if ( wsMachineNames == nullptr)
return FALSE ; return FALSE ;
// restituzione vettore direttori // restituzione vettore direttori
string sMachineDirs ; string sMachineDirs ;
for ( const auto& sName : vsMachineDirs) { for ( const auto& sName : vsMachineDirs)
if ( ! sMachineDirs.empty()) sMachineDirs += sName + "\n" ;
sMachineDirs += "\n" ; if ( ! sMachineDirs.empty())
sMachineDirs += sName ; sMachineDirs.pop_back() ;
}
wsMachineDirs = _wcsdup( stringtoW( sMachineDirs)) ; wsMachineDirs = _wcsdup( stringtoW( sMachineDirs)) ;
if ( wsMachineDirs == nullptr) { if ( wsMachineDirs == nullptr) {
free( wsMachineNames) ; free( wsMachineNames) ;
@@ -198,6 +196,13 @@ __stdcall EgtRemoveMachGroup( int nMGroupId)
return ( ExeRemoveMachGroup( nMGroupId) ? TRUE : FALSE) ; return ( ExeRemoveMachGroup( nMGroupId) ? TRUE : FALSE) ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtChangeMachGroupName( int nMGroupInd, const wchar_t* wsNewName)
{
return ( ExeChangeMachGroupName( nMGroupInd, wstrztoA( wsNewName)) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtGetMachGroupName( int nMGroupInd, wchar_t*& wsName) __stdcall EgtGetMachGroupName( int nMGroupInd, wchar_t*& wsName)
@@ -331,9 +336,9 @@ __stdcall EgtModifyRawPart( int nRawId, const double ptOrig[3],
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtModifyRawPart2( int nRawId, int nCrvId, __stdcall EgtModifyRawPart2( int nRawId, int nCrvId,
double dOverMat, double dZmin, double dHeight, const int vCol[4]) double dOverMat, double dHeight, const int vCol[4])
{ {
return ( ExeModifyRawPart( nRawId, nCrvId, dOverMat, dZmin, dHeight, vCol) ? TRUE : FALSE) ; return ( ExeModifyRawPart( nRawId, nCrvId, dOverMat, dHeight, vCol) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -589,6 +594,27 @@ __stdcall EgtShowOnlyTable( BOOL bVal)
return ( ExeShowOnlyTable( ( bVal != FALSE)) ? TRUE : FALSE) ; return ( ExeShowOnlyTable( ( bVal != FALSE)) ? TRUE : FALSE) ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMoveDispAxis( const wchar_t* wsName, double dPos)
{
return ( ExeMoveDispAxis( wstrztoA( wsName), dPos) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtRemoveDispAxis( const wchar_t* wsName)
{
return ( ExeRemoveDispAxis( wstrztoA( wsName)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtKeepAllDispAxes( int nSouPhase)
{
return ( ExeKeepAllDispAxes( nSouPhase) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
int int
__stdcall EgtAddFixture( const wchar_t* wsName, const double ptPos[3], double dAngRotDeg, double dMov) __stdcall EgtAddFixture( const wchar_t* wsName, const double ptPos[3], double dAngRotDeg, double dMov)
@@ -645,6 +671,13 @@ __stdcall EgtRotateFixture( int nFxtId, double dDeltaAngDeg)
return ( ExeRotateFixture( nFxtId, dDeltaAngDeg) ? TRUE : FALSE) ; return ( ExeRotateFixture( nFxtId, dDeltaAngDeg) ? TRUE : FALSE) ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetFixtureLink( int nFxtId, const wchar_t* wsTaLink)
{
return ( ExeSetFixtureLink( nFxtId, wstrztoA( wsTaLink)) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtMoveFixtureMobile( int nFxtId, double dDeltaMov) __stdcall EgtMoveFixtureMobile( int nFxtId, double dDeltaMov)
@@ -652,6 +685,13 @@ __stdcall EgtMoveFixtureMobile( int nFxtId, double dDeltaMov)
return ( ExeMoveFixtureMobile( nFxtId, dDeltaMov) ? TRUE : FALSE) ; return ( ExeMoveFixtureMobile( nFxtId, dDeltaMov) ? TRUE : FALSE) ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetFixtureMobile( int nFxtId, double dMov)
{
return ( ExeSetFixtureMobile( nFxtId, dMov) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Tools DataBase // Tools DataBase
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -977,11 +1017,10 @@ __stdcall EgtTdbToBeImported( const wchar_t* wsFile, wchar_t*& wsToolsNames, int
return FALSE ; return FALSE ;
// restituzione vettore nomi // restituzione vettore nomi
string sToolsNames ; string sToolsNames ;
for ( const auto& sName : vsToolsNames) { for ( const auto& sName : vsToolsNames)
if ( ! sToolsNames.empty()) sToolsNames += sName + "\n" ;
sToolsNames += "\n" ; if ( ! sToolsNames.empty())
sToolsNames += sName ; sToolsNames.pop_back() ;
}
wsToolsNames = _wcsdup( stringtoW( sToolsNames)) ; wsToolsNames = _wcsdup( stringtoW( sToolsNames)) ;
if ( wsToolsNames == nullptr) if ( wsToolsNames == nullptr)
return FALSE ; return FALSE ;
@@ -1019,11 +1058,10 @@ __stdcall EgtTdbImport( const wchar_t* wsFile, const wchar_t* wsToolsToImport, c
if ( ! ExeTdbImport( string( wstrztoA( wsFile)), vsToolsToImport, vsToolsNames, vsImported)) if ( ! ExeTdbImport( string( wstrztoA( wsFile)), vsToolsToImport, vsToolsNames, vsImported))
return FALSE ; return FALSE ;
string sImported ; string sImported ;
for ( const auto& sName : vsImported) { for ( const auto& sName : vsImported)
if ( ! sImported.empty()) sImported += sName + "\n" ;
sImported += "\n" ; if ( ! sImported.empty())
sImported += sName ; sImported.pop_back() ;
}
wsImported = _wcsdup( stringtoW( sImported)) ; wsImported = _wcsdup( stringtoW( sImported)) ;
return (( wsImported == nullptr) ? FALSE : TRUE) ; return (( wsImported == nullptr) ? FALSE : TRUE) ;
} }
@@ -1327,11 +1365,10 @@ __stdcall EgtMdbToBeImported( const wchar_t* wsFile, wchar_t*& wsMachiningsNames
return FALSE ; return FALSE ;
// restituzione vettore nomi // restituzione vettore nomi
string sMachiningsNames ; string sMachiningsNames ;
for ( const auto& sName : vsMachiningsNames) { for ( const auto& sName : vsMachiningsNames)
if ( ! sMachiningsNames.empty()) sMachiningsNames += sName + "\n" ;
sMachiningsNames += "\n" ; if ( ! sMachiningsNames.empty())
sMachiningsNames += sName ; sMachiningsNames.pop_back() ;
}
wsMachiningsNames = _wcsdup( stringtoW( sMachiningsNames)) ; wsMachiningsNames = _wcsdup( stringtoW( sMachiningsNames)) ;
if ( wsMachiningsNames == nullptr) if ( wsMachiningsNames == nullptr)
return FALSE ; return FALSE ;
@@ -1369,11 +1406,10 @@ __stdcall EgtMdbImport( const wchar_t* wsFile, const wchar_t* wsMachiningsToImpo
if ( ! ExeMdbImport( string( wstrztoA( wsFile)), vsMachiningsToImport, vsMachiningsNames, vsImported)) if ( ! ExeMdbImport( string( wstrztoA( wsFile)), vsMachiningsToImport, vsMachiningsNames, vsImported))
return FALSE ; return FALSE ;
string sImported ; string sImported ;
for ( const auto& sName : vsImported) { for ( const auto& sName : vsImported)
if ( ! sImported.empty()) sImported += sName + "\n" ;
sImported += "\n" ; if ( ! sImported.empty())
sImported += sName ; sImported.pop_back() ;
}
wsImported = _wcsdup( stringtoW( sImported)) ; wsImported = _wcsdup( stringtoW( sImported)) ;
return (( wsImported == nullptr) ? FALSE : TRUE) ; return (( wsImported == nullptr) ? FALSE : TRUE) ;
} }
@@ -1410,30 +1446,30 @@ __stdcall EgtGetPrevOperation( int nId)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
int int
__stdcall EgtGetFirstActiveOperation( void) __stdcall EgtGetFirstActiveOperation( bool bNeedMachNotEmpty)
{ {
return ExeGetFirstActiveOperation() ; return ExeGetFirstActiveOperation( bNeedMachNotEmpty) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
int int
__stdcall EgtGetNextActiveOperation( int nId) __stdcall EgtGetNextActiveOperation( int nId, bool bNeedMachNotEmpty)
{ {
return ExeGetNextActiveOperation( nId) ; return ExeGetNextActiveOperation( nId, bNeedMachNotEmpty) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
int int
__stdcall EgtGetLastActiveOperation( void) __stdcall EgtGetLastActiveOperation( bool bNeedMachNotEmpty)
{ {
return ExeGetLastActiveOperation() ; return ExeGetLastActiveOperation( bNeedMachNotEmpty) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
int int
__stdcall EgtGetPrevActiveOperation( int nId) __stdcall EgtGetPrevActiveOperation( int nId, bool bNeedMachNotEmpty)
{ {
return ExeGetPrevActiveOperation( nId) ; return ExeGetPrevActiveOperation( nId, bNeedMachNotEmpty) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -1479,9 +1515,9 @@ __stdcall EgtGetOperationId( const wchar_t* wsName)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtIsOperationEmpty( int nId) __stdcall EgtIsOperationEmpty( int nId, int nEmptyType)
{ {
return ( ExeIsOperationEmpty( nId) ? TRUE : FALSE) ; return ( ExeIsOperationEmpty( nId, nEmptyType) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -1711,6 +1747,13 @@ __stdcall EgtUpdateMachining( void)
return ( ExeUpdateMachining() ? TRUE : FALSE) ; return ( ExeUpdateMachining() ? TRUE : FALSE) ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtChangePreviewMachiningToolShow( int nLookFlag)
{
return ( ExeChangePreviewMachiningToolShow( nLookFlag) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtPreparePreviewMachiningTool( void) __stdcall EgtPreparePreviewMachiningTool( void)
@@ -1727,9 +1770,16 @@ __stdcall EgtRemovePreviewMachiningTool( void)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
int int
__stdcall EgtPreviewMachiningTool( int nEntId, int nFlag) __stdcall EgtGetPreviewMachiningToolStepCount( void)
{ {
return ExePreviewMachiningTool( nEntId, nFlag) ; return ExeGetPreviewMachiningToolStepCount() ;
}
//-----------------------------------------------------------------------------
int
__stdcall EgtPreviewMachiningTool( int nEntId, int nStep)
{
return ExePreviewMachiningTool( nEntId, nStep) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -1801,9 +1851,9 @@ __stdcall EgtGetMachiningGeometry( int nInd, int* pnId, int* pnSub)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtIsMachiningEmpty( void) __stdcall EgtIsMachiningEmpty( int nEmptyType)
{ {
return ( ExeIsMachiningEmpty() ? TRUE : FALSE) ; return ( ExeIsMachiningEmpty( nEmptyType) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -1869,7 +1919,7 @@ __stdcall EgtSimInit( void)
BOOL BOOL
__stdcall EgtSimStart( BOOL bFirst) __stdcall EgtSimStart( BOOL bFirst)
{ {
return ( ExeSimStart( bFirst ? TRUE : FALSE) ? TRUE : FALSE) ; return ( ExeSimStart( bFirst != FALSE) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -1904,6 +1954,13 @@ __stdcall EgtSimSetUiStatus( int nUiStatus)
return ( ExeSimSetUiStatus( nUiStatus) ? TRUE : FALSE) ; return ( ExeSimSetUiStatus( nUiStatus) ? TRUE : FALSE) ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSimEnableToolTipTrace( BOOL bEnable)
{
return ( ExeSimEnableToolTipTrace( bEnable != FALSE) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtSimGetAxisInfoPos( int nI, wchar_t*& wsName, wchar_t*& wsToken, BOOL* pbLinear, double* pdVal) __stdcall EgtSimGetAxisInfoPos( int nI, wchar_t*& wsName, wchar_t*& wsToken, BOOL* pbLinear, double* pdVal)
@@ -2016,6 +2073,32 @@ __stdcall EgtGetHeadExitCount( const wchar_t* wsHead)
return ExeGetHeadExitCount( wstrztoA( wsHead)) ; return ExeGetHeadExitCount( wstrztoA( wsHead)) ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetAxisType( const wchar_t* wsAxis, BOOL* pbLinear)
{
if ( pbLinear == nullptr)
return FALSE ;
bool bLinear ;
if ( ! ExeGetAxisType( wstrztoA( wsAxis), bLinear))
return FALSE ;
*pbLinear = ( bLinear ? TRUE : FALSE) ;
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetAxisDir( const wchar_t* wsAxis, double vtDir[3])
{
if ( vtDir == nullptr)
return FALSE ;
Vector3d vtTmp ;
if ( ! ExeGetAxisDir( wstrztoA( wsAxis), vtTmp))
return FALSE ;
VEC_FROM_3D( vtDir, vtTmp) ;
return TRUE ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtGetAxisInvert( const wchar_t* wsAxis, BOOL* pbInvert) __stdcall EgtGetAxisInvert( const wchar_t* wsAxis, BOOL* pbInvert)
@@ -2046,7 +2129,7 @@ __stdcall EgtGetAllHeadsNames( wchar_t*& wsNames)
return FALSE ; return FALSE ;
STRVECTOR vNames ; STRVECTOR vNames ;
if ( ! ExeGetAllHeadsNames( vNames)) if ( ! ExeGetAllHeadsNames( vNames))
return false ; return FALSE ;
string sNames ; string sNames ;
for ( const auto& sName : vNames) for ( const auto& sName : vNames)
sNames += sName + "," ; sNames += sName + "," ;
@@ -2064,7 +2147,7 @@ __stdcall EgtGetAllTablesNames( wchar_t*& wsNames)
return FALSE ; return FALSE ;
STRVECTOR vNames ; STRVECTOR vNames ;
if ( ! ExeGetAllTablesNames( vNames)) if ( ! ExeGetAllTablesNames( vNames))
return false ; return FALSE ;
string sNames ; string sNames ;
for ( const auto& sName : vNames) for ( const auto& sName : vNames)
sNames += sName + "," ; sNames += sName + "," ;
@@ -2103,6 +2186,25 @@ __stdcall EgtGetCalcTool( wchar_t*& wsTool, wchar_t*& wsHead, int* pnExit)
return TRUE ; return TRUE ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetAllCurrAxesNames( wchar_t*& wsAxNames)
{
if ( &wsAxNames == nullptr)
return FALSE ;
STRVECTOR vsAxNames ;
if ( ! ExeGetAllCurrAxesNames( vsAxNames))
return FALSE ;
// restituzione vettore risultati
string sAxNames ;
for ( const auto& sAxName : vsAxNames)
sAxNames += sAxName + "\n" ;
if ( ! sAxNames.empty())
sAxNames.pop_back() ;
wsAxNames = _wcsdup( stringtoW( sAxNames)) ;
return (( wsAxNames == nullptr) ? FALSE : TRUE) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtGetCalcAngles( const double vtDirT[3], const double vtDirA[3], __stdcall EgtGetCalcAngles( const double vtDirT[3], const double vtDirA[3],
@@ -2116,40 +2218,86 @@ __stdcall EgtGetCalcAngles( const double vtDirT[3], const double vtDirA[3],
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtGetCalcPositions( const double ptP[3], double dAngA, double dAngB, __stdcall EgtGetCalcAnglesEx( const double vtDirT[3], const double vtDirA[3],
int* pnStat, double* pdX, double* pdY, double* pdZ) int* pnStat, double*& vAngs1, double*& vAngs2, int* pnCount)
{ {
if ( ptP == nullptr || if ( vtDirT == nullptr || vtDirA == nullptr ||
pnStat == nullptr || pdX == nullptr || pdY == nullptr || pdZ == nullptr) pnStat == nullptr || pnCount == nullptr || &vAngs1 == nullptr || &vAngs2 == nullptr)
return FALSE ; return FALSE ;
return ( ExeGetCalcPositions( ptP, dAngA, dAngB, *pnStat, *pdX, *pdY, *pdZ) ? TRUE : FALSE) ; DBLVECTOR vA1, vA2 ;
} if ( ! ExeGetCalcAngles( vtDirT, vtDirA, *pnStat, vA1, vA2) || vA1.size() != vA2.size())
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetCalcTipFromPositions( double dX, double dY, double dZ, double dAngA, double dAngB,
BOOL bBottom, double ptTip[3])
{
Point3d ptTmp ;
if ( ! ExeGetCalcTipFromPositions( dX, dY, dZ, dAngA, dAngB, ( bBottom != FALSE), ptTmp))
return FALSE ; return FALSE ;
// ritorno i dati // restituzione vettori angoli
if ( ptTip != nullptr) int nDim = int( vA1.size()) ;
VEC_FROM_3D( ptTip, ptTmp) ; if ( nDim == 0) {
vAngs1 = nullptr ;
vAngs2 = nullptr ;
}
else {
vAngs1 = (double*) malloc( nDim * sizeof( double)) ;
if ( vAngs1 == nullptr)
return FALSE ;
vAngs2 = (double*) malloc( nDim * sizeof( double)) ;
if ( vAngs2 == nullptr) {
free( vAngs1) ;
return FALSE ;
}
for ( int i = 0 ; i < nDim ; ++ i) {
vAngs1[i] = vA1[i] ;
vAngs2[i] = vA2[i] ;
}
}
*pnCount = nDim ;
return TRUE ; return TRUE ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtGetCalcToolDirFromAngles( double dAngA, double dAngB, double vtDir[3]) __stdcall EgtGetCalcPositions( const double ptP[3], int nCount, const double dAngs[],
int* pnStat, double* pdX, double* pdY, double* pdZ)
{ {
DBLVECTOR vAng( 2) ; vAng[0] = dAngA ; vAng[1] = dAngB ; if ( ptP == nullptr || dAngs == nullptr ||
pnStat == nullptr || pdX == nullptr || pdY == nullptr || pdZ == nullptr)
return FALSE ;
DBLVECTOR vAng ;
for ( int i = 0 ; i < nCount ; ++i)
vAng.push_back( dAngs[i]) ;
*pnStat = 0 ; // mantenuto per compatibilità
return ( ExeGetCalcPositions( ptP, vAng, *pdX, *pdY, *pdZ) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetCalcTipFromPositions( double dX, double dY, double dZ, int nCount, const double dAngs[],
BOOL bBottom, double ptTip[3])
{
if ( dAngs == nullptr || ptTip == nullptr)
return FALSE ;
DBLVECTOR vAng ;
for ( int i = 0 ; i < nCount ; ++i)
vAng.push_back( dAngs[i]) ;
Point3d ptTmp ;
if ( ! ExeGetCalcTipFromPositions( dX, dY, dZ, vAng, ( bBottom != FALSE), ptTmp))
return FALSE ;
// ritorno i dati
VEC_FROM_3D( ptTip, ptTmp) ;
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetCalcToolDirFromAngles( int nCount, const double dAngs[], double vtDir[3])
{
if ( dAngs == nullptr || vtDir == nullptr)
return FALSE ;
DBLVECTOR vAng ;
for ( int i = 0 ; i < nCount ; ++i)
vAng.push_back( dAngs[i]) ;
Vector3d vtTmp ; Vector3d vtTmp ;
if ( ! ExeGetCalcToolDirFromAngles( vAng, vtTmp)) if ( ! ExeGetCalcToolDirFromAngles( vAng, vtTmp))
return FALSE ; return FALSE ;
// ritorno i dati // ritorno i dati
if ( vtDir != nullptr) VEC_FROM_3D( vtDir, vtTmp) ;
VEC_FROM_3D( vtDir, vtTmp) ;
return TRUE ; return TRUE ;
} }
+37 -2
View File
@@ -59,9 +59,9 @@ __stdcall EgtSetLineAttribs( int nWidth)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtSetMarkAttribs( const int MarkCol[4]) __stdcall EgtSetMarkAttribs( const int MarkCol[4], const int Mark2Col[4])
{ {
return ( ExeSetMarkAttribs( Color( MarkCol)) ? TRUE : FALSE) ; return ( ExeSetMarkAttribs( Color( MarkCol), Color( Mark2Col)) ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -142,6 +142,13 @@ __stdcall EgtDraw( void)
return ( ExeDraw() ? TRUE : FALSE) ; return ( ExeDraw() ? TRUE : FALSE) ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtRedraw( void)
{
return ( ExeRedraw() ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtSelect( int nWinX, int nWinY, int nSelW, int nSelH, int* pnSel) __stdcall EgtSelect( int nWinX, int nWinY, int nSelW, int nSelH, int* pnSel)
@@ -312,6 +319,20 @@ __stdcall EgtGetShowTriaAdv( void)
return ( ExeGetShowTriaAdv() ? TRUE : FALSE) ; return ( ExeGetShowTriaAdv() ? TRUE : FALSE) ;
} }
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSetShowSurfBezierTol( double dLinTol, BOOL bRedraw)
{
return ( ExeSetShowSurfBezierTol( dLinTol, ( bRedraw != FALSE)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
double
__stdcall EgtGetShowSurfBezierTol( void)
{
return ExeGetShowSurfBezierTol() ;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
BOOL BOOL
__stdcall EgtSetShowZmap( int nMode, BOOL bRedraw) __stdcall EgtSetShowZmap( int nMode, BOOL bRedraw)
@@ -571,3 +592,17 @@ __stdcall EgtGetImage( int nShowMode, const int TopCol[4], const int BottomCol[4
return ( ExeGetImage( nShowMode, Color( TopCol), Color( BottomCol), return ( ExeGetImage( nShowMode, Color( TopCol), Color( BottomCol),
nWidth, nHeight, wstrztoA( wsName)) ? TRUE : FALSE) ; nWidth, nHeight, wstrztoA( wsName)) ? TRUE : FALSE) ;
} }
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetCameraType( BOOL bOrthoOrPersp, BOOL bRedraw)
{
return ( ExeSetCameraType( ( bOrthoOrPersp != FALSE), ( bRedraw != FALSE)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetZoomType( int nZoomType, BOOL bRedraw)
{
return ( ExeSetZoomType( nZoomType, ( bRedraw != FALSE)) ? TRUE : FALSE) ;
}
BIN
View File
Binary file not shown.
+7 -7
View File
@@ -22,14 +22,14 @@
<ProjectGuid>{DF654897-F85B-4108-A621-F2C4AB099A48}</ProjectGuid> <ProjectGuid>{DF654897-F85B-4108-A621-F2C4AB099A48}</ProjectGuid>
<Keyword>Win32Proj</Keyword> <Keyword>Win32Proj</Keyword>
<RootNamespace>EgtInterface</RootNamespace> <RootNamespace>EgtInterface</RootNamespace>
<WindowsTargetPlatformVersion>10.0.20348.0</WindowsTargetPlatformVersion> <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup> </PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType> <ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries> <UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet> <CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v141_xp</PlatformToolset> <PlatformToolset>v143</PlatformToolset>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType> <ConfigurationType>DynamicLibrary</ConfigurationType>
@@ -42,7 +42,7 @@
<UseDebugLibraries>false</UseDebugLibraries> <UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization> <WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet> <CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v141_xp</PlatformToolset> <PlatformToolset>v143</PlatformToolset>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType> <ConfigurationType>DynamicLibrary</ConfigurationType>
@@ -105,7 +105,7 @@
<MultiProcessorCompilation>true</MultiProcessorCompilation> <MultiProcessorCompilation>true</MultiProcessorCompilation>
<MinimalRebuild>false</MinimalRebuild> <MinimalRebuild>false</MinimalRebuild>
<OpenMPSupport>false</OpenMPSupport> <OpenMPSupport>false</OpenMPSupport>
<LanguageStandard>stdcpp17</LanguageStandard> <LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
@@ -130,7 +130,7 @@ copy $(TargetPath) \EgtProg\DllD32</Command>
<OmitFramePointers>false</OmitFramePointers> <OmitFramePointers>false</OmitFramePointers>
<MultiProcessorCompilation>true</MultiProcessorCompilation> <MultiProcessorCompilation>true</MultiProcessorCompilation>
<MinimalRebuild>false</MinimalRebuild> <MinimalRebuild>false</MinimalRebuild>
<LanguageStandard>stdcpp17</LanguageStandard> <LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalOptions>-Wno-tautological-undefined-compare</AdditionalOptions> <AdditionalOptions>-Wno-tautological-undefined-compare</AdditionalOptions>
</ClCompile> </ClCompile>
<Link> <Link>
@@ -166,7 +166,7 @@ copy $(TargetPath) \EgtProg\DllD64</Command>
<EnableParallelCodeGeneration>true</EnableParallelCodeGeneration> <EnableParallelCodeGeneration>true</EnableParallelCodeGeneration>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<WholeProgramOptimization>false</WholeProgramOptimization> <WholeProgramOptimization>false</WholeProgramOptimization>
<LanguageStandard>stdcpp17</LanguageStandard> <LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
@@ -201,7 +201,7 @@ copy $(TargetPath) \EgtProg\Dll32</Command>
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet> <EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
<WholeProgramOptimization>false</WholeProgramOptimization> <WholeProgramOptimization>false</WholeProgramOptimization>
<DebugInformationFormat>None</DebugInformationFormat> <DebugInformationFormat>None</DebugInformationFormat>
<LanguageStandard>stdcpp17</LanguageStandard> <LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalOptions>-Wno-tautological-undefined-compare</AdditionalOptions> <AdditionalOptions>-Wno-tautological-undefined-compare</AdditionalOptions>
</ClCompile> </ClCompile>
<Link> <Link>