Computing.Net > Forums > Programming > Drawing a 'line' in 3D

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Drawing a 'line' in 3D

Reply to Message Icon

Name: cunaz
Date: August 28, 2004 at 01:43:35 Pacific
OS: Windows XP - Pro
CPU/Ram: 2400 Mhz/256 Mb RAM
Comment:

Hello! My problem is the following: I have a sorted sequence of "n" points (for each point I know the coordinates (x,y,z)) and now I should link each point "i" to the next point "i+1", just to draw a 'line'(in 3 dimensions..) composed of "n-1" segments...Can anyone tell me what tool should I use? Or any kind of suggest? (I think for example with Matlab it should be possible to do this, but I never worked with Matlab and I'm in crisis!!)
Thanks for your help!

-mauri-



Sponsored Link
Ads by Google

Response Number 1
Name: Wolfbone
Date: August 28, 2004 at 11:51:39 Pacific
Reply:

The obvious quick and convenient way to do what you want is with gnuplot:

gnuplot> splot "datafile" with lines

This will bring up a rotatable, zoomable 3d cartesian coordinate system in a window with the polyline defined by the points in the text file "datafile" drawn in red.

I can't help you with Matlab - I've used Scilab (similar syntax,capabilities etc.) but but even then I'm not sure how to draw 3d polylines with it.


0

Response Number 2
Name: cunaz
Date: August 29, 2004 at 02:46:05 Pacific
Reply:

Thank you very much Wolf!Now I searched Google for 'gnuplot' and I found this site: http://sourceforge.net/project/showfiles.php?group_id=2055&package_id=1996&release_id=231440
where I can download the software. But what file I have to choose? I'd prefer a version for MS Windows (compatible with XP)..Can you help me(again..)?
Thank you!

-mauri-


0

Response Number 3
Name: Wolfbone
Date: August 29, 2004 at 04:11:57 Pacific
Reply:

The gp400win32.zip file should be the right one. You'll see instructions and information in the README.Windows file.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


control video streaming b... compare / interpret 2 str...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Drawing a 'line' in 3D

Drawing a Line www.computing.net/answers/programming/drawing-a-line/7460.html

Drawing a shape in VB - pls help!! www.computing.net/answers/programming/drawing-a-shape-in-vb-pls-help/5355.html

making a line in VB www.computing.net/answers/programming/making-a-line-in-vb/961.html