![]() |
|
#1
|
|||
|
|||
You can set the triangle's parent to be the line and then when you move or rotate the line the triangle will follow.
Code:
triangle = viz.endlayer(parent=line) |
#2
|
|||
|
|||
Hey,
I've done this, but it does not work: Code:
viz.startlayer(viz.LINES) viz.linewidth(5) viz.vertexcolor(0,0.6,0) viz.vertex(punkt1) viz.vertex(punkt2) viz.startlayer(viz.TRIANGLES) viz.vertex(1,0,0) viz.vertex(-1,0,0) viz.vertex(0,1,0) name = viz.endlayer(scene=szene) triangle = viz.endlayer(parent=name) name.center(punkt1) In 02.bmp I've described my problem. I want to draw a line and afterthat I want to draw the triangle in the local coordinate system of the line. So, that I'm able to set the triangle allways on Code:
viz.vertex(1,0,0) viz.vertex(-1,0,0) viz.vertex(0,1,0) Hope somebody can help me. |
#3
|
|||
|
|||
Oh, is there nobody who can help me???
![]() ![]() |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Draw a triangle instead of a point | Chrissy2009 | Vizard | 1 | 07-21-2009 09:46 AM |
Create line and vertex | Chrissy2009 | Vizard | 2 | 07-20-2009 10:53 AM |
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 |
Draw Line between Points selected by mouse | Johannes | Vizard | 7 | 01-07-2005 02:50 PM |