Files
EgtInterface/API_GdbModifySurf.cpp
T
Dario Sassi e5ef0f4fdc EgtInterface 1.6x1 :
- aggiunta interfaccia per EgtGetSurfTmSilhouette.
2016-12-12 09:30:07 +00:00

86 lines
2.7 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) ;
}
//----------------------------------------------------------------------------
int
__stdcall EgtExtractSurfFrChunkLoops( int nId, int nChunk, int nDestGrpId, int* pnCount)
{
return ExeExtractSurfFrChunkLoops( nId, nChunk, nDestGrpId, pnCount) ;
}
//----------------------------------------------------------------------------
int
__stdcall EgtGetSurfTmSilhouette( int nId, const double vtDir[3], int nDestGrpId, int nRefType, int* pnCount)
{
return ExeGetSurfTmSilhouette( nId, vtDir, nDestGrpId, nRefType, pnCount) ;
}
//----------------------------------------------------------------------------
int
__stdcall EgtExtractSurfTmFacetLoops( int nId, int nFacet, int nDestGrpId, int* pnCount)
{
return ExeExtractSurfTmFacetLoops( nId, nFacet, nDestGrpId, pnCount) ;
}