Qiuli Sun wrote:

> Hi,
>
> I tried to create a cone which is pickable.
>
> If I use Cone(1.8f, 10.0f) and setAppearance(appearance). The color of cone
> is correct. But I was not able to set Primitive.ENABLED_GEOMETRY_PICKING
> since setPrimitiveFlags() is depreciated.
>
> If I use Cone(1.8f, 10.0f, Primitive.ENABLED_GEOMETRY_PICKING, appearance),
> the color of cone is not correct since I got a white cone. The document says
> that if appearance is null, the color of cone is white. I am sure that my
> appearance  is not null. What happens to this cone constructor?
>
> When I use Cylinder(1.8f, 10.0f, Primitive.ENABLED_GEOMETRY_PICKING,
> appearance), the same thing happens.
>
> My question is how to make a cone and cylinder pickable?
>
> Any idea on this?
>
> Thank you very much.
>
> Qiuli Sun
>

Just a thought

have you tried to use the setPickable(boolean) method  on your cone ?

pierre

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

--
------------------------------------------------------
Pierre Abel                 | mailto:[EMAIL PROTECTED]
Institut Eurecom        | http://www.eurecom.fr/~abel/

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