3a86dbbba4
- a funzioni EgtSurfTmAdd, EgtSurfTmSubtract e EgtSurfTmIntersect aggiunto parametro bTwoColors - aggiunta funzione EgtSurfTmResetTwoColors.
100 lines
3.0 KiB
C++
100 lines
3.0 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2015-2015
|
|
//----------------------------------------------------------------------------
|
|
// File : API_ModifySurf.cpp Data : 09.03.15 Versione : 1.6b6
|
|
// Contenuto : Funzioni di modifica delle superfici per API.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 09.03.15 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 EgtInvertSurface( int nId)
|
|
{
|
|
INTVECTOR vIds ;
|
|
vIds.push_back( nId) ;
|
|
return ( ExeInvertSurface( vIds) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//-------------------------------------------------------------------------------
|
|
int
|
|
__stdcall EgtExplodeSurface( int nId, int* pnCount)
|
|
{
|
|
return ExeExplodeSurface( nId, pnCount) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtSurfFrAdd( int nId1, int nId2)
|
|
{
|
|
return ( ExeSurfFrAdd( nId1, nId2) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtSurfFrSubtract( int nId1, int nId2)
|
|
{
|
|
return ( ExeSurfFrSubtract( nId1, nId2) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtSurfFrIntersect( int nId1, int nId2)
|
|
{
|
|
return ( ExeSurfFrIntersect( nId1, nId2) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtSurfFrOffset( int nId, double dDist, int nType)
|
|
{
|
|
return ( ExeSurfFrOffset( nId, dDist, nType) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtSurfTmRemoveFacet( int nId, int nFacet)
|
|
{
|
|
return ( ExeSurfTmRemoveFacet( nId, nFacet) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtSurfTmAdd( int nId1, int nId2, bool bTwoColors)
|
|
{
|
|
return ( ExeSurfTmAdd( nId1, nId2, bTwoColors) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtSurfTmSubtract( int nId1, int nId2, bool bTwoColors)
|
|
{
|
|
return ( ExeSurfTmSubtract( nId1, nId2, bTwoColors) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtSurfTmIntersect( int nId1, int nId2, bool bTwoColors)
|
|
{
|
|
return ( ExeSurfTmIntersect( nId1, nId2, bTwoColors) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtSurfTmResetTwoColors( int nId)
|
|
{
|
|
return ( ExeSurfTmResetTwoColors( nId) ? TRUE : FALSE) ;
|
|
}
|