Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
49710f86
Commit
49710f86
authored
Oct 02, 2001
by
Charles Law
Browse files
Add an arrow to this test.
parent
e5bf42d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Graphics/Testing/Tcl/extrudeCopyCD.tcl
View file @
49710f86
...
...
@@ -42,6 +42,27 @@ for { set i 0 } { $i < [$model GetNumberOfCells] } { incr i } {
# Lets test the arrow source instead of creating another test.
vtkArrowSource arrow1
vtkPolyDataMapper mapper1
mapper1 SetInput
[
arrow1 GetOutput
]
vtkActor actor1
actor1 SetMapper mapper1
actor1 SetPosition 0 -0.2 1
vtkArrowSource arrow2
arrow2 SetShaftResolution 2
arrow2 SetTipResolution 1
vtkPolyDataMapper mapper2
mapper2 SetInput
[
arrow2 GetOutput
]
vtkActor actor2
actor2 SetMapper mapper2
actor2 SetPosition 1 -0.2 1
# Create the RenderWindow, Renderer and both Actors
#
vtkRenderer ren1
...
...
@@ -59,6 +80,8 @@ vtkActor actor
# Add the actors to the renderer, set the background and size
#
ren1 AddActor actor
ren1 AddActor actor1
ren1 AddActor actor2
ren1 SetBackground 0.1 0.2 0.4
renWin SetSize 300 300
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment