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
6a4282cb
Commit
6a4282cb
authored
Jul 18, 1995
by
Ken Martin
Browse files
just some helpful changes try to keep w in homo to one
parent
0432311c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/Renderer.cc
View file @
6a4282cb
...
...
@@ -351,6 +351,15 @@ void vtkRenderer::ViewToWorld()
mat
.
PointMultiply
(
result
,
result
);
// Get the transformed vector & set WorldPoint
// while we are at it try to keep w at one
if
(
result
[
3
])
{
result
[
0
]
/=
result
[
3
];
result
[
1
]
/=
result
[
3
];
result
[
2
]
/=
result
[
3
];
result
[
3
]
=
1
;
}
this
->
SetWorldPoint
(
result
);
}
...
...
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