Problem 2295

Summary: The bug in visualization of G4Hype
Product: Geant4 Reporter: Tao Lin <lintao>
Component: graphics_repsAssignee: Evgueni.Tcherniaev
Status: RESOLVED FIXED    
Severity: minor    
Priority: P4    
Version: other   
Hardware: All   
OS: All   
Attachments: Display with bug at -halfZ

Description Tao Lin 2020-11-30 17:50:30 CET
Created attachment 647 [details]
Display with bug at -halfZ

Dear Geant4 experts,

I have reported this bug in the user forum (https://geant4-forum.web.cern.ch/t/the-visualization-of-g4hype-is-not-correct/3993).

The problem is that the visualization of the inner vertex at -halfZ is not correct. Please see the the attachment.

To fix the problem, I have modified the file source/graphics_reps/src/HepPolyhedron.cc and fixed it as following: 

$ diff source/graphics_reps/src/HepPolyhedron{.orig,}.cc
1730c1730
<   for(G4int i = n+1; i < n+n; i++)
---
>   for(G4int i = n+1; i < n+n-1 ; i++)
1735,1736c1735,1736
<   zz[n+n] = -halfZ;
<   rr[n+n] = rr[n];
---
>   zz[n+n-1] = -halfZ;
>   rr[n+n-1] = rr[n];

Thank you!
Tao Lin
IHEP, Beijing
Comment 1 Evgueni.Tcherniaev 2020-12-02 09:38:51 CET
Fixed HepPolyhedronHype will be available in the upcoming release Geant4 10.07.
Thank you for reporting the problem!