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
e6760e8b
Commit
e6760e8b
authored
Apr 21, 2011
by
David Partyka
Browse files
Merge branch '05500-transform-catch-errors' into release
parents
d64c256c
a812bbf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Common/vtkWarpTransform.cxx
View file @
e6760e8b
...
...
@@ -218,12 +218,7 @@ void vtkWarpInverseTransformPoint(vtkWarpTransform *self,
inverse
[
2
]
=
lastInverse
[
2
]
-
f
*
deltaI
[
2
];
}
if
(
self
->
GetDebug
())
{
vtkGenericWarningMacro
(
<<
"Debug: In "
__FILE__
", line "
<<
__LINE__
<<
"
\n
"
<<
self
->
GetClassName
()
<<
" ("
<<
self
<<
") Inverse Iterations: "
<<
(
i
+
1
));
}
vtkDebugWithObjectMacro
(
self
,
"Inverse Iterations: "
<<
(
i
+
1
));
if
(
i
>=
n
)
{
...
...
@@ -233,11 +228,9 @@ void vtkWarpInverseTransformPoint(vtkWarpTransform *self,
inverse
[
2
]
=
lastInverse
[
2
];
// print warning: Newton's method didn't converge
vtkGenericWarningMacro
(
<<
"Warning: In "
__FILE__
", line "
<<
__LINE__
<<
"
\n
"
<<
self
->
GetClassName
()
<<
" ("
<<
self
<<
") "
<<
vtkErrorWithObjectMacro
(
self
,
"InverseTransformPoint: no convergence ("
<<
point
[
0
]
<<
", "
<<
point
[
1
]
<<
", "
<<
point
[
2
]
<<
point
[
0
]
<<
", "
<<
point
[
1
]
<<
", "
<<
point
[
2
]
<<
") error = "
<<
sqrt
(
errorSquared
)
<<
" after "
<<
i
<<
" iterations."
);
}
...
...
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