Hi Florin,

>I'm not the expert in Xj3d, but I expect my observation is true: maybe the
>TriangleArrays just don't have any associated vertex colours and uses some
>Material ?

Thanks a lot, that has really sorted me out.  If anyone else is
searching for how to do this, my code is below.

Cheers,

Hugh

// test to see if you need this method or the previous one before

SceneGraphPath sceneGraphPath = pickResult.getSceneGraphPath();
Node shape = sceneGraphPath.getObject();
if(shape instanceof Shape3D)
{
  Appearance appearance = ((Shape3D) shape).getAppearance();
  Material material = appearance.getMaterial();
  material.setDiffuseColor(colour);
}

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to