Lib method of Object3D setVisibility not working.

Started by icarusfactor, March 14, 2011, 09:10:19 AM

Previous topic - Next topic

icarusfactor

I am trying to use world_table.atom.setVisibility(  Object3D.OBJ_VISIBLE ); as per documented here.
http://www.jpct.net/doc/com/threed/jpct/Object3D.html#setVisibility%28boolean%29

But I get the error.

cannot find symbol
    [javac] symbol  : method setVisibility(boolean)
    [javac] location: class com.threed.jpct.Object3D[]
    [javac]                  world_table.atom.setVisibility( Object3D.OBJ_VISIBLE );


I am using the Beta version of the JPCT lib, not the one on the main website.

I want to use this method to loop through all the ball or stick items to show both or one or the other, later want to use it to only show known chains(amino acids , viruses , cancer etc..) of atoms.



EgonOlsen

You seem to try to set this on an Object3D[]-array instead of a single Object3D...

icarusfactor

Thanks , that was an easy one. I was just testing it out to see if it worked without FOR loop first and did not write it for an array , so you where correct. It is now working, thanks.