#include "Acp_base.h" #include "GMT/GmtHandl.h" #include "GEO.h" #include "GLI.h" #include "MTH.h" #include "COL.h" #include "SPO.h" #include "LST.h" #include "MEC.h" /*#include "ENV.h"*/ #include "SND.h" /*#include "SRF.h"*/ #include "SCT.h" #include "PCS.h" #include "PO.h" #include "IPO.h" #include "ISI.h" #include "RAY.h" static GEO_tdstColor Tab_stColor[10000]; /* Compute RLI for all object in a super object.*/ /* This is a récursive function.*/ void RAY_vComputeAllIPOInSector(HIE_tdxHandleToSuperObject _hSuperObject) { /* GEO_tdstVisualSet_ *p_stVisualSet;*/ ACP_tdxHandleOfObject hPhysicalObject; MTH_tdxReal xTemp; ACP_tdxIndex xI,xJ; ACP_tdxHandleToRadiosity hISI; ACP_tdxIndex xNbVertex; HIE_tdxHandleToSuperObject hchildSO; GEO_tdxHandleToVisualSet p_stVisualSet; long lNbLOD; ISI_tdstColor *pstColorISI; HIE_fn_vPushMatrix (_hSuperObject); if (HIE_fn_ulGetSuperObjectType(_hSuperObject) & (HIE_C_ulIPO | HIE_C_ulIPO_Mirror)) { p_stVisualSet=PO_fn_hGetVisualSet(IPO_fn_hGetPhysicalObject((IPO_tdxHandleToInstanciatedPhysicalObject)HIE_fn_hGetSuperObjectObject(_hSuperObject))); lNbLOD=GLI_lGetVisualSetNumbertOfLOD(p_stVisualSet); hISI=IPO_fn_hGetRadiosity((IPO_tdxHandleToInstanciatedPhysicalObject)HIE_fn_hGetSuperObjectObject(_hSuperObject)); if(!hISI) { hISI=ISI_fn_hCreateISI(lNbLOD); for (xJ=0;xJxNbPoints); } IPO_fn_vSetRadiosity((IPO_tdxHandleToInstanciatedPhysicalObject)HIE_fn_hGetSuperObjectObject(_hSuperObject),hISI); } for (xJ=0;xJ