|Message: OpenGL .eps file output -- flattening cutaways with lots of structure?||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I have a relatively complex structured detector inside a cryostat. In order to validate my geometry builder, I made a couple of nice cutaway drawings and wrote out EPS files using OpenGL:
/vis/open OGLIX 600x600-0+0 /vis/viewer/set/autoRefresh false /vis/viewer/set/culling global /vis/viewer/zoomTo 1.5 ### Elevation drawing at midplane of cryostat /vis/viewer/set/viewpointThetaPhi 89 -90 /vis/viewer/addCutawayPlane 0 0 0 cm 0 1 0 /vis/drawVolume /vis/viewer/flush /vis/ogl/printEPS ### Plan drawing cut at top of innermost cryostat /vis/viewer/set/viewpointThetaPhi 0 0 /vis/viewer/clearCutawayPlanes /vis/viewer/addCutawayPlane 0 0 21.52 cm 0 0 -1 /vis/drawVolume /vis/viewer/flush /vis/ogl/printEPS
This worked beautifully, and I got two G4OpenGL_0.eps (7tower_cutaway.eps) and _1.eps (7tower_cutaway-top.eps) files as expected, and which I've attached.
However, those files are huge! The side view is 2.3 MB, and the top view is 1.9 MB. For comparison, a top view without the cutaway (which is a really boring red cylinder with two red cylinders sticking out of it :-) is less than 1 MB. When I convert the EPS files to PDF, the situation is even worse, at over 5 MB each.
The "culling global" command did help (the side view was 3.5 MB before that), but not nearly as much as I think it should have. Do either /vis/viewer or /vis/ogl have a command which is analogous to the "flatten" action you find in something like PhotoShop? That is, instead of writing out drawing and over-drawing actions for all of the partially hidden objects, only the actually visible pieces are drawn in the output. I wasn't able to find anything obvious, either with |help| or in the Applications Book.
-- Michael Kelsey
Attachment: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2010/12/14/11.46-11337-7tower_cutaway.eps http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2010/12/14/11.46-47805-7tower_cutaway-top.eps
|Inline Depth:||Outline Depth:||Add message:|