File indexing completed on 2026-04-09 07:48:53
0001
0002
0003 #include <iostream>
0004 #include <vector>
0005
0006 #include "scuda.h"
0007 #include "squad.h"
0008 #include "CSGNode.h"
0009
0010 void test_Zero()
0011 {
0012 CSGNode n0 = {} ;
0013 std::cout << " CSGNode n0 = {} ; n0.desc() : " << n0.desc() << std::endl ;
0014
0015 std::cout << " n0 " << n0 << std::endl ;
0016
0017 CSGNode nz = CSGNode::Zero();
0018 std::cout << " CSGNode nz = CSGNode::Zero() ; nz.desc() : " << nz.desc() << std::endl ;
0019
0020 std::cout << " nz " << nz << std::endl ;
0021
0022 std::vector<CSGNode> nn(15) ;
0023 std::cout << " std::vector<CSGNode> nn(15) ; nn[0].desc() .... " << std::endl ;
0024 for(int i=0 ; i < int(nn.size()) ; i++)
0025 {
0026 const CSGNode& n = nn[i] ;
0027 std::cout << " n.desc " << n.desc() << std::endl ;
0028 std::cout << " n " << n << std::endl ;
0029 }
0030
0031
0032 }
0033
0034
0035 void test_Slot()
0036 {
0037 std::vector<CSGNode> nn(15) ;
0038
0039 nn[8] = CSGNode::Sphere(100.f);
0040 nn[14] = CSGNode::Box3(1000.f);
0041
0042
0043 for(int i=0 ; i < int(nn.size()) ; i++)
0044 {
0045 const CSGNode& n = nn[i] ;
0046 std::cout << " i " << i << std::endl ;
0047 std::cout << " n.desc " << n.desc() << std::endl ;
0048 std::cout << " n " << n << std::endl ;
0049 }
0050 }
0051
0052
0053 int main(int argc, char** argv)
0054 {
0055
0056
0057
0058
0059 test_Slot();
0060
0061
0062 return 0 ;
0063 }