PDA

View Full Version : how to draw 2D figure , for example a circle, in the screen, no the in 3D screen


aaaa
11-05-2014, 05:00 PM
How to draw a figure, for example a circle or a line, in the screen, not in the 3D screen.?

Jeff
11-05-2014, 05:20 PM
Here's a simple example that draws a circle to the ortho layer:

import viz
import vizshape

viz.go()

circle = vizshape.addCircle(parent=viz.ORTHO)
circle.setScale([100,100,1])
circle.disable(viz.LIGHTING)

viz.link(viz.CenterCenter,circle)

aaaa
11-06-2014, 07:01 PM
Thank you for solve my porblem.

aaaa
11-06-2014, 07:04 PM
The Vizard 4.0 Documentation has no introduction of the function of 'vizshape.addCircle', how could I find these functions? Is there other document I can refer to?

Jeff
11-07-2014, 03:11 PM
Thanks for mentioning that, we need to update the vizshape (http://docs.worldviz.com/vizard/#Vizshape.htm) docs. You'll find most of the commands documented there.