Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement visualization for G4GenericPolycone #17

Closed
Yuan-Ru-Lin opened this issue Dec 20, 2024 · 1 comment
Closed

Implement visualization for G4GenericPolycone #17

Yuan-Ru-Lin opened this issue Dec 20, 2024 · 1 comment

Comments

@Yuan-Ru-Lin
Copy link
Member

The following code snippet results an error.

using Geant4

det = G4JLDetectorGDML("detector.gdml", validate_schema=false)
_det = GetVolume("Detector")

using GLMakie, Rotations, LinearAlgebra, IGLWrap_jll  ## to force loading G4Vis extension
draw(_det[])

ERROR: UndefVarError: `G4GenericPolycone` not defined in `Geant4`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
 [1] getproperty
   @ ./Base.jl:42 [inlined]
 [2] draw!(s::LScene, lv::Geant4.G4LogicalVolumeDereferenced, t::G4Vis.Transformation3D{Float64}, level::Int64, wireframe::Bool, maxlevel::Int64)
   @ G4Vis ~/.julia/packages/Geant4/zurgD/ext/G4Vis/G4Vis.jl:88
 [3] draw(lv::Geant4.G4LogicalVolumeDereferenced; wireframe::Bool, maxlevel::Int64)
   @ G4Vis ~/.julia/packages/Geant4/zurgD/ext/G4Vis/G4Vis.jl:48
 [4] draw(lv::Geant4.G4LogicalVolumeDereferenced)
   @ G4Vis ~/.julia/packages/Geant4/zurgD/ext/G4Vis/G4Vis.jl:45
 [5] top-level scope
   @ REPL[5]:1

@peremato said that the problem is that the drawing primitives for G4GenericPolycone has not been implemented.

PS the GDML can be accessed at detector.gdml.txt. (Please remove .txt at the end. I added it so that it can be uploaded on GitHub.)

@peremato
Copy link
Member

peremato commented Jan 9, 2025

New version 0.2.1 has been released with support for G4GenericPolycone. ec99537

@peremato peremato closed this as completed Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants