Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
Plugin-PropertyVis
Commits
4c8a8156
Commit
4c8a8156
authored
Sep 01, 2016
by
Max Lyon
Browse files
Merge branch 'master' into TetrahedralMeshSupport
parents
3c6931ca
d45e6670
Changes
2
Hide whitespace changes
Inline
Side-by-side
PropertyVisualizer.cc
View file @
4c8a8156
...
...
@@ -133,7 +133,7 @@ OpenMesh::Vec3d PropertyVisualizer::strToVec3d (QString str)
{
QString
s
=
str
;
s
.
remove
(
0
,
2
);
s
.
chop
(
2
);
s
.
truncate
(
s
.
lastIndexOf
(
")"
)
);
QStringList
strList
=
s
.
split
(
QObject
::
tr
(
", "
));
return
OpenMesh
::
Vec3d
(
strList
[
0
].
toDouble
(),
strList
[
1
].
toDouble
(),
strList
[
2
].
toDouble
());
}
...
...
@@ -142,7 +142,7 @@ OpenMesh::Vec2d PropertyVisualizer::strToVec2d (QString str)
{
QString
s
=
str
;
s
.
remove
(
0
,
2
);
s
.
chop
(
2
);
s
.
truncate
(
s
.
lastIndexOf
(
")"
)
);
QStringList
strList
=
s
.
split
(
QObject
::
tr
(
", "
));
return
OpenMesh
::
Vec2d
(
strList
[
0
].
toDouble
(),
strList
[
1
].
toDouble
());
}
...
...
@@ -151,7 +151,7 @@ OpenMesh::Vec2f PropertyVisualizer::strToVec2f (QString str)
{
QString
s
=
str
;
s
.
remove
(
0
,
2
);
s
.
chop
(
2
);
s
.
truncate
(
s
.
lastIndexOf
(
")"
)
);
QStringList
strList
=
s
.
split
(
QObject
::
tr
(
", "
));
return
OpenMesh
::
Vec2f
(
strList
[
0
].
toFloat
(),
strList
[
1
].
toFloat
());
}
SingleObjectPropertyModel.cc
View file @
4c8a8156
...
...
@@ -203,8 +203,9 @@ void SingleObjectPropertyModel::objectUpdated()
QString
SingleObjectPropertyModel
::
getLoadFilename
()
{
QString
filter
=
getLoadFilenameFilter
();
QString
selected_filter
=
tr
(
"All Files (*)"
);
QString
fileName
=
QFileDialog
::
getOpenFileName
(
0
,
tr
(
"Load Property"
),
QString
(),
filter
);
QString
fileName
=
QFileDialog
::
getOpenFileName
(
0
,
tr
(
"Load Property"
),
QString
(),
filter
,
&
selected_
filter
);
return
fileName
;
}
...
...
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