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
Christian Butz
VTK
Commits
55307288
Commit
55307288
authored
Mar 31, 2004
by
Mathieu Malaterre
Browse files
ENH: Improve coverage of triangulate for penta/hexa element
parent
75780756
Changes
1
Hide whitespace changes
Inline
Side-by-side
Graphics/Testing/Tcl/testHexaPenta.tcl
View file @
55307288
...
...
@@ -41,6 +41,23 @@ vtkActor contourActor
contourActor SetMapper map2
[
contourActor GetProperty
]
SetColor 1 0 0
[
contourActor GetProperty
]
SetRepresentationToWireframe
# Triangulate
vtkDataSetTriangleFilter tris
tris SetInput
[
reader GetOutput
]
vtkShrinkFilter shrink
shrink SetInput
[
tris GetOutput
]
shrink SetShrinkFactor .8
vtkDataSetMapper map3
map3 SetInput
[
shrink GetOutput
]
map3 SetScalarRange 0 26
vtkActor triActor
triActor SetMapper map3
triActor AddPosition 2 0 0
# Create graphics stuff
#
...
...
@@ -54,6 +71,7 @@ vtkRenderWindowInteractor iren
#
ren1 AddActor clipActor
ren1 AddActor contourActor
ren1 AddActor triActor
ren1 SetBackground 1 1 1
...
...
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