From: Jose A. M. H <jam...@fd...> - 2008-10-26 22:35:47
|
Hi Doug, It is easier to use a curve between the points. try it. Hope this help, bests, jamh. ----- Original Message ----- From: Doug Mair To: vis...@li... Sent: Sunday, October 26, 2008 10:40 PM Subject: [Visualpython-users] Line between two 3D points. Hi all, What is the VPython code to draw a cylinder between two arbitrary 3D points? I'm looking for an equivalent to the Windows GDI: line(x1, y1, x2, y2), but in 3d. Maybe Line(x1, y1, z1, x2, y2, z2) or Line(point1=(x,y,z), point2=(x,y,z)) It seems that I would have to calculate the angle vector between the two points and use that as the axis. Then I would have to calculate the distance between the two points. Is there an easier way? Sample code would help too. Thanks, Doug Mair ------------------------------------------------------------------------------ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ------------------------------------------------------------------------------ _______________________________________________ Visualpython-users mailing list Vis...@li... https://lists.sourceforge.net/lists/listinfo/visualpython-users |