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
OpenMesh
openmesh-python
Commits
c500f1ec
Commit
c500f1ec
authored
Jul 09, 2018
by
Alexander Dielen
Browse files
check write_mesh return value
parent
11019391
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/InputOutput.cc
View file @
c500f1ec
...
...
@@ -169,7 +169,13 @@ void def_write_mesh(py::module& m) {
if
(
_color_alpha
)
options
+=
OM
::
IO
::
Options
::
ColorAlpha
;
if
(
_color_float
)
options
+=
OM
::
IO
::
Options
::
ColorFloat
;
OM
::
IO
::
write_mesh
(
_mesh
,
_filename
,
options
);
const
bool
ok
=
OM
::
IO
::
write_mesh
(
_mesh
,
_filename
,
options
);
if
(
!
ok
)
{
const
std
::
string
msg
=
"File could not be written: "
+
_filename
;
PyErr_SetString
(
PyExc_RuntimeError
,
msg
.
c_str
());
throw
py
::
error_already_set
();
}
},
py
::
arg
(
"filename"
),
py
::
arg
(
"mesh"
),
...
...
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