Files
EgtInterface/API_GdbModifySurf.cpp
Dario Sassi 875656bbed EgtInterface 2.6j1 :
- aggiunta interfaccia per EgtSurfTmSetFaceColor
- modificata interfaccia per EgtSetMark.
2024-10-01 15:23:28 +02:00

163 lines
5.3 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2015-2015
//----------------------------------------------------------------------------
// File : API_GdbModifySurf.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 EgtApproxSurface( int nId, double dLinTol)
{
return ( ExeApproxSurface( nId, dLinTol) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
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 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
__stdcall EgtSurfTmToTriangles( int nId, int* pnCount)
{
return ExeSurfTmToTriangles( nId, pnCount) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfTmRemoveFacet( int nId, int nFacet)
{
return ( ExeSurfTmRemoveFacet( nId, nFacet) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtCutSurfTmPlane( int nId, const double ptOn[3], const double vtN[3], BOOL bSaveOnEq, int nRefType)
{
return ( ExeCutSurfTmPlane( nId, ptOn, vtN, ( bSaveOnEq != FALSE), nRefType) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtCutSurfTmClosedCurve( int nSurfId, int nCurveId, BOOL bSaveOnEq)
{
return ( ExeCutSurfTmClosedCurve( nSurfId, nCurveId, ( bSaveOnEq != FALSE)) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfTmAdd( int nId1, int nId2, BOOL bTwoColors)
{
return ( ExeSurfTmAdd( nId1, nId2, ( bTwoColors != FALSE)) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfTmSubtract( int nId1, int nId2, BOOL bTwoColors)
{
return ( ExeSurfTmSubtract( nId1, nId2, ( bTwoColors != FALSE)) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfTmIntersect( int nId1, int nId2, BOOL bTwoColors)
{
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
__stdcall EgtSurfTmResetTwoColors( int nId)
{
return ( ExeSurfTmResetTwoColors( nId) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
int
__stdcall EgtSurfTmSplit( int nId, int nSplitterId, int* pnCount)
{
return ExeSurfTmSplit( nId, nSplitterId, pnCount) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfTmCut( int nId, int nCutterId, BOOL bInVsOut, BOOL bSaveOnEq)
{
return ( ExeSurfTmCut( nId, nCutterId, ( bInVsOut != FALSE), ( bSaveOnEq != FALSE)) ? TRUE : FALSE) ;
}