WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Create curved path/track (https://forum.worldviz.com/showthread.php?t=2323)

teresap 10-14-2009 02:22 PM

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()

farshizzo 10-16-2009 12:10 PM

You will need to break the curve into smaller line segments. The more line segments you use, the smoother the curve will appear.


All times are GMT -7. The time now is 05:23 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC