Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plugin-FileOFF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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) {
...
@@ -1220,10 +1220,13 @@ int FileOFFPlugin::loadObject(QString _filename) {
if
(
polyMeshObj
){
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
();
polyMeshObj
->
mesh
()
->
update_normals
();
else
}
else
{
emit
log
(
LOGINFO
,
tr
(
"loadObject: Computing face normals."
)
);
polyMeshObj
->
mesh
()
->
update_face_normals
();
polyMeshObj
->
mesh
()
->
update_face_normals
();
}
backupTextureCoordinates
(
*
(
polyMeshObj
->
mesh
()));
backupTextureCoordinates
(
*
(
polyMeshObj
->
mesh
()));
}
}
...
@@ -1233,10 +1236,13 @@ int FileOFFPlugin::loadObject(QString _filename) {
...
@@ -1233,10 +1236,13 @@ int FileOFFPlugin::loadObject(QString _filename) {
if
(
triMeshObj
){
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
();
triMeshObj
->
mesh
()
->
update_normals
();
else
}
else
{
emit
log
(
LOGINFO
,
tr
(
"loadObject: Computing face normals."
)
);
triMeshObj
->
mesh
()
->
update_face_normals
();
triMeshObj
->
mesh
()
->
update_face_normals
();
}
backupTextureCoordinates
(
*
(
triMeshObj
->
mesh
()));
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