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 figure , for example a circle, in the screen, no the in 3D screen (https://forum.worldviz.com/showthread.php?t=5218)

aaaa 11-05-2014 05:00 PM

how to draw 2D figure , for example a circle, in the screen, no the in 3D screen
 
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:

Code:

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 docs. You'll find most of the commands documented there.


All times are GMT -7. The time now is 09:31 AM.

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