Changeset 822
- Timestamp:
- 07/03/07 23:30:20 (10 months ago)
- Files:
-
- trunk/SConstruct (modified) (4 diffs)
- trunk/Source/Contrib/VTK/OSGVTKMapper.cpp (modified) (3 diffs)
- trunk/Source/Contrib/VTK/OSGVTKMapper.fcd (modified) (9 diffs)
- trunk/Source/Contrib/VTK/OSGVTKMapperBase.cpp (modified) (18 diffs)
- trunk/Source/Contrib/VTK/build.info (modified) (1 diff)
- trunk/Source/Contrib/VTK/testVTKCluster.cpp (added)
- trunk/Source/Contrib/VTK/testVTKClusterConnect.cpp (added)
- trunk/Source/System/Cluster/Base/OSGRemoteAspect.cpp (modified) (3 diffs)
- trunk/Source/System/Cluster/Server/testClusterServer.cpp (modified) (2 diffs)
- trunk/Source/System/Cluster/build.info (modified) (1 diff)
- trunk/Source/System/FieldContainer/Attachments/OSGVoidPAttachment.cpp (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Attachments/OSGVoidPAttachment.h (modified) (1 diff)
- trunk/Source/System/FieldContainer/Base/OSGContainerPtrFuncs.h (modified) (1 diff)
- trunk/Source/System/FieldContainer/Base/OSGFieldContainer.inl (modified) (1 diff)
- trunk/Source/System/FileIO/Collada/OSGColladaIntegration.cpp (modified) (11 diffs)
- trunk/Source/System/FileIO/Collada/OSGColladaIntegration.h (modified) (1 diff)
- trunk/Source/System/FileIO/Collada/build.info (modified) (1 diff)
- trunk/Source/System/FileIO/OSG/OSGOSGSceneFileType.cpp (modified) (2 diffs)
- trunk/Source/System/Window/Foreground/OSGTextureGrabForeground.h (modified) (1 diff)
- trunk/Source/System/Window/FrameBufferObjects/OSGFBOViewport.h (modified) (1 diff)
- trunk/Source/WindowSystem/GLUT/build.info (modified) (1 diff)
- trunk/Source/WindowSystem/GLUT/testWindowGLUT.cpp (modified) (9 diffs)
- trunk/Tools/scons-build/OpenSG/ColladaOption.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/SConstruct
r819 r822 43 43 44 44 import OpenSG.AddOnHacks 45 import OpenSG.ColladaOption 45 46 46 47 from BuildInfoScanner import BuildInfoScanner … … 343 344 use_cxxlib_icc = True 344 345 345 OpenSG.AddOnHacks.apply()346 347 346 common_env = Environment(ENV = os.environ, 348 347 tools=['gnulink', 'intelicc', 'intelicpc', 'doxygen'], … … 502 501 "NVPerfSDK", "Location of the NVPerfSDK library", library = "NVPerfSDK", 503 502 header = "NVPerfSDK.h", required = False) 503 504 optional_libs_options["collada"] = OpenSG.ColladaOption.ColladaOption( 505 "collada", "Location of the collada dom library", library = 506 ["collada_dae", 507 "collada_LIBXMLPlugin", 508 "collada_STLDatabase", 509 "collada_dom", 510 "collada_stdErrPlugin", 511 "collada_dae"], 512 header = "dae/daeIntegrationObject.h", required = True) 513 514 optional_libs_options["xml2"] = sca_opts.StandardPackageOption( 515 "xml2", "Location of the xml2 library", library = "xml2", 516 required = False) 504 517 505 518 vtk_libs = ['vtkRendering', … … 776 789 "OSG_WITH_NVPERFSDK" : optional_libs_options["NVPerfSDK"].isAvailable(), 777 790 "OSG_WITH_VTK" : optional_libs_options["vtk"].isAvailable(), 791 "OSG_WITH_COLLADA" : optional_libs_options["collada"].isAvailable(), 778 792 "OSG_GV_BETA" : common_env["enable_gv_beta"] 779 793 } trunk/Source/Contrib/VTK/OSGVTKMapper.cpp
r785 r822 528 528 this->_executeTime.Modified(); 529 529 530 OSG::Thread::getCurrentChangeList()->commitChanges AndClear();530 OSG::Thread::getCurrentChangeList()->commitChanges(); 531 531 #endif 532 532 } … … 567 567 { 568 568 Inherited::dump(uiIndent, bvFlags); 569 570 indentLog(uiIndent, PLOG); 571 PLOG << "{" << std::endl; 572 573 indentLog(uiIndent + 4, PLOG); 574 PLOG << "Root" << std::endl; 575 576 if(_sfRoot.getValue() != OSGNullFC) 577 { 578 _sfRoot.getValue()->dump(uiIndent + 8, bvFlags); 579 } 580 else 581 { 582 indentLog(uiIndent + 8, PLOG); 583 PLOG << "(NULL)" << std::endl; 584 } 585 586 indentLog(uiIndent, PLOG); 587 PLOG << "}" << std::endl; 569 588 } 570 589 … … 615 634 { 616 635 #ifdef USE_RENDER_TRAVERSAL 617 RenderTraversalAction *p Action =636 RenderTraversalAction *pRTAction = 618 637 dynamic_cast<RenderTraversalAction *>(action); 619 #e lse638 #endif 620 639 RenderAction *pAction = dynamic_cast<RenderAction *>(action); 621 #endif622 640 623 641 this->execute(); 624 642 625 if(pAction == NULL) 643 644 if(pAction == NULL && pRTAction == NULL) 626 645 return ActionBase::Skip; 627 646 628 pAction->useNodeList(); 647 if(pAction!= NULL) 648 { 649 pAction->useNodeList(); 629 650 630 651 // if(pAction->isVisible(getCPtr(_sfRoot.getValue()))) 631 { 632 pAction->addNode(_sfRoot.getValue()); 652 { 653 pAction->addNode(_sfRoot.getValue()); 654 } 655 } 656 else if(pRTAction!= NULL) 657 { 658 pRTAction->useNodeList(); 659 660 // if(pAction->isVisible(getCPtr(_sfRoot.getValue()))) 661 { 662 pRTAction->addNode(_sfRoot.getValue()); 663 } 633 664 } 634 665 trunk/Source/Contrib/VTK/OSGVTKMapper.fcd
r565 r822 25 25 visibility="external" 26 26 access="public" 27 fieldFlags="FClusterLocal" 27 28 > 28 29 </Field> … … 33 34 visibility="external" 34 35 access="public" 36 fieldFlags="FClusterLocal" 35 37 > 36 38 </Field> … … 41 43 visibility="external" 42 44 access="public" 45 fieldFlags="FClusterLocal" 43 46 > 44 47 </Field> … … 49 52 visibility="external" 50 53 access="public" 54 fieldFlags="FClusterLocal" 51 55 > 52 56 </Field> … … 57 61 visibility="external" 58 62 access="public" 63 fieldFlags="FClusterLocal" 59 64 > 60 65 </Field> … … 65 70 visibility="external" 66 71 access="public" 72 fieldFlags="FClusterLocal" 67 73 > 68 74 </Field> … … 73 79 visibility="external" 74 80 access="public" 81 fieldFlags="FClusterLocal" 75 82 > 76 83 </Field> … … 81 88 visibility="external" 82 89 access="public" 90 fieldFlags="FClusterLocal" 83 91 > 84 92 </Field> … … 89 97 visibility="external" 90 98 access="public" 99 fieldFlags="FClusterLocal" 91 100 > 92 101 </Field> trunk/Source/Contrib/VTK/OSGVTKMapperBase.cpp
r795 r822 154 154 GeoRootsFieldId, GeoRootsFieldMask, 155 155 false, 156 Field::MFDefaultFlags,156 (Field::FClusterLocal), 157 157 static_cast <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 158 158 reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFGeoRoots)); … … 166 166 GeometriesFieldId, GeometriesFieldMask, 167 167 false, 168 Field::MFDefaultFlags,168 (Field::FClusterLocal), 169 169 static_cast <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 170 170 reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFGeometries)); … … 178 178 MaterialsFieldId, MaterialsFieldMask, 179 179 false, 180 Field::MFDefaultFlags,180 (Field::FClusterLocal), 181 181 static_cast <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 182 182 reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFMaterials)); … … 190 190 MaterialChunksFieldId, MaterialChunksFieldMask, 191 191 false, 192 Field::MFDefaultFlags,192 (Field::FClusterLocal), 193 193 static_cast <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 194 194 reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFMaterialChunks)); … … 202 202 PositionsFieldId, PositionsFieldMask, 203 203 false, 204 Field::MFDefaultFlags,204 (Field::FClusterLocal), 205 205 static_cast <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 206 206 reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFPositions)); … … 214 214 LengthFieldId, LengthFieldMask, 215 215 false, 216 Field::MFDefaultFlags,216 (Field::FClusterLocal), 217 217 static_cast <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 218 218 reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFLength)); … … 226 226 TypesFieldId, TypesFieldMask, 227 227 false, 228 Field::MFDefaultFlags,228 (Field::FClusterLocal), 229 229 static_cast <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 230 230 reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFTypes)); … … 238 238 ColorsFieldId, ColorsFieldMask, 239 239 false, 240 Field::MFDefaultFlags,240 (Field::FClusterLocal), 241 241 static_cast <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 242 242 reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFColors)); … … 250 250 NormalsFieldId, NormalsFieldMask, 251 251 false, 252 Field::MFDefaultFlags,252 (Field::FClusterLocal), 253 253 static_cast <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 254 254 reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFNormals)); … … 294 294 "\t\tvisibility=\"external\"\n" 295 295 "\t\taccess=\"public\"\n" 296 " fieldFlags=\"FClusterLocal\"\n" 296 297 "\t>\n" 297 298 "\t</Field>\n" … … 302 303 "\t\tvisibility=\"external\"\n" 303 304 "\t\taccess=\"public\"\n" 305 " fieldFlags=\"FClusterLocal\"\n" 304 306 "\t>\n" 305 307 "\t</Field>\n" … … 310 312 "\t\tvisibility=\"external\"\n" 311 313 "\t\taccess=\"public\"\n" 314 " fieldFlags=\"FClusterLocal\"\n" 312 315 "\t>\n" 313 316 "\t</Field>\n" … … 318 321 "\t\tvisibility=\"external\"\n" 319 322 "\t\taccess=\"public\"\n" 323 " fieldFlags=\"FClusterLocal\"\n" 320 324 "\t>\n" 321 325 "\t</Field>\n" … … 326 330 "\t\tvisibility=\"external\"\n" 327 331 "\t\taccess=\"public\"\n" 332 " fieldFlags=\"FClusterLocal\"\n" 328 333 "\t>\n" 329 334 "\t</Field>\n" … … 334 339 "\t\tvisibility=\"external\"\n" 335 340 "\t\taccess=\"public\"\n" 341 " fieldFlags=\"FClusterLocal\"\n" 336 342 "\t>\n" 337 343 "\t</Field>\n" … … 342 348 "\t\tvisibility=\"external\"\n" 343 349 "\t\taccess=\"public\"\n" 350 " fieldFlags=\"FClusterLocal\"\n" 344 351 "\t>\n" 345 352 "\t</Field>\n" … … 350 357 "\t\tvisibility=\"external\"\n" 351 358 "\t\taccess=\"public\"\n" 359 " fieldFlags=\"FClusterLocal\"\n" 352 360 "\t>\n" 353 361 "\t</Field>\n" … … 358 366 "\t\tvisibility=\"external\"\n" 359 367 "\t\taccess=\"public\"\n" 368 " fieldFlags=\"FClusterLocal\"\n" 360 369 "\t>\n" 361 370 "\t</Field>\n" trunk/Source/Contrib/VTK/build.info
r819 r822 25 25 osg_test_libs = [ 'OSGGroup','OSGDrawable', 'OSGState', 26 26 'OSGFileIO', 'OSGText', 'OSGRenderTraversal', 27 'OSGUtil', 'OSGWindowGLUT' ]27 'OSGUtil', 'OSGWindowGLUT', 'OSGCluster' ] 28 28 test_cpppath = [] 29 29 test_libpath = [] trunk/Source/System/Cluster/Base/OSGRemoteAspect.cpp
r795 r822 472 472 connection.putValue((*changedI)->uiContainerId); 473 473 474 #if 0 474 475 fprintf(stderr, "Send Create %d %d\n", 475 476 typeId, 476 477 (*changedI)->uiContainerId); 478 #endif 477 479 478 480 // sent container to create … … 500 502 mask &= fcPtr->getFieldFlags()->_bClusterLocalFlags; 501 503 502 /* 503 fprintf(stderr, "Send Changed %d %d %p %016llx %016llx\n",504 #if 0 505 fprintf(stderr, "Send Changed %d %d %p %016llx %016llx\n", 504 506 fcPtr->getTypeId(), 505 507 (*changedI)->uiContainerId, … … 507 509 (*changedI)->whichField, 508 510 fcPtr->getFieldFlags()->_bClusterLocalFlags); 509 */ 511 #endif 510 512 511 513 if(mask) trunk/Source/System/Cluster/Server/testClusterServer.cpp
r790 r822 33 33 return; 34 34 try 35 { 35 { 36 commitChanges(); 36 37 server->render(ract); 37 38 // clear changelist from prototypes … … 221 222 glEnable( GL_NORMALIZE ); 222 223 ract=RenderAction::create(); 224 // ract->setFrustumCulling(false); 223 225 window = GLUTWindow::create(); 224 226 window->setGlutId(winid); trunk/Source/System/Cluster/build.info
r540 r822 9 9 # Tests' dependencies 10 10 11 osg_test_libs = ['OSGState', 'OSGDrawable', 'OSGUtil', 'OSGWindowGLUT'] 11 osg_test_libs = ['OSGState', 'OSGDrawable', 'OSGUtil', 'OSGWindowGLUT', 12 'OSGGroup', 'OSGText', 'OSGFileIO'] 13 14 vtk_option = opts.GetOption("vtk") 15 16 if vtk_option.isAvailable(): 17 osg_test_libs.append('OSGContribVTK') 18 12 19 test_cpppath = [] 13 20 test_libpath = [] trunk/Source/System/FieldContainer/Attachments/OSGVoidPAttachment.cpp
r784 r822 116 116 117 117 void setVoidP(AttachmentContainerPtrConstArg pContainer, 118 void *pData) 118 void *pData, 119 bool bInternal) 119 120 { 120 121 if(pContainer == NullFC) 121 122 { 122 FFATAL(("set Name: no container?!?"));123 FFATAL(("setVoidP: no container?!?")); 123 124 return; 124 125 } … … 142 143 if(voidP == NullFC) 143 144 { 144 FFATAL(("set Name: NameAttachment is not castable to Name?!?"));145 FFATAL(("setVoidP: VoidP Attachment is not castable to Name?!?")); 145 146 return; 146 147 } 147 148 } 148 149 149 150 150 voidP->editFieldPtr()->setValue(pData); 151 voidP->setInternal(bInternal); 151 152 } 152 153 trunk/Source/System/FieldContainer/Attachments/OSGVoidPAttachment.h
r107 r822 121 121 OSG_SYSTEM_DLLMAPPING 122 122 void setVoidP(AttachmentContainerPtrConstArg container, 123 void *pData ); 123 void *pData, 124 bool bInternal = false); 124 125 125 126 OSG_END_NAMESPACE trunk/Source/System/FieldContainer/Base/OSGContainerPtrFuncs.h
r784 r822 207 207 setRefd(pTarget, pSource); 208 208 } 209 210 template <class OutPtrT> inline 211 OutPtrT dynamic_fcptr_cast(FieldContainerPtrConst pPtr) 212 { 213 return dynamic_cast<OutPtrT>(pPtr); 214 } 209 215 #endif 210 216 trunk/Source/System/FieldContainer/Base/OSGFieldContainer.inl
r795 r822 390 390 if(source == NULL) 391 391 { 392 BitVector bCurrent = 0x000 1;392 BitVector bCurrent = 0x0002; 393 393 const FieldContainerType &pType = this->getType(); 394 394 trunk/Source/System/FileIO/Collada/OSGColladaIntegration.cpp
r785 r822 41 41 */ 42 42 43 #include "OSGConfig.h" 44 43 45 #ifdef OSG_WITH_COLLADA 44 46 … … 50 52 #include <cstdio> 51 53 52 #include "OSGConfig.h"53 54 #include "OSGBaseTypes.h" 54 55 … … 134 135 _pMeta->setName("ColladaIntegrationBase"); 135 136 136 _pMeta->registerC onstructor(ColladaIntegrationBase::create);137 _pMeta->registerClass(ColladaIntegrationBase::create, &_pMeta); 137 138 138 139 _pMeta->setElementSize(sizeof(ColladaIntegrationBase)); … … 191 192 192 193 _pMeta->setName("VisualSceneIntegration"); 193 _pMeta->registerC onstructor(VisualSceneIntegration::create);194 _pMeta->registerClass(VisualSceneIntegration::create, &_pMeta); 194 195 195 196 domVisual_scene::_Meta->setMetaIntegration(_pMeta); … … 434 435 435 436 _pMeta->setName("NodeIntegration"); 436 _pMeta->registerC onstructor(NodeIntegration::create);437 _pMeta->registerClass(NodeIntegration::create, &_pMeta); 437 438 438 439 domNode::_Meta->setMetaIntegration(_pMeta); … … 575 576 576 577 _pMeta->setName("GeometryInstanceIntegration"); 577 _pMeta->registerC onstructor(GeometryInstanceIntegration::create);578 _pMeta->registerClass(GeometryInstanceIntegration::create, &_pMeta); 578 579 579 580 domInstance_geometry::_Meta->setMetaIntegration(_pMeta); … … 856 857 pGeo = iCurrGeo->second; 857 858 858 pLengthsOut = cast_static<GeoUInt32PropertyPtr>(pGeo->getLengths());859 pTypesOut = cast_static<GeoUInt8PropertyPtr >(pGeo->getTypes ());859 pLengthsOut = static_cast<GeoUInt32PropertyPtr>(pGeo->getLengths()); 860 pTypesOut = static_cast<GeoUInt8PropertyPtr >(pGeo->getTypes ()); 860 861 } 861 862 … … 879 880 880 881 vPropVecOut[aInput[i]->getOffset()] = 881 cast_static<GeoUInt32PropertyPtr>(pGeo->getIndex(uiPropIdx));882 static_cast<GeoUInt32PropertyPtr>(pGeo->getIndex(uiPropIdx)); 882 883 } 883 884 … … 1110 1111 1111 1112 _pMeta->setName("GeometryIntegration"); 1112 _pMeta->registerC onstructor(GeometryIntegration::create);1113 _pMeta->registerClass(GeometryIntegration::create, &_pMeta); 1113 1114 1114 1115 domGeometry::_Meta->setMetaIntegration(_pMeta); … … 1225 1226 1226 1227 _pMeta->setName("SourceIntegration"); 1227 _pMeta->registerC onstructor(SourceIntegration::create);1228 _pMeta->registerClass(SourceIntegration::create, &_pMeta); 1228 1229 1229 1230 domSource::_Meta->setMetaIntegration(_pMeta); … … 1685 1686 1686 1687 _pMeta->setName("EffectIntegration"); 1687 _pMeta->registerC onstructor(EffectIntegration::create);1688 _pMeta->registerClass(EffectIntegration::create, &_pMeta); 1688 1689 1689 1690 domEffect::_Meta->setMetaIntegration(_pMeta); trunk/Source/System/FileIO/Collada/OSGColladaIntegration.h
r785 r822 50 50 // Includes 51 51 //--------------------------------------------------------------------------- 52 53 #include "OSGConfig.h" 52 54 53 55 #ifdef OSG_WITH_COLLADA trunk/Source/System/FileIO/Collada/build.info
r264 r822 2 2 # 3 3 4 # For now, ignore the collada loader 5 stop_traversal = True 4 if option_pass: 5 print "Processing option pass" 6 else: 7 8 collada_option = opts.GetOption("collada") 9 xml2_option = opts.GetOption("xml2") 10 11 if not collada_option.isAvailable() and not xml2_option.isAvailable(): 12 stop_traversal = True 13 else: 14 library = "OSGFileIO" 15 16 libs.extend(collada_option.library) 17 libs.extend([xml2_option.library] ) 18 19 if collada_option.incDir: 20 cpppath.extend(collada_option.incDir) 21 22 if collada_option.libDir: 23 libpath.append(collada_option.libDir) 24 trunk/Source/System/FileIO/OSG/OSGOSGSceneFileType.cpp
r780 r822 48 48 #include "OSGOSGSceneFileType.h" 49 49 50 #ifdef OSG_HAVE_OSGWRITER // CHECK51 50 #include "OSGOSGWriter.h" 52 #endif53 51 54 52 #include "OSGOSGLoader.h" … … 139 137 } 140 138 141 #ifdef OSG_HAVE_OSGWRITER // CHECK 142 OSGWriter writer(os, 4); 139 IndentOutStreamMixin<OutStream> iOStream(os); 140 141 OSGWriter writer(iOStream, 4); 143 142 writer.write(root); 144 #endif145 143 146 144 return true; trunk/Source/System/Window/Foreground/OSGTextureGrabForeground.h
r795 r822 44 44 45 45 #include "OSGTextureGrabForegroundBase.h" 46 #include "OSGTextureObjChunk.h" 46 47 47 48 OSG_BEGIN_NAMESPACE trunk/Source/System/Window/FrameBufferObjects/OSGFBOViewport.h
r795 r822 44 44 45 45 #include "OSGFBOViewportBase.h" 46 #include "OSGFrameBufferObject.h" 46 47 47 48 OSG_BEGIN_NAMESPACE trunk/Source/WindowSystem/GLUT/build.info
r391 r822 24 24 test_cpppath = [] 25 25 test_libpath = [] 26 27 vtk_option = opts.GetOption("vtk") 28 29 if vtk_option.isAvailable(): 30 osg_test_libs.append('OSGContribVTK') 31 26 32 else: 27 33 library = "OSGWindowGLUT" trunk/Source/WindowSystem/GLUT/testWindowGLUT.cpp
r790 r822 17 17 #include <OSGTransform.h> 18 18 #include <OSGAction.h> 19 #include <OSGRender Action.h>19 #include <OSGRenderTraversalAction.h> 20 20 #include <OSGSimpleGeometry.h> 21 21 #include <OSGSceneFileHandler.h> … … 34 34 #include "OSGChangeList.h" 35 35 #include "OSGIOStream.h" 36 #include "OSGGeoFunctions.h" 37 #include "OSGGraphOp.h" 38 #include "OSGGraphOpFactory.h" 36 39 37 40 #include "OSGTrackball.h" … … 39 42 using namespace OSG; 40 43 41 Render Action *renact;44 RenderTraversalAction *rentravact; 42 45 43 46 NodePtr root; … … 100 103 } 101 104 102 Thread::getCurrentChangeList()->commitChanges();103 104 //win->render(rentravact);105 106 win->render(renact);105 commitChanges(); 106 107 win->render(rentravact); 108 109 // win->render(renact); 107 110 108 111 // std::cerr << "------------- AR START --------------" << std::endl; … … 204 207 case 27: 205 208 subRef(win); 206 delete ren act;209 delete rentravact; 207 210 osgExit(); 208 211 exit(0); … … 354 357 std::cerr << "Couldn't load file, ignoring" << std::endl; 355 358 356 file = makeTorus( .5, 2, 16, 16 ); 357 } 359 file = makeSphere(4, 2.0); 360 361 } 362 363 #if 0 364 GeometryPtr pGeo = cast_dynamic<GeometryPtr>(file->getCore()); 365 366 if(pGeo == NullFC && file->getNChildren() != 0) 367 { 368 pGeo = cast_dynamic<GeometryPtr>(file->getChild(0)->getCore()); 369 } 370 371 if(pGeo == NullFC) 372 { 373 fprintf(stderr, "no geo\n"); 374 } 375 #endif 376 377 GraphOp *op = GraphOpFactory::the().create("Stripe"); 378 379 op->traverse(file); 380 // createOptimizedPrimitives(pGeo); 381 // createSharedIndex(pGeo); 358 382 359 383 Thread::getCurrentChangeList()->commitChanges(); … … 362 386 // file->dump(); 363 387 364 #if 0388 #if 1 365 389 char *outFileName = "/tmp/foo.osg"; 366 390 … … 453 477 // Action 454 478 455 ren act = RenderAction::create();479 rentravact = RenderTraversalAction::create(); 456 480 // renact->setFrustumCulling(false); 457 481 … … 469 493 min[1] + (max[1] - min[1]) / 2, 470 494 min[2] + (max[2] - min[2]) / 2); 495 496 fprintf(stderr, "Startpos : %f %f %f\n", pos[0], pos[1], pos[2]); 471 497 472 498 tball.setMode( Trackball::OSGObject );
