Skip to content

Commit 2000cf6

Browse files
committed
Fix docs
1 parent 6ea7c4a commit 2000cf6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/G4Vis/G4Vis.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ module G4Vis
8888
m = GeometryBasics.mesh(solid; withnormals=true)
8989
Makie.mesh!(s, m; kwargs...)
9090
end
91+
return fig
9192
end
9293
function Geant4.draw!(s, solid::G4VSolid; wireframe::Bool=false, kwargs...)
9394
if wireframe
@@ -104,6 +105,7 @@ module G4Vis
104105
fig = Figure()
105106
s = LScene(fig[1, 1])
106107
draw!(s, GetLogicalVolume(pv)[]; wireframe=wireframe, maxlevel=maxlevel, kwargs...)
108+
return fig
107109
end
108110
function Geant4.draw!(s, pv::G4VPhysicalVolume; wireframe::Bool=false, maxlevel::Int64=999, kwargs...)
109111
draw!(s, GetLogicalVolume(pv)[]; wireframe=wireframe, maxlevel=maxlevel, kwargs...)
@@ -114,6 +116,7 @@ module G4Vis
114116
fig = Figure()
115117
s = LScene(fig[1, 1])
116118
draw!(s, GetLogicalVolume(pv[])[]; wireframe=wireframe, maxlevel=maxlevel, kwargs...)
119+
return fig
117120
end
118121
function Geant4.draw!(s, pv::CxxPtr{G4VPhysicalVolume}; wireframe::Bool=false, maxlevel::Int64=999, kwargs...)
119122
draw!(s, GetLogicalVolume(pv[])[]; wireframe=wireframe, maxlevel=maxlevel, kwargs...)
@@ -124,7 +127,7 @@ module G4Vis
124127
fig = Figure()
125128
s = LScene(fig[1, 1])
126129
Geant4.draw!(s, lv; wireframe=wireframe, maxlevel=maxlevel, kwargs...)
127-
return s
130+
return fig
128131
end
129132

130133
function Geant4.draw!(s, lv::G4LogicalVolume; wireframe::Bool=false, maxlevel::Int64=999, kwargs...)

0 commit comments

Comments
 (0)