File indexing completed on 2026-04-09 07:48:52
0001 #include "OPTICKS_LOG.hh"
0002
0003 #include "scuda.h"
0004 #include "saabb.h"
0005 #include "SSim.hh"
0006
0007 #include "CSGFoundry.h"
0008
0009 int main(int argc, char** argv)
0010 {
0011 OPTICKS_LOG(argc, argv);
0012
0013
0014 std::vector<CSGNode> nds ;
0015 nds.push_back( CSGNode::Sphere( 50.f ));
0016
0017
0018
0019
0020 SSim::Create();
0021
0022 CSGFoundry fd ;
0023
0024 unsigned num_prim = 1 ;
0025 const char* label = "test" ;
0026 fd.addSolid(num_prim, label );
0027
0028 AABB bb ;
0029 CSGPrim* pr = fd.addPrimNodes( bb, nds, nullptr );
0030
0031 LOG(info) << fd.desc() ;
0032
0033 LOG(info) << pr->desc() ;
0034
0035 return 0 ;
0036 }