Problem 958

Summary: G4Hype is not displayed in VRML
Product: Geant4 Reporter: Koichi Murakami <Koichi.Murakami>
Component: visualization/VRMLAssignee: Satoshi Tanaka <stanaka>
Status: RESOLVED FIXED    
Severity: minor CC: Gabriele.Cosmo, John.Allison
Priority: P5    
Version: 9.0   
Hardware: All   
OS: All   
Attachments: VRML file of G4Hype object

Description Koichi Murakami 2007-07-13 08:51:40 CEST
Created attachment 6 [details]
VRML file of G4Hype object

G4Hype objects cannot be properly displayed on VRML.

I attach a VRML file of a G4Hype object, which is created by

G4Hype("hype", 20.*cm, 30.*cm, 0.7, 0.7, 50.*cm)

. I'm not sure weather this is just a limitation of the (OpenGL) capability
or a bug.

For other solid objects, they looks fine.

Please take a look.
Comment 1 Gabriele Cosmo 2008-02-06 18:46:26 CET
I can confirm that the shape is not correctly visualized.
The responsible for this I believe is this portion of code in G4Hype.cc:

G4Polyhedron* G4Hype::CreatePolyhedron() const 
{
  // Tube for now!!!
  //
  return new G4PolyhedronTube (endInnerRadius, endOuterRadius, halfLenZ);
}

:-)

and corresponding missing graphics primitive in HepPolyhedron ?

ehm... John, Satoshi ?

Comment 2 Gabriele Cosmo 2008-04-22 10:18:03 CEST
Correct graphical representation has been added to G4Hype and missing graphics primitive in HepPolyhedron included. Available in tags: "geom-specific-V09-01-08" and "greps-V09-01-04".
Will be included in next release.