Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMP remesh_planar_patches: handle const meshes #7914

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ mark_constrained_edges(
double coplanar_cos_threshold,
const VertexPointMap& vpm)
{
for(typename boost::graph_traits<TriangleMesh>::edge_descriptor e : edges(tm))
for(typename boost::graph_traits<std::remove_const_t<TriangleMesh>>::edge_descriptor e : edges(tm))
{
if (!get(edge_is_constrained,e))
if (!is_edge_between_coplanar_faces<Kernel>(e, tm, coplanar_cos_threshold, vpm))
Expand All @@ -325,7 +325,7 @@ mark_corner_vertices(
double coplanar_cos_threshold,
const VertexPointMap& vpm)
{
typedef boost::graph_traits<TriangleMesh> graph_traits;
typedef boost::graph_traits<std::remove_const_t<TriangleMesh>> graph_traits;
std::size_t corner_id = 0;
for(typename graph_traits::edge_descriptor e : edges(tm))
{
Expand Down Expand Up @@ -553,7 +553,7 @@ tag_corners_and_constrained_edges(TriangleMesh& tm,
FaceCCIdMap& face_cc_ids,
const VertexPointMap& vpm)
{
typedef typename boost::graph_traits<TriangleMesh> graph_traits;
typedef typename boost::graph_traits<std::remove_const_t<TriangleMesh>> graph_traits;
// mark constrained edges
mark_constrained_edges<Kernel>(tm, edge_is_constrained, coplanar_cos_threshold, vpm);

Expand Down