Skip to content

Commit

Permalink
IO OpenMesh - fix boundary halfedges (#8640)
Browse files Browse the repository at this point in the history
## Summary of Changes

In OpenMesh, the outgoing halfedge of a boundary vertex must be the
boundary halfedge.
This PR fixes this orientation issue before writing the file, inside
`write_OM()`

This PR completes #8427 and #8612 

## Release Management

* Affected package(s): BGL
* License and copyright ownership: unchanged
  • Loading branch information
sloriot authored Dec 4, 2024
2 parents 91b3f7c + c4760da commit 733b085
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions BGL/include/CGAL/boost/graph/IO/OM.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ bool write_OM(std::string fname, const Graph& g, VPM vpm, VFeaturePM vfpm, EFeat
omesh.status(omv).set_feature(isfeature);
}

for (auto v : vertices(omesh))
{
adjust_border_halfedge(v, omesh);
}

return OpenMesh::IO::write_mesh(omesh, fname, OpenMesh::IO::Options::Status, precision);
}
} // end of internal namespace
Expand Down

0 comments on commit 733b085

Please sign in to comment.