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