Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #include "OPTICKS_LOG.hh"
0002 
0003 #ifdef WITH_OLD_FRAME
0004 #include "sframe.h"
0005 #else
0006 #include "sfr.h"
0007 #endif
0008 
0009 #include "SFrameGenstep.hh"
0010 #include "NP.hh"
0011 
0012 int main(int argc, char** argv)
0013 {
0014     OPTICKS_LOG(argc, argv);
0015 
0016     float extent = 100.f ;
0017 #ifdef WITH_OLD_FRAME
0018     sframe fr ;
0019     fr.ce.w = extent ;
0020     NP* gs = SFrameGenstep::MakeCenterExtentGenstep_FromFrame(fr);
0021 #else
0022     sfr fr = sfr::MakeFromExtent<float>(extent) ;
0023     NP* gs = SFrameGenstep::MakeCenterExtentGenstep_FromFrame(fr);
0024 #endif
0025 
0026     LOG(info) << " gs " << ( gs ? gs->sstr() : "-" ) ;
0027     gs->save("$FOLD/gs.npy");
0028 
0029     return 0 ;
0030 
0031 }