Problem 2295 - The bug in visualization of G4Hype
Summary: The bug in visualization of G4Hype
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: graphics_reps (show other problems)
Version: other
Hardware: All All
: P4 minor
Assignee: Evgueni.Tcherniaev
URL:
Depends on:
Blocks:
 
Reported: 2020-11-30 17:50 CET by Tao Lin
Modified: 2020-12-02 09:39 CET (History)
0 users

See Also:


Attachments
Display with bug at -halfZ (6.52 KB, image/png)
2020-11-30 17:50 CET, Tao Lin
Details

Note You need to log in before you can comment on or make changes to this problem.
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!