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
Andrew Bauer
VTK
Commits
8d13b7ce
Commit
8d13b7ce
authored
Apr 04, 1997
by
Ken Martin
Browse files
now uses negative of gradient as normal
parent
bb7a7c15
Changes
1
Hide whitespace changes
Inline
Side-by-side
graphics/vtkSampleFunction.cxx
View file @
8d13b7ce
...
...
@@ -174,6 +174,9 @@ void vtkSampleFunction::Execute()
{
p
=
output
->
GetPoint
(
ptId
);
this
->
ImplicitFunction
->
FunctionGradient
(
p
,
n
);
n
[
0
]
*=
-
1
;
n
[
1
]
*=
-
1
;
n
[
2
]
*=
-
1
;
vtkMath
::
Normalize
(
n
);
newNormals
->
SetNormal
(
ptId
,
n
);
}
...
...
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