Message: /vis/scene/add/scale - only once per scale? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question /vis/scene/add/scale - only once per scale? 

Forum: (Graphical) User Interfaces
Date: 11 Nov, 2014
From: Patrik Eschle <Patrik Eschle>

In order to show a ruler in my plot (in OGL), I tried to add several scales of the same length:

 /vis/scene/add/scale 2 cm z 1 0 0 manual 0 -5 -1 cm
 /vis/scene/add/scale 2 cm z 1 0 0 manual 0 -5 -3 cm

The first scale (at -1 cm) is displayed. For the second scale I get the error message:

G4Scene::AddRunDurationModel: model "G4ScaleModel: 2 cm  z"
  is already in the run-duration list of scene "scene-0".

I can add scales of different lengths (3 cm, 4 cm). So it seems that length, unit and direction are the handle for a scale. Which seems a bit odd. Do I miss something?

I did not dive into the code, but I'm of course willing to track this down.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: /vis/scene/add/scale - only once per scale?   (John Allison - 11 Nov, 2014)
 Add Message Add Message
to: "/vis/scene/add/scale - only once per scale?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]