Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
Plugin-FileOFF
Commits
6c3de7ce
Commit
6c3de7ce
authored
Nov 14, 2018
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log information about computed normals
parent
89e36fe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
FileOFF.cc
FileOFF.cc
+10
-4
No files found.
FileOFF.cc
View file @
6c3de7ce
...
...
@@ -1220,10 +1220,13 @@ int FileOFFPlugin::loadObject(QString _filename) {
if
(
polyMeshObj
){
if
(
!
importer
.
hasVertexNormals
()
)
if
(
!
importer
.
hasVertexNormals
()
||
(
userReadOptions_
&
OFFImporter
::
FORCE_NONORMALS
)
)
{
emit
log
(
LOGINFO
,
tr
(
"loadObject: Computing vertex and face normals."
)
);
polyMeshObj
->
mesh
()
->
update_normals
();
else
}
else
{
emit
log
(
LOGINFO
,
tr
(
"loadObject: Computing face normals."
)
);
polyMeshObj
->
mesh
()
->
update_face_normals
();
}
backupTextureCoordinates
(
*
(
polyMeshObj
->
mesh
()));
}
...
...
@@ -1233,10 +1236,13 @@ int FileOFFPlugin::loadObject(QString _filename) {
if
(
triMeshObj
){
if
(
!
importer
.
hasVertexNormals
()
||
(
userReadOptions_
&
OFFImporter
::
FORCE_NONORMALS
)
)
if
(
!
importer
.
hasVertexNormals
()
||
(
userReadOptions_
&
OFFImporter
::
FORCE_NONORMALS
)
)
{
emit
log
(
LOGINFO
,
tr
(
"loadObject: Computing vertex and face normals."
)
);
triMeshObj
->
mesh
()
->
update_normals
();
else
}
else
{
emit
log
(
LOGINFO
,
tr
(
"loadObject: Computing face normals."
)
);
triMeshObj
->
mesh
()
->
update_face_normals
();
}
backupTextureCoordinates
(
*
(
triMeshObj
->
mesh
()));
}
...
...
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