WorldViz User Forum how to "spin/spinto" an rectangular around its center or edge?
 Register FAQ Search Today's Posts Mark Forums Read

#1
06-27-2010, 01:50 AM
 znchb Member Join Date: Sep 2008 Posts: 21
how to "spin/spinto" an rectangular around its center or edge?

Please see the program below, I build an rectangular using polygon, and I want to make it spin around its Center point or around its Edge Line of rectangular ?
Is there anyone would like to help me?
Thank you very much!

import viz
import vizact
viz.go()
viz.clearcolor(viz.WHITE)
pos = bg.getPosition()
viz.MainView.setPosition(pos[0],pos[1]+5,pos[2]-20)
A = [pos[0]-2, pos[1]+8, pos[2]+10 ]
B = [pos[0]+2, pos[1]+8, pos[2]+10 ]
C = [pos[0]+2, pos[1]+4, pos[2]+10 ]
D = [pos[0]-2, pos[1]+4, pos[2]+10 ]
viz.startlayer(viz.POLYGON)
viz.vertex(A)
viz.vertex(B)
viz.vertex(C)
viz.vertex(D)
Rectangular = viz.endlayer()
Rectangular.color(viz.RED)
#make it spin/spinto
#---- How to make it spin around the Center of the rectangular ?-------
#---- or how to make it spin around the Edge Line of rectangular ? -----

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Getting Vizard Help with AI Announcements Vizard Precision Position Tracker (PPT) Plug-in development

 Similar Threads Thread Thread Starter Forum Replies Last Post vijaykiran Vizard 2 10-19-2009 11:10 AM hosier Vizard 6 02-13-2009 01:04 PM realvision Vizard 2 03-25-2008 10:32 AM johannes2 Vizard 2 02-12-2008 03:56 AM bjgold Vizard 3 07-25-2006 04:22 PM

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