porting forceWireframe and forceSolid#1038
Conversation
|
Hello @tontyoutoure I tried your PR, and I do not succeed to have a good results. "wireframe" or "solid" I do not see any differences. Is it possible for you to propose a test like test004_simple_visu in which we can see the difference between wireframe and solid please? |
|
@tbaudier Hi, if you wrote = instead of == in your test and you just typoed here, I will try it myself couples of hours later. |
|
Sorry, I did a mistake. I have the same results than you for qt. But I do not see any differences with vrml, and you? BTW can you add a test004_simple_visu_solid.py with solid option please? |
|
I'm not familiar with the vrml system. I will try looking into it but I can't guarantee the result. I will add an test for the solid option. On the other hand, maybe call it |
|
@tbaudier I took a look at the vrml visu test and get the same result with you. I dig into Geant4 vrml visulization code, and found the following code at source/visualization/VRML/src/G4VRML2SceneHandlerFunc.icc:637 if(pVA)
{
if(pVA->IsForceDrawingStyle() &&
(pVA->GetForcedDrawingStyle() == G4VisAttributes::wireframe))
{
// wireframe style is assigned to this object
flagWF = true;
}
else if(cur_view_param.GetDrawingStyle() == G4ViewParameters::wireframe)
{
// current viewing style is wireframe
flagWF = true;
}
}which means if you set the scene view style to wireframe, VRML visualizer will render all volume as wireframe (which means transparent). After changing view style, changing waterbox's style does gives correct result:
vs
However I don't find a way of running and it did not work. I renamed the attribute from |
|
Thank you for the renaming and the test. I also try on my side for vrml without success. Maybe we can add in the doc that it's only available for Qt. |




Hi, I think these to options for visualizing volume in Gate 9 is quite handy when visualizing complicated structures, and take the liberty of porting them into opengate 10.