3 dimensional line between given two points

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 07 July 2013   #1
3 dimensional line between given two points

Hi everyone, I wonder how could I write a function that draws 3dimensional line between two given point. I've already looked the" how to "part of help document of 3dsmax but; by this way , the line coulnt be seen through some angles. That's why I 've need the 3 dimensional line like pie or tube, Is there anyone who can help me ? thanks in advance!
 
Old 07 July 2013   #2
If I get it right, just make the line renderable and set its thickness accordingly.
__________________
Scripts :: linkedin
 
Old 07 July 2013   #3
Originally Posted by eday: Hi everyone, I wonder how could I write a function that draws 3dimensional line between two given point. I've already looked the" how to "part of help document of 3dsmax but; by this way , the line coulnt be seen through some angles. That's why I 've need the 3 dimensional line like pie or tube, Is there anyone who can help me ? thanks in advance!


This will do it.


p1 = [0,0,0]
p2=[10,10,10]
ss = SplineShape pos:p1
addNewSpline ss
addKnot ss 1 #corner #line p1					  
addKnot ss 1 #corner #line p2
updateShape ss
__________________
www.davetyner.com
 
Old 07 July 2013   #4
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 02:45 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.