View Single Post
  #1  
Old 10-14-2009, 03:22 PM
teresap teresap is offline
Member
 
Join Date: Oct 2009
Posts: 1
Create curved path/track

I have a question about creating a curved path/track that is visible to the user. I am able to make straight lines between various points in my environment using the code below, but I need a smooth curve (spline) to connect these points rather than straight lines. Any suggestions? I appreciate any help!

viz.startlayer(viz.LINES)
viz.vertex(0,0,-2)
viz.vertex(0,1.4,27.5)
viz.vertex(-1,-1.8,33.5)
viz.vertex(-1,-1.8,33.5)
viz.vertex(-4,0,38)
line1 = viz.endlayer()
Reply With Quote