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
689ef2a8
Commit
689ef2a8
authored
May 11, 2016
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cppcheck fixes
parent
cb367312
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
FileOFF.cc
FileOFF.cc
+7
-5
FileOFF.hh
FileOFF.hh
+1
-1
No files found.
FileOFF.cc
View file @
689ef2a8
...
...
@@ -93,7 +93,9 @@ FileOFFPlugin::FileOFFPlugin()
userWriteOptions_
(
0
),
forceTriangleMesh_
(
false
),
forcePolyMesh_
(
false
),
readColorComp_
(
false
)
{
readColorComp_
(
false
),
trimeshOptions_
(
OFFImporter
::
NONE
)
{
}
//-----------------------------------------------------------------------------------------------------
...
...
@@ -534,9 +536,9 @@ bool FileOFFPlugin::readOFFFile(QString _filename, OFFImporter& _importer) {
// Create message box
QMetaObject
::
invokeMethod
(
this
,
"handleTrimeshDialog"
,
Qt
::
BlockingQueuedConnection
);
if
(
trimeshOptions
==
OFFImporter
::
TRIMESH
)
if
(
trimeshOptions
_
==
OFFImporter
::
TRIMESH
)
type
=
DATA_TRIANGLE_MESH
;
else
if
(
trimeshOptions
==
OFFImporter
::
POLYMESH
)
else
if
(
trimeshOptions
_
==
OFFImporter
::
POLYMESH
)
type
=
DATA_POLY_MESH
;
else
type
=
_importer
.
isTriangleMesh
()
?
DATA_TRIANGLE_MESH
:
DATA_POLY_MESH
;
...
...
@@ -579,9 +581,9 @@ void FileOFFPlugin::handleTrimeshDialog()
if
(
msgBox
.
clickedButton
()
==
triButton
)
trimeshOptions
=
OFFImporter
::
TRIMESH
;
trimeshOptions_
=
OFFImporter
::
TRIMESH
;
else
if
(
msgBox
.
clickedButton
()
==
polyButton
)
trimeshOptions
=
OFFImporter
::
POLYMESH
;
trimeshOptions_
=
OFFImporter
::
POLYMESH
;
}
//-----------------------------------------------------------------------------------------------------
...
...
FileOFF.hh
View file @
689ef2a8
...
...
@@ -269,7 +269,7 @@ class FileOFFPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInte
bool
forceTriangleMesh_
;
bool
forcePolyMesh_
;
bool
readColorComp_
;
OFFImporter
::
ObjectOptionsE
trimeshOptions
;
OFFImporter
::
ObjectOptionsE
trimeshOptions
_
;
};
#if defined(INCLUDE_TEMPLATES) && !defined(FILEOFFPLUGIN_C)
...
...
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