WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   how to draw 2D line in the screen, no the in 3D screen (https://forum.worldviz.com/showthread.php?t=5220)

aaaa 11-06-2014 09:04 PM

how to draw 2D line in the screen, no the in 3D screen
 
how to draw 2D line in the screen, no the in 3D screen

Jeff 11-07-2014 03:18 PM

You can use an on-the-fly line object:

Code:

import viz
viz.go()

#Add to viz.ORTHO and specify pixel coordinates
viz.startLayer(viz.LINES) 
viz.vertex(100,400,0)
viz.vertex(600,400,0)
myLines = viz.endLayer(viz.ORTHO)



All times are GMT -7. The time now is 03:37 PM.

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