Ignore:
Timestamp:
May 12, 2009, 11:04:00 AM (15 years ago)
Author:
garnier
Message:

en test pour les refresh, ne marche pas bien

Location:
trunk/source/visualization/modeling/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/modeling/src/G4LogicalVolumeModel.cc

    r954 r1038  
    9696      // Add Voxels.
    9797      G4DrawVoxels dv;
     98
     99      // FIXME : LG 1 May 2009 : return a pointer...should be destroy by the compiler
    98100      G4PlacedPolyhedronList* pPPL =
    99101        dv.CreatePlacedPolyhedra (fpTopPV -> GetLogicalVolume ());
     
    102104        const G4Polyhedron& polyhedron = (*pPPL)[i].GetPolyhedron ();
    103105        sceneHandler.BeginPrimitives (transform);
    104         sceneHandler.AddPrimitive (polyhedron);
     106        printf("G4LogicalVolumeModel::DescribeYourselfTo BEFORE ADD %d\n",fpTopPV -> GetLogicalVolume ());
     107        if (&polyhedron) {
     108          printf("G4LogicalVolumeModel::DescribeYourselfTo  poly FAILED\n");
     109        } else {
     110          printf("G4LogicalVolumeModel::DescribeYourselfTo  poly OK\n");
     111        }
     112        sceneHandler.AddPrimitive (polyhedron);
     113        printf("G4LogicalVolumeModel::DescribeYourselfTo AFTER ADD\n");
    105114        sceneHandler.EndPrimitives ();
    106115      }
  • trunk/source/visualization/modeling/src/G4PhysicalVolumeModel.cc

    r954 r1038  
    761761  }
    762762  values->push_back(G4AttValue("PVPath", oss.str(),""));
     763  if (fpCurrentLV) {
     764    printf("G4PhysicalVolumeModel::CreateCurrentAttValues OK\n");
     765  } else {
     766    printf("G4PhysicalVolumeModel::CreateCurrentAttValues Failed\n");
     767  }
    763768  values->push_back(G4AttValue("LVol", fpCurrentLV->GetName(),""));
    764769  G4VSolid* pSol = fpCurrentLV->GetSolid();
Note: See TracChangeset for help on using the changeset viewer.