File indexing completed on 2026-04-09 07:48:53
0001
0002
0003
0004 #include "SSim.hh"
0005 #include "CSGFoundry.h"
0006 #include "OPTICKS_LOG.hh"
0007
0008 int main(int argc, char** argv)
0009 {
0010 OPTICKS_LOG(argc, argv);
0011
0012 SSim::Create();
0013
0014 CSGFoundry* fd = CSGFoundry::Load();
0015 LOG(info) << "foundry " << fd->desc() ;
0016 fd->summary();
0017
0018 unsigned num_prim = fd->getNumPrim() ;
0019
0020 LOG(info)
0021 << " num_prim " << num_prim
0022 ;
0023
0024 unsigned solidIdx = 0u ;
0025 SCSGPrimSpec psh = fd->getPrimSpec(solidIdx);
0026
0027 int modulo = 0 ;
0028 psh.dump("", modulo);
0029
0030 return 0 ;
0031 }
0032