Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Scott Wittenburg
VTK
Commits
51399f19
Commit
51399f19
authored
Dec 08, 2017
by
Utkarsh Ayachit
⛰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix LagrangeGeometricOperations imports.
Cleanup imports and usages of the same in LagrangeGeometricOperations
parent
ad5b8d89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
Filters/Geometry/Testing/Python/LagrangeGeometricOperations.py
...rs/Geometry/Testing/Python/LagrangeGeometricOperations.py
+12
-11
No files found.
Filters/Geometry/Testing/Python/LagrangeGeometricOperations.py
View file @
51399f19
...
...
@@ -128,8 +128,8 @@ class LagrangeGeometricOperations(Testing.vtkTest):
self
.
rw
.
Render
()
image
=
'LagrangeGeometricOperations-Contour.png'
# events = self.prepareTestImage(self.ri, filename=os.path.join('/tmp', image))
vtk
.
test
.
Testing
.
compareImage
(
self
.
rw
,
self
.
pathToValidatedOutput
(
image
))
#
vtk.test.
Testing.interact()
Testing
.
compareImage
(
self
.
rw
,
self
.
pathToValidatedOutput
(
image
))
# Testing.interact()
## Write the contours out
# wri = vtkXMLPolyDataWriter()
...
...
@@ -172,8 +172,8 @@ class LagrangeGeometricOperations(Testing.vtkTest):
self
.
rw
.
Render
()
image
=
'LagrangeGeometricOperations-Boundary.png'
#events = self.prepareTestImage(self.ri, filename=os.path.join('/tmp', image))
vtk
.
test
.
Testing
.
compareImage
(
self
.
rw
,
self
.
pathToValidatedOutput
(
image
))
#
vtk.test.
Testing.interact()
Testing
.
compareImage
(
self
.
rw
,
self
.
pathToValidatedOutput
(
image
))
# Testing.interact()
@
unittest
.
skipIf
(
renderWindowTooSmall
(),
'Cannot render at requested size'
)
def
testClip
(
self
):
...
...
@@ -223,8 +223,8 @@ class LagrangeGeometricOperations(Testing.vtkTest):
self
.
rw
.
Render
()
image
=
'LagrangeGeometricOperations-Clip.png'
# events = self.prepareTestImage(self.ri, filename=os.path.join('/tmp', image))
vtk
.
test
.
Testing
.
compareImage
(
self
.
rw
,
self
.
pathToValidatedOutput
(
image
))
#
vtk.test.
Testing.interact()
Testing
.
compareImage
(
self
.
rw
,
self
.
pathToValidatedOutput
(
image
))
# Testing.interact()
# ri.Start()
...
...
@@ -274,8 +274,8 @@ class LagrangeGeometricOperations(Testing.vtkTest):
self
.
rw
.
Render
()
image
=
'LagrangeGeometricOperations-Cut.png'
# events = self.prepareTestImage(self.ri, filename=os.path.join('/tmp', image))
vtk
.
test
.
Testing
.
compareImage
(
self
.
rw
,
self
.
pathToValidatedOutput
(
image
))
#
vtk.test.
Testing.interact()
Testing
.
compareImage
(
self
.
rw
,
self
.
pathToValidatedOutput
(
image
))
# Testing.interact()
@
unittest
.
skipIf
(
numpyMissing
,
'Numpy unavailable'
)
@
unittest
.
skipIf
(
renderWindowTooSmall
(),
'Cannot render at requested size'
)
...
...
@@ -319,8 +319,9 @@ class LagrangeGeometricOperations(Testing.vtkTest):
# al.GetProperty().SetColor(0.5, 0.5, 0.5)
ug
=
self
.
rdr
.
GetOutputDataObject
(
0
)
tt
=
vtk
.
mutable
(
0
)
subId
=
vtk
.
mutable
(
-
1
)
from
vtkmodules.vtkCommonCore
import
mutable
tt
=
mutable
(
0
)
subId
=
mutable
(
-
1
)
xx
=
[
0
,
0
,
0
]
rr
=
[
0
,
0
,
0
]
ipt
=
vtkPoints
()
...
...
@@ -407,7 +408,7 @@ class LagrangeGeometricOperations(Testing.vtkTest):
self
.
rw
.
Render
()
image
=
'LagrangeGeometricOperations-Stab{c}.png'
.
format
(
c
=
color
)
# events = self.prepareTestImage(self.ri, filename=os.path.join('/tmp', image))
vtk
.
test
.
Testing
.
compareImage
(
self
.
rw
,
self
.
pathToValidatedOutput
(
image
))
Testing
.
compareImage
(
self
.
rw
,
self
.
pathToValidatedOutput
(
image
))
if
__name__
==
"__main__"
:
Testing
.
main
([(
LagrangeGeometricOperations
,
'test'
)])
Write
Preview
Markdown
is supported
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