Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:17

0001 /**
0002 SGLM_SmoothNormals_test.cc
0003 =============================
0004 
0005 ::
0006 
0007     ~/o/sysrap/tests/SGLM_SmoothNormals_test.sh
0008 
0009 **/
0010 
0011 #include "NPFold.h"
0012 #include "SGLM.h"
0013 
0014 int main()
0015 {
0016     NPFold* fold = NPFold::Load("$MESH_FOLD"); 
0017 
0018     const NP* a_vtx = fold->get("vtx"); 
0019     const NP* a_tri = fold->get("tri"); 
0020 
0021     NP* a_nrm = SGLM::SmoothNormals( a_vtx, a_tri ); 
0022 
0023     a_nrm->save("$MESH_FOLD/nrm.npy") ; 
0024 
0025     return 0 ;  
0026 }