Changeset 822

Show
Ignore:
Timestamp:
07/03/07 23:30:20 (10 months ago)
Author:
vossg
Message:

fixed : vtk cluster

: fc flags off by 1
: compiler problems (texgrapf, fboview)

reenabled : collada integration

osg writer (scenefilehandler)

added : 1 compat (container funcs)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/SConstruct

    r819 r822  
    4343 
    4444import OpenSG.AddOnHacks 
     45import OpenSG.ColladaOption 
    4546 
    4647from BuildInfoScanner import BuildInfoScanner 
     
    343344         use_cxxlib_icc = True 
    344345 
    345       OpenSG.AddOnHacks.apply() 
    346        
    347346      common_env = Environment(ENV = os.environ, 
    348347                               tools=['gnulink', 'intelicc', 'intelicpc', 'doxygen'], 
     
    502501    "NVPerfSDK", "Location of the NVPerfSDK library", library = "NVPerfSDK", 
    503502    header = "NVPerfSDK.h", required = False) 
     503 
     504optional_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 
     514optional_libs_options["xml2"] = sca_opts.StandardPackageOption( 
     515    "xml2", "Location of the xml2 library", library = "xml2", 
     516    required = False) 
    504517 
    505518vtk_libs = ['vtkRendering', 
     
    776789                "OSG_WITH_NVPERFSDK" : optional_libs_options["NVPerfSDK"].isAvailable(), 
    777790                "OSG_WITH_VTK"       : optional_libs_options["vtk"].isAvailable(), 
     791                "OSG_WITH_COLLADA"   : optional_libs_options["collada"].isAvailable(), 
    778792                "OSG_GV_BETA"        : common_env["enable_gv_beta"] 
    779793               } 
  • trunk/Source/Contrib/VTK/OSGVTKMapper.cpp

    r785 r822  
    528528    this->_executeTime.Modified(); 
    529529         
    530     OSG::Thread::getCurrentChangeList()->commitChangesAndClear(); 
     530    OSG::Thread::getCurrentChangeList()->commitChanges(); 
    531531#endif 
    532532} 
     
    567567{ 
    568568   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; 
    569588} 
    570589 
     
    615634{ 
    616635#ifdef USE_RENDER_TRAVERSAL 
    617     RenderTraversalAction *pAction =  
     636    RenderTraversalAction *pRTAction =  
    618637        dynamic_cast<RenderTraversalAction *>(action); 
    619 #else 
     638#endif 
    620639    RenderAction *pAction = dynamic_cast<RenderAction *>(action); 
    621 #endif 
    622640     
    623641    this->execute(); 
    624642 
    625     if(pAction == NULL) 
     643 
     644    if(pAction == NULL && pRTAction == NULL) 
    626645        return ActionBase::Skip; 
    627646 
    628     pAction->useNodeList(); 
     647    if(pAction!= NULL) 
     648    { 
     649        pAction->useNodeList(); 
    629650 
    630651//    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        } 
    633664    } 
    634665 
  • trunk/Source/Contrib/VTK/OSGVTKMapper.fcd

    r565 r822  
    2525                visibility="external" 
    2626                access="public" 
     27        fieldFlags="FClusterLocal" 
    2728        > 
    2829        </Field> 
     
    3334                visibility="external" 
    3435                access="public" 
     36        fieldFlags="FClusterLocal" 
    3537        > 
    3638        </Field> 
     
    4143                visibility="external" 
    4244                access="public" 
     45        fieldFlags="FClusterLocal" 
    4346        > 
    4447        </Field> 
     
    4952                visibility="external" 
    5053                access="public" 
     54        fieldFlags="FClusterLocal" 
    5155        > 
    5256        </Field> 
     
    5761                visibility="external" 
    5862                access="public" 
     63        fieldFlags="FClusterLocal" 
    5964        > 
    6065        </Field> 
     
    6570                visibility="external" 
    6671                access="public" 
     72        fieldFlags="FClusterLocal" 
    6773        > 
    6874        </Field> 
     
    7379                visibility="external" 
    7480                access="public" 
     81        fieldFlags="FClusterLocal" 
    7582        > 
    7683        </Field> 
     
    8188                visibility="external" 
    8289                access="public" 
     90        fieldFlags="FClusterLocal" 
    8391        > 
    8492        </Field> 
     
    8997                visibility="external" 
    9098                access="public" 
     99        fieldFlags="FClusterLocal" 
    91100        > 
    92101        </Field> 
  • trunk/Source/Contrib/VTK/OSGVTKMapperBase.cpp

    r795 r822  
    154154        GeoRootsFieldId, GeoRootsFieldMask, 
    155155        false, 
    156         Field::MFDefaultFlags
     156        (Field::FClusterLocal)
    157157        static_cast     <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 
    158158        reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFGeoRoots)); 
     
    166166        GeometriesFieldId, GeometriesFieldMask, 
    167167        false, 
    168         Field::MFDefaultFlags
     168        (Field::FClusterLocal)
    169169        static_cast     <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 
    170170        reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFGeometries)); 
     
    178178        MaterialsFieldId, MaterialsFieldMask, 
    179179        false, 
    180         Field::MFDefaultFlags
     180        (Field::FClusterLocal)
    181181        static_cast     <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 
    182182        reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFMaterials)); 
     
    190190        MaterialChunksFieldId, MaterialChunksFieldMask, 
    191191        false, 
    192         Field::MFDefaultFlags
     192        (Field::FClusterLocal)
    193193        static_cast     <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 
    194194        reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFMaterialChunks)); 
     
    202202        PositionsFieldId, PositionsFieldMask, 
    203203        false, 
    204         Field::MFDefaultFlags
     204        (Field::FClusterLocal)
    205205        static_cast     <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 
    206206        reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFPositions)); 
     
    214214        LengthFieldId, LengthFieldMask, 
    215215        false, 
    216         Field::MFDefaultFlags
     216        (Field::FClusterLocal)
    217217        static_cast     <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 
    218218        reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFLength)); 
     
    226226        TypesFieldId, TypesFieldMask, 
    227227        false, 
    228         Field::MFDefaultFlags
     228        (Field::FClusterLocal)
    229229        static_cast     <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 
    230230        reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFTypes)); 
     
    238238        ColorsFieldId, ColorsFieldMask, 
    239239        false, 
    240         Field::MFDefaultFlags
     240        (Field::FClusterLocal)
    241241        static_cast     <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 
    242242        reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFColors)); 
     
    250250        NormalsFieldId, NormalsFieldMask, 
    251251        false, 
    252         Field::MFDefaultFlags
     252        (Field::FClusterLocal)
    253253        static_cast     <FieldEditMethodSig>(&VTKMapperBase::invalidEditField), 
    254254        reinterpret_cast<FieldGetMethodSig >(&VTKMapperBase::getMFNormals)); 
     
    294294    "\t\tvisibility=\"external\"\n" 
    295295    "\t\taccess=\"public\"\n" 
     296    "        fieldFlags=\"FClusterLocal\"\n" 
    296297    "\t>\n" 
    297298    "\t</Field>\n" 
     
    302303    "\t\tvisibility=\"external\"\n" 
    303304    "\t\taccess=\"public\"\n" 
     305    "        fieldFlags=\"FClusterLocal\"\n" 
    304306    "\t>\n" 
    305307    "\t</Field>\n" 
     
    310312    "\t\tvisibility=\"external\"\n" 
    311313    "\t\taccess=\"public\"\n" 
     314    "        fieldFlags=\"FClusterLocal\"\n" 
    312315    "\t>\n" 
    313316    "\t</Field>\n" 
     
    318321    "\t\tvisibility=\"external\"\n" 
    319322    "\t\taccess=\"public\"\n" 
     323    "        fieldFlags=\"FClusterLocal\"\n" 
    320324    "\t>\n" 
    321325    "\t</Field>\n" 
     
    326330    "\t\tvisibility=\"external\"\n" 
    327331    "\t\taccess=\"public\"\n" 
     332    "        fieldFlags=\"FClusterLocal\"\n" 
    328333    "\t>\n" 
    329334    "\t</Field>\n" 
     
    334339    "\t\tvisibility=\"external\"\n" 
    335340    "\t\taccess=\"public\"\n" 
     341    "        fieldFlags=\"FClusterLocal\"\n" 
    336342    "\t>\n" 
    337343    "\t</Field>\n" 
     
    342348    "\t\tvisibility=\"external\"\n" 
    343349    "\t\taccess=\"public\"\n" 
     350    "        fieldFlags=\"FClusterLocal\"\n" 
    344351    "\t>\n" 
    345352    "\t</Field>\n" 
     
    350357    "\t\tvisibility=\"external\"\n" 
    351358    "\t\taccess=\"public\"\n" 
     359    "        fieldFlags=\"FClusterLocal\"\n" 
    352360    "\t>\n" 
    353361    "\t</Field>\n" 
     
    358366    "\t\tvisibility=\"external\"\n" 
    359367    "\t\taccess=\"public\"\n" 
     368    "        fieldFlags=\"FClusterLocal\"\n" 
    360369    "\t>\n" 
    361370    "\t</Field>\n" 
  • trunk/Source/Contrib/VTK/build.info

    r819 r822  
    2525      osg_test_libs = [ 'OSGGroup','OSGDrawable', 'OSGState',  
    2626                        'OSGFileIO', 'OSGText', 'OSGRenderTraversal', 
    27                         'OSGUtil', 'OSGWindowGLUT' ]    
     27                        'OSGUtil', 'OSGWindowGLUT', 'OSGCluster' ]    
    2828      test_cpppath = [] 
    2929      test_libpath = [] 
  • trunk/Source/System/Cluster/Base/OSGRemoteAspect.cpp

    r795 r822  
    472472            connection.putValue((*changedI)->uiContainerId); 
    473473             
     474#if 0 
    474475            fprintf(stderr, "Send Create %d %d\n", 
    475476                    typeId, 
    476477                    (*changedI)->uiContainerId); 
     478#endif 
    477479 
    478480            // sent container to create 
     
    500502            mask &=  fcPtr->getFieldFlags()->_bClusterLocalFlags; 
    501503 
    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", 
    504506                    fcPtr->getTypeId(), 
    505507                    (*changedI)->uiContainerId, 
     
    507509                    (*changedI)->whichField, 
    508510                    fcPtr->getFieldFlags()->_bClusterLocalFlags); 
    509             */ 
     511#endif 
    510512 
    511513            if(mask) 
  • trunk/Source/System/Cluster/Server/testClusterServer.cpp

    r790 r822  
    3333        return; 
    3434    try 
    35     { 
     35    {                                                        
     36        commitChanges(); 
    3637        server->render(ract); 
    3738        // clear changelist from prototypes 
     
    221222        glEnable( GL_NORMALIZE ); 
    222223        ract=RenderAction::create(); 
     224//        ract->setFrustumCulling(false); 
    223225        window     = GLUTWindow::create(); 
    224226        window->setGlutId(winid); 
  • trunk/Source/System/Cluster/build.info

    r540 r822  
    99   # Tests' dependencies 
    1010 
    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 
    1219   test_cpppath  = [] 
    1320   test_libpath  = [] 
  • trunk/Source/System/FieldContainer/Attachments/OSGVoidPAttachment.cpp

    r784 r822  
    116116 
    117117void setVoidP(AttachmentContainerPtrConstArg  pContainer,  
    118               void                           *pData) 
     118              void                           *pData, 
     119              bool                            bInternal) 
    119120{ 
    120121    if(pContainer == NullFC) 
    121122    { 
    122         FFATAL(("setName: no container?!?")); 
     123        FFATAL(("setVoidP: no container?!?")); 
    123124        return; 
    124125    } 
     
    142143        if(voidP == NullFC) 
    143144        { 
    144             FFATAL(("setName: Name Attachment is not castable to Name?!?")); 
     145            FFATAL(("setVoidP: VoidP Attachment is not castable to Name?!?")); 
    145146            return; 
    146147        } 
    147148    } 
    148      
    149    
     149      
    150150    voidP->editFieldPtr()->setValue(pData); 
     151    voidP->setInternal(bInternal); 
    151152} 
    152153 
  • trunk/Source/System/FieldContainer/Attachments/OSGVoidPAttachment.h

    r107 r822  
    121121OSG_SYSTEM_DLLMAPPING 
    122122void  setVoidP(AttachmentContainerPtrConstArg  container,  
    123                void                           *pData    ); 
     123               void                           *pData, 
     124               bool                            bInternal = false); 
    124125 
    125126OSG_END_NAMESPACE 
  • trunk/Source/System/FieldContainer/Base/OSGContainerPtrFuncs.h

    r784 r822  
    207207    setRefd(pTarget, pSource); 
    208208} 
     209 
     210template <class OutPtrT> inline 
     211OutPtrT dynamic_fcptr_cast(FieldContainerPtrConst pPtr) 
     212{ 
     213    return dynamic_cast<OutPtrT>(pPtr); 
     214} 
    209215#endif 
    210216 
  • trunk/Source/System/FieldContainer/Base/OSGFieldContainer.inl

    r795 r822  
    390390    if(source == NULL) 
    391391    { 
    392               BitVector           bCurrent = 0x0001
     392              BitVector           bCurrent = 0x0002
    393393        const FieldContainerType &pType    = this->getType(); 
    394394 
  • trunk/Source/System/FileIO/Collada/OSGColladaIntegration.cpp

    r785 r822  
    4141 */ 
    4242 
     43#include "OSGConfig.h" 
     44 
    4345#ifdef OSG_WITH_COLLADA 
    4446 
     
    5052#include <cstdio> 
    5153 
    52 #include "OSGConfig.h" 
    5354#include "OSGBaseTypes.h" 
    5455 
     
    134135    _pMeta->setName("ColladaIntegrationBase"); 
    135136 
    136         _pMeta->registerConstructor(ColladaIntegrationBase::create); 
     137        _pMeta->registerClass(ColladaIntegrationBase::create, &_pMeta); 
    137138 
    138139        _pMeta->setElementSize(sizeof(ColladaIntegrationBase)); 
     
    191192 
    192193    _pMeta->setName("VisualSceneIntegration"); 
    193         _pMeta->registerConstructor(VisualSceneIntegration::create); 
     194        _pMeta->registerClass(VisualSceneIntegration::create, &_pMeta); 
    194195 
    195196        domVisual_scene::_Meta->setMetaIntegration(_pMeta); 
     
    434435 
    435436    _pMeta->setName("NodeIntegration"); 
    436         _pMeta->registerConstructor(NodeIntegration::create); 
     437        _pMeta->registerClass(NodeIntegration::create, &_pMeta); 
    437438 
    438439        domNode::_Meta->setMetaIntegration(_pMeta); 
     
    575576 
    576577    _pMeta->setName("GeometryInstanceIntegration"); 
    577         _pMeta->registerConstructor(GeometryInstanceIntegration::create); 
     578        _pMeta->registerClass(GeometryInstanceIntegration::create, &_pMeta); 
    578579 
    579580        domInstance_geometry::_Meta->setMetaIntegration(_pMeta); 
     
    856857        pGeo = iCurrGeo->second; 
    857858 
    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  ()); 
    860861    } 
    861862 
     
    879880 
    880881        vPropVecOut[aInput[i]->getOffset()] = 
    881             cast_static<GeoUInt32PropertyPtr>(pGeo->getIndex(uiPropIdx)); 
     882            static_cast<GeoUInt32PropertyPtr>(pGeo->getIndex(uiPropIdx)); 
    882883    } 
    883884 
     
    11101111 
    11111112    _pMeta->setName("GeometryIntegration"); 
    1112         _pMeta->registerConstructor(GeometryIntegration::create); 
     1113        _pMeta->registerClass(GeometryIntegration::create, &_pMeta); 
    11131114 
    11141115        domGeometry::_Meta->setMetaIntegration(_pMeta); 
     
    12251226 
    12261227    _pMeta->setName("SourceIntegration"); 
    1227         _pMeta->registerConstructor(SourceIntegration::create); 
     1228        _pMeta->registerClass(SourceIntegration::create, &_pMeta); 
    12281229 
    12291230        domSource::_Meta->setMetaIntegration(_pMeta); 
     
    16851686 
    16861687    _pMeta->setName("EffectIntegration"); 
    1687         _pMeta->registerConstructor(EffectIntegration::create); 
     1688        _pMeta->registerClass(EffectIntegration::create, &_pMeta); 
    16881689 
    16891690        domEffect::_Meta->setMetaIntegration(_pMeta); 
  • trunk/Source/System/FileIO/Collada/OSGColladaIntegration.h

    r785 r822  
    5050//  Includes 
    5151//--------------------------------------------------------------------------- 
     52 
     53#include "OSGConfig.h" 
    5254 
    5355#ifdef OSG_WITH_COLLADA 
  • trunk/Source/System/FileIO/Collada/build.info

    r264 r822  
    22# 
    33 
    4 # For now, ignore the collada loader 
    5 stop_traversal = True 
     4if option_pass: 
     5    print "Processing option pass" 
     6else: 
     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  
    4848#include "OSGOSGSceneFileType.h" 
    4949 
    50 #ifdef OSG_HAVE_OSGWRITER // CHECK 
    5150#include "OSGOSGWriter.h" 
    52 #endif 
    5351 
    5452#include "OSGOSGLoader.h" 
     
    139137    } 
    140138 
    141 #ifdef OSG_HAVE_OSGWRITER // CHECK 
    142     OSGWriter writer(os, 4); 
     139    IndentOutStreamMixin<OutStream> iOStream(os); 
     140 
     141    OSGWriter writer(iOStream, 4); 
    143142    writer.write(root); 
    144 #endif 
    145143 
    146144    return true; 
  • trunk/Source/System/Window/Foreground/OSGTextureGrabForeground.h

    r795 r822  
    4444 
    4545#include "OSGTextureGrabForegroundBase.h" 
     46#include "OSGTextureObjChunk.h" 
    4647 
    4748OSG_BEGIN_NAMESPACE 
  • trunk/Source/System/Window/FrameBufferObjects/OSGFBOViewport.h

    r795 r822  
    4444 
    4545#include "OSGFBOViewportBase.h" 
     46#include "OSGFrameBufferObject.h" 
    4647 
    4748OSG_BEGIN_NAMESPACE 
  • trunk/Source/WindowSystem/GLUT/build.info

    r391 r822  
    2424         test_cpppath = [] 
    2525         test_libpath = [] 
     26 
     27         vtk_option = opts.GetOption("vtk") 
     28 
     29         if vtk_option.isAvailable(): 
     30             osg_test_libs.append('OSGContribVTK') 
     31 
    2632   else: 
    2733         library = "OSGWindowGLUT" 
  • trunk/Source/WindowSystem/GLUT/testWindowGLUT.cpp

    r790 r822  
    1717#include <OSGTransform.h> 
    1818#include <OSGAction.h> 
    19 #include <OSGRenderAction.h> 
     19#include <OSGRenderTraversalAction.h> 
    2020#include <OSGSimpleGeometry.h> 
    2121#include <OSGSceneFileHandler.h> 
     
    3434#include "OSGChangeList.h" 
    3535#include "OSGIOStream.h" 
     36#include "OSGGeoFunctions.h" 
     37#include "OSGGraphOp.h" 
     38#include "OSGGraphOpFactory.h" 
    3639 
    3740#include "OSGTrackball.h" 
     
    3942using namespace OSG; 
    4043 
    41 RenderAction *renact; 
     44RenderTraversalAction *rentravact; 
    4245 
    4346NodePtr  root; 
     
    100103    } 
    101104 
    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); 
    107110 
    108111//    std::cerr << "------------- AR START --------------" << std::endl; 
     
    204207        case 27:     
    205208            subRef(win); 
    206             delete renact; 
     209            delete rentravact; 
    207210            osgExit();  
    208211            exit(0); 
     
    354357        std::cerr << "Couldn't load file, ignoring" << std::endl; 
    355358 
    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); 
    358382     
    359383    Thread::getCurrentChangeList()->commitChanges(); 
     
    362386//    file->dump(); 
    363387 
    364 #if 0 
     388#if 1 
    365389    char *outFileName = "/tmp/foo.osg"; 
    366390 
     
    453477    // Action 
    454478     
    455     renact = RenderAction::create(); 
     479    rentravact = RenderTraversalAction::create(); 
    456480//    renact->setFrustumCulling(false); 
    457481 
     
    469493                  min[1] + (max[1] - min[1]) / 2, 
    470494                  min[2] + (max[2] - min[2]) / 2); 
     495 
     496    fprintf(stderr, "Startpos : %f %f %f\n", pos[0], pos[1], pos[2]); 
    471497 
    472498    tball.setMode( Trackball::OSGObject );