Hi Mohammed,

simply set the color in the appearance you use for your Shape3D, don't
use setColors() and setColorIndices().

Regards,

Ingo


>  Hello,
> I am doing the following to set the color of points of my triangles. I
> am setting  the same color for all points.
>
> is there a way to set color for all points once so I can save speicher.
>
>
> //code....
>
> Color3f Red= new Color3f(160,0,0);
> Color3f Yellow = new Color3f(255,255,0);
> Color3f Green= new Color3f(0,255,0);
>  Color3f [] mycolors= {Blue,Red,Green,Yellow};
>
> int  [] colorindicesfront = new int [indice_size];
>  for(int h= 0; h<indice_size; h++)
>             {
>              colorindicesfront[h]=0; // same color for all points and
> useless  memory use
>
>              }
>
>  geoinfofront.setCoordinates(coordarray);
> geoinfofront.setColors(mycolors);
> geoinfofront.setColorIndices(colorindicesfront);
>
> //code...
> thanks
>
> Mohammed

===========================================================================
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