Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenMesh
OpenMesh
Commits
6ca8816c
Commit
6ca8816c
authored
Oct 23, 2018
by
Max Lyon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add function that turns writer version into string
parent
e618a5e4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
src/OpenMesh/Core/IO/OMFormat.cc
src/OpenMesh/Core/IO/OMFormat.cc
+13
-0
src/OpenMesh/Core/IO/OMFormat.hh
src/OpenMesh/Core/IO/OMFormat.hh
+2
-0
No files found.
src/OpenMesh/Core/IO/OMFormat.cc
View file @
6ca8816c
...
...
@@ -113,6 +113,19 @@ namespace OMFormat {
return
hdr
;
}
//-----------------------------------------------------------------------------
std
::
string
as_string
(
uint8
version
)
{
std
::
stringstream
ss
;
ss
<<
major_version
(
version
);
ss
<<
"."
;
ss
<<
minor_version
(
version
);
return
ss
.
str
();
}
//-----------------------------------------------------------------------------
const
char
*
as_string
(
Chunk
::
Entity
e
)
...
...
src/OpenMesh/Core/IO/OMFormat.hh
View file @
6ca8816c
...
...
@@ -469,6 +469,8 @@ namespace OMFormat {
// ---------------------------------------- convenience functions
std
::
string
as_string
(
uint8
version
);
const
char
*
as_string
(
Chunk
::
Type
t
);
const
char
*
as_string
(
Chunk
::
Entity
e
);
const
char
*
as_string
(
Chunk
::
Dim
d
);
...
...
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