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
Development
openfoam
Commits
e0824b96
Commit
e0824b96
authored
Jan 05, 2012
by
laurence
Browse files
BUG: objToVTK: Do not print vertex normal header in vtk if none are in the obj
parent
8ce75feb
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/manipulation/objToVTK/objToVTK.C
View file @
e0824b96
...
...
@@ -273,12 +273,16 @@ int main(int argc, char *argv[])
}
}
outFile
<<
nl
<<
"NORMALS pointNormals float
\n
"
;
forAll
(
pointNormals
,
i
)
if
(
!
pointNormals
.
empty
())
{
const
vector
&
n
=
pointNormals
[
i
]
;
outFile
<<
nl
<<
"NORMALS
pointNormals
float
\n
"
;
outFile
<<
n
.
x
()
<<
' '
<<
n
.
y
()
<<
' '
<<
n
.
z
()
<<
nl
;
forAll
(
pointNormals
,
i
)
{
const
vector
&
n
=
pointNormals
[
i
];
outFile
<<
n
.
x
()
<<
' '
<<
n
.
y
()
<<
' '
<<
n
.
z
()
<<
nl
;
}
}
Info
<<
"End
\n
"
<<
endl
;
...
...
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