Well, it looks like either you have to write your own intersect routine or
convince the j3d team to expose the various intersect routines already
existing in GeometryRetained also in the Geometry objects. That can be
really usefull, and I don't know the reason why there is no intersect method
in the Geometry objects. Eventually, if that's not desirable, maybe there
should be some extra intersect methods in Shape3D which returns the
intersected geometries.

C:\>javap javax.media.j3d.GeometryRetained
Compiled from GeometryRetained.java
abstract class javax.media.j3d.GeometryRetained extends
javax.media.j3d.NodeComponentRetained {
....... cut ........
    abstract boolean intersect(javax.media.j3d.PickShape, double[],
javax.vecmath.Point3d);
    abstract boolean intersect(javax.media.j3d.Bounds);
    abstract boolean intersect(javax.vecmath.Point3d[]);
    abstract boolean intersect(javax.media.j3d.Transform3D,
javax.media.j3d.GeometryRetained);
    boolean intersect(javax.media.j3d.Transform3D,
javax.media.j3d.Transform3D, javax.media.j3d.GeometryRetained);
    boolean intersect(javax.media.j3d.Transform3D, javax.media.j3d.Bounds);
....... cut ........
}

Cheers,

Florin


-----Urspr�ngliche Nachricht-----
Von: Anirban Bhadore [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 6. M�rz 2003 07:54
An: [EMAIL PROTECTED]
Betreff: [JAVA3D] picking individual geometries from a multiple geometry
shape3d


Hi All,

Its a great benefit to club geometries
together into lesser no of shapes in the scene graph. I was just wondering
if there is any way
to still pick different geometries individually and change the appearance of
the geometry.

Lets take one example.

Lets say there is a scene which has 27000 spheres and one shape per 30
spheres. The same example as Florin had given few days back ! He had given
data that by clubbing 30 spheres together in a single shape actually reduces
the mem requirement dramatically for the scene graph.

In this example, can I provide functionality to pick *any* of the 30
spheres , which are added to a single shape by implementing some picking
routine in j3d? In j3d picking is done on shape3ds, so how can I do this?
when
the pick ray actually intersects the n th sphere out of the 30 spheres, does
the
picked shape of the pick result give me that geometry first? Or is there any
sense of sequence
when I query the geometries of the picked shape?

Any idea about how to achieve this? Did somebody try somethig like this
already?

thanks
anirban

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

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