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
openmesh-python
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenMesh
openmesh-python
Commits
c500f1ec
Commit
c500f1ec
authored
Jul 09, 2018
by
Alexander Dielen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check write_mesh return value
parent
11019391
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/InputOutput.cc
src/InputOutput.cc
+7
-1
No files found.
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
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