From 9d7207e8985866b26cfb7a5c6a0c10e48a6ccd79 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 9 May 2024 11:19:57 +0200 Subject: [PATCH] Include : - aggiornamento prototipi - aggiunta funzione LuaSetParam per BOOLVECTOR. --- EGnLuaAux.h | 18 ++++++++++++++++++ EXeExecutor.h | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/EGnLuaAux.h b/EGnLuaAux.h index 0767a40..98fa942 100644 --- a/EGnLuaAux.h +++ b/EGnLuaAux.h @@ -323,6 +323,24 @@ LuaSetParam( lua_State* L, const std::string& sPar) return true ; } +//---------------------------------------------------------------------------- +inline bool +LuaSetParam( lua_State* L, const BOOLVECTOR& vPar) +{ + try { + int nSize = int( vPar.size()) ; + lua_createtable( L, nSize, 0) ; + for ( int i = 1 ; i <= nSize ; ++ i) { + lua_pushboolean( L, ( vPar[i-1] ? 1 : 0)) ; + lua_rawseti( L, -2, i) ; + } + } + catch( ...) { + return false ; + } + return true ; +} + //---------------------------------------------------------------------------- inline bool LuaSetParam( lua_State* L, const INTVECTOR& vPar) diff --git a/EXeExecutor.h b/EXeExecutor.h index 5a1b876..f0d14cd 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -761,7 +761,7 @@ EXE_EXPORT bool ExeSurfTmGetFacetBBox( int nId, int nFacet, int nFlag, BBox3d& b EXE_EXPORT bool ExeSurfTmGetFacetBBoxGlob( int nId, int nFacet, int nFlag, BBox3d& b3Box) ; EXE_EXPORT bool ExeSurfTmGetFacetBBoxRef( int nId, int nFacet, int nFlag, const Frame3d& frRef, BBox3d& b3Box) ; EXE_EXPORT bool ExeSurfTmGetFacetOutlineInfo( int nId, int nFacet, int nRefId, - int& nStatus, INTVECTOR& vnAdj, DBLVECTOR& vdLen, VCT3DVECTOR& vvtNorm, DBLVECTOR& vdElev) ; + int& nStatus, BOOLVECTOR& vbOpen, INTVECTOR& vnAdj, DBLVECTOR& vdLen, VCT3DVECTOR& vvtNorm, DBLVECTOR& vdElev) ; EXE_EXPORT int ExeSurfTmGetEdges( int nId, int nDestGrpId, bool bSmoothAng, int* pnCount) ; EXE_EXPORT bool ExeSurfBezierGetPoint( int nSurfId, double dU, double dV, int nRefId, Point3d& ptP) ; EXE_EXPORT bool ExeSurfBezierGetPointD1( int nSurfId, double dU, double dV, int nUsd, int nVsd, int nRefId,