WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 03-26-2010, 10:35 AM
Moh200jo Moh200jo is offline
Join Date: Feb 2009
Posts: 99
Draw Line

I am trying to create lines between points moving through x to y. I created the line but these lines appear in different positions (according to the points). Is there any way to draw just a solid line between 2 points and moved with them?

	viz.vertexcolor(0, .6, 0)
	line1-2 = viz.endlayer()
How can I present the real time value of the point on the Vizard?
Any suggestions?
Reply With Quote
Old 03-26-2010, 10:58 AM
Darkmax Darkmax is offline
Join Date: Feb 2010
Posts: 108
I think you have to use the method setVertex for the line that you created
this code is a example of a line that moves in X

import viz


viz.vertexcolor(0, 0.6, 0)
#This is vertex 0
#This is vertex 1
line = viz.endlayer()

def moveLine():
	global x
	line.setVertex(0,[0+x,0,0])#setVertex(vertex id,[x,y,z])
	x = x+1
Reply With Quote
Old 03-29-2010, 09:42 AM
Moh200jo Moh200jo is offline
Join Date: Feb 2009
Posts: 99
Many thanks for your post
I have done it, but my problem is to keep the lines between the points in the mainview.
I used postMultLinkable function to make sure my points (that I reading from real-time) are in the mainview, this worked lovely with the points but the lines between these points left the points once I move the mainview.
Is there any advices can be provided?
Reply With Quote
Old 05-05-2010, 06:40 AM
Moh200jo Moh200jo is offline
Join Date: Feb 2009
Posts: 99
How can I draw cylinder between 2 points by using viz.vertx?
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to invoke command line question billjarrold Vizard 2 01-11-2010 09:51 AM
Draw line and rotate it Chrissy2009 Vizard 5 09-07-2009 02:10 AM
Draw line with a triangle at the end Chrissy2009 Vizard 9 08-24-2009 12:12 PM
Draw Line between Points Chrissy2009 Vizard 2 05-13-2009 05:42 AM
Draw Line between Points selected by mouse Johannes Vizard 7 01-07-2005 03:50 PM

All times are GMT -7. The time now is 11:07 PM.

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