WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-21-2009, 08:49 AM
Chrissy2009 Chrissy2009 is offline
Member
 
Join Date: May 2009
Posts: 33
Draw a triangle instead of a point

Hi,

how can I draw a traingle at the end of my line, instead of points?

I've done this:

Code:
	        viz.startlayer(viz.LINES)
		viz.linewidth(5)
		viz.vertexcolor(viz.RED)
		viz.vertex(punkt1)
		viz.vertex(punkt2)
		viz.startlayer(viz.POINTS)
		viz.pointsize(10)
		viz.vertex(punkt2)
		
		vec = viz.endlayer()
Is there a possibility to draw triangles instead of points?
Reply With Quote
  #2  
Old 07-21-2009, 09:46 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Instead of using viz.POINTS you can use viz.TRIANGLES and specify the position of each vertex. Example:
Code:
viz.startlayer(viz.TRIANGLES)		
viz.vertex(p1)
viz.vertex(p2)
viz.vertex(p3)
.
.
.
Reply With Quote
Reply

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
Draw Vector in viewpoint lookat direction Chrissy2009 Vizard 2 05-30-2009 12:50 AM
Draw Line between Points Chrissy2009 Vizard 2 05-13-2009 04:42 AM
Incoming floating point values Rachel Vizard 1 02-12-2008 03:09 PM
data glove navigation arielasso Vizard 6 10-24-2007 02:15 PM
looking at a point vadrian Vizard 5 06-07-2005 05:43 PM


All times are GMT -7. The time now is 11:51 AM.


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