Hello, all.

As some might remember, I'm about to write a 3D-editor for neuronal
morphologies.

Picking in existing morphologies works, now I'm trying to get it
to enable an user to interactively create and place new objects
in the scene, thus building new models from scratch.
When clicking at the Canvas3D, I receive 2D-coordinates, as expected.
But for placing a new object, I'd obviously need 3D-coordinates.
Is there any way for me to have the objects appear at a "somehow
reasonable" depth regarding any existing morphology? It does not
necessarily have to be the exactly correct placement, since the user
will be able to adjust it after it has been created.
But in most cases one will of course want to add a new object close
to some other.

I could imagine to create any new object at a given distance to
the near clipping plane (or just half the distance 'tween the near
clipping plane and the model itself) as a quick hack.
Is there any better - and maybe more intuitive - way to solve this?

Can one somehow determine the SGO that is closest to where the
MouseEvent occurs /without/ picking? Picking (of course) only works
when clicking on SGOs that are already present.
In my case, I'd have to calculate some position in 3-space without
the picking engine, since I've got nothing to click on, but the raw
Canvas3D.
Does maybe any other PickShape (asides from PickPoint) allow some
operations that might be useful to solve this problem?
I would not like to have the user first click on the part of the
model, (s)he wants to add something to.

Thanks in advance for any answers.

Regards,
André

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