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
499f6b84
Commit
499f6b84
authored
Mar 01, 1994
by
Will Schroeder
Browse files
ENH: Added vlErroMacro().
parent
71cdd1ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/Mat4x4.cc
View file @
499f6b84
...
...
@@ -73,8 +73,7 @@ void vlMatrix4x4::Invert (vlMatrix4x4 in,vlMatrix4x4 & out)
det
=
in
.
Determinant
(
in
);
if
(
fabs
(
det
)
<
SMALL_NUMBER
)
{
cerr
<<
"Singular matrix, no inverse! Determinant = "
;
cerr
<<
det
;
vlErrorMacro
(
<<
"Singular matrix, no inverse! Determinant= "
<<
det
<<
"
\n
"
);
det
=
0.0
;
return
;
}
...
...
src/RenderC.cc
View file @
499f6b84
...
...
@@ -58,7 +58,7 @@ vlRenderer *vlRendererCollection::GetMember(int num)
if
(
num
>
this
->
NumberOfItems
)
{
cerr
<<
"Renderer: Requesting illegal index
\n
"
;
vlErrorMacro
(
<<
"Renderer: Requesting illegal index
\n
"
)
;
return
this
->
Top
->
Renderer
;
}
...
...
src/Trans.cc
View file @
499f6b84
...
...
@@ -258,19 +258,19 @@ void vlTransform::Scale ( float x, float y, float z)
ctm
.
Element
[
0
][
0
]
=
x
;
if
(
ctm
.
Element
[
0
][
0
]
==
0.0
)
{
cerr
<<
"vlTransform::
scale: x scale is 0.0, reset to 1.0
\n
"
;
vlErrorMacro
(
<<
"
scale: x scale is 0.0, reset to 1.0
\n
"
)
;
ctm
.
Element
[
0
][
0
]
=
1.0
;
}
ctm
.
Element
[
1
][
1
]
=
y
;
if
(
ctm
.
Element
[
1
][
1
]
==
0.0
)
{
cerr
<<
"vlTransform::
scale: y scale is 0.0, reset to 1.0
\n
"
;
vlErrorMacro
(
<<
"
scale: y scale is 0.0, reset to 1.0
\n
"
)
;
ctm
.
Element
[
1
][
1
]
=
1.0
;
}
ctm
.
Element
[
2
][
2
]
=
z
;
if
(
ctm
.
Element
[
2
][
2
]
==
0.0
)
{
cerr
<<
"vlTransform::
scale: z scale is 0.0, reset to 1.0
\n
"
;
vlErrorMacro
(
<<
"
scale: z scale is 0.0, reset to 1.0
\n
"
)
;
ctm
.
Element
[
2
][
2
]
=
1.0
;
}
...
...
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