Thanks. You are, of course, correct. I guess what I'm asking is how much "housekeeping" I have to do myself. If I translate the spheres in the space, is there some method I can use to get the new center point of the sphere (e.g. sphere.getCenter()) or do I have to translate the sphere and also translate the center point as well?
thanks, Nick On Mon, 2003-07-07 at 18:31, Lars Huttar wrote: > > I'm trying to represent a network graph using Java3D where > > the nodes are > > spheres and the links are cylinders. Positioning the nodes is > > not a problem, > > but I'm having a problem with the cylinders. The idea is that > > nodes get laid > > out and then I need to draw the cylinders between the centers > > of the spheres > > that represent the nodes. I've got some psuedo-code to create > > and transform > > a cylinder appropriately, but the code assumes I know the > > point locations of > > the spheres. So, how do I determine the center of the spheres? > > What information do you already have about the spheres/nodes? > > You said that positioning the nodes is not a problem; > it sounds like you know where to put the spheres that > represent the nodes; and I would think wherever you put a node, > there's the center of a sphere! But maybe I'm misunderstanding. > (When you create a sphere, you specify its center.) > > Lars > > =========================================================================== > 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". -- Nick Collier <[EMAIL PROTECTED]> =========================================================================== 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".
