From 26c5c253b4c2c3945d83890eada5180d71f46b35 Mon Sep 17 00:00:00 2001 From: rms Date: Tue, 6 Jun 2017 10:29:28 -0400 Subject: [PATCH] switch to public function --- mesh/EdgeLoop.cs | 4 ++-- mesh/EdgeSpan.cs | 4 ++-- mesh/MeshConstraintUtil.cs | 6 +++--- mesh/MeshEditor.cs | 2 +- mesh/RegionRemesher.cs | 2 +- mesh/Remesher.cs | 2 +- queries/MeshValidation.cs | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/mesh/EdgeLoop.cs b/mesh/EdgeLoop.cs index 209fe224..085c9783 100644 --- a/mesh/EdgeLoop.cs +++ b/mesh/EdgeLoop.cs @@ -45,7 +45,7 @@ public bool IsInternalLoop() for (int i = 0; i < NV; ++i ) { int eid = Mesh.FindEdge(Vertices[i], Vertices[(i + 1) % NV]); Debug.Assert(eid != DMesh3.InvalidID); - if (Mesh.edge_is_boundary(eid)) + if (Mesh.IsBoundaryEdge(eid)) return false; } return true; @@ -58,7 +58,7 @@ public bool IsBoundaryLoop() for (int i = 0; i < NV; ++i ) { int eid = Mesh.FindEdge(Vertices[i], Vertices[(i + 1) % NV]); Debug.Assert(eid != DMesh3.InvalidID); - if (Mesh.edge_is_boundary(eid) == false) + if (Mesh.IsBoundaryEdge(eid) == false) return false; } return true; diff --git a/mesh/EdgeSpan.cs b/mesh/EdgeSpan.cs index ea1021c1..6b6c3af3 100644 --- a/mesh/EdgeSpan.cs +++ b/mesh/EdgeSpan.cs @@ -49,7 +49,7 @@ public bool IsInternalSpan() for (int i = 0; i < NV-1; ++i ) { int eid = Mesh.FindEdge(Vertices[i], Vertices[i + 1]); Debug.Assert(eid != DMesh3.InvalidID); - if (Mesh.edge_is_boundary(eid)) + if (Mesh.IsBoundaryEdge(eid)) return false; } return true; @@ -62,7 +62,7 @@ public bool IsBoundarySpan() for (int i = 0; i < NV-1; ++i ) { int eid = Mesh.FindEdge(Vertices[i], Vertices[i + 1]); Debug.Assert(eid != DMesh3.InvalidID); - if (Mesh.edge_is_boundary(eid) == false) + if (Mesh.IsBoundaryEdge(eid) == false) return false; } return true; diff --git a/mesh/MeshConstraintUtil.cs b/mesh/MeshConstraintUtil.cs index c379c4f2..408bcfed 100644 --- a/mesh/MeshConstraintUtil.cs +++ b/mesh/MeshConstraintUtil.cs @@ -14,7 +14,7 @@ public static void FixAllBoundaryEdges(MeshConstraints cons, DMesh3 mesh) { int NE = mesh.MaxEdgeID; for ( int ei = 0; ei < NE; ++ei ) { - if ( mesh.IsEdge(ei) && mesh.edge_is_boundary(ei) ) { + if ( mesh.IsEdge(ei) && mesh.IsBoundaryEdge(ei) ) { cons.SetOrUpdateEdgeConstraint(ei, EdgeConstraint.FullyConstrained); Index2i ev = mesh.GetEdgeV(ei); @@ -33,7 +33,7 @@ public static void FixAllBoundaryEdges_AllowCollapse(MeshConstraints cons, DMesh int NE = mesh.MaxEdgeID; for ( int ei = 0; ei < NE; ++ei ) { - if ( mesh.IsEdge(ei) && mesh.edge_is_boundary(ei) ) { + if ( mesh.IsEdge(ei) && mesh.IsBoundaryEdge(ei) ) { cons.SetOrUpdateEdgeConstraint(ei, edgeCons); Index2i ev = mesh.GetEdgeV(ei); @@ -54,7 +54,7 @@ public static void FixSubmeshBoundaryEdges(MeshConstraints cons, DSubmesh3 sub) Index2i sub_ev = sub.MapVerticesToSubmesh(base_ev); int sub_eid = sub.SubMesh.FindEdge(sub_ev.a, sub_ev.b); Debug.Assert(sub_eid != DMesh3.InvalidID); - Debug.Assert(sub.SubMesh.edge_is_boundary(sub_eid)); + Debug.Assert(sub.SubMesh.IsBoundaryEdge(sub_eid)); cons.SetOrUpdateEdgeConstraint(sub_eid, EdgeConstraint.FullyConstrained); cons.SetOrUpdateVertexConstraint(sub_ev.a, VertexConstraint.Pinned); diff --git a/mesh/MeshEditor.cs b/mesh/MeshEditor.cs index 77ff3c4a..d3121fe2 100644 --- a/mesh/MeshEditor.cs +++ b/mesh/MeshEditor.cs @@ -64,7 +64,7 @@ public virtual int[] AddTriangleFan_OrderedEdgeLoop(int center, int[] edge_loop, int i = 0; for ( i = 0; i < N; ++i ) { - if (Mesh.edge_is_boundary(edge_loop[i]) == false) + if (Mesh.IsBoundaryEdge(edge_loop[i]) == false) goto operation_failed; Index2i ev = Mesh.GetOrientedBoundaryEdgeV(edge_loop[i]); diff --git a/mesh/RegionRemesher.cs b/mesh/RegionRemesher.cs index 2ef2f835..64d9601f 100644 --- a/mesh/RegionRemesher.cs +++ b/mesh/RegionRemesher.cs @@ -64,7 +64,7 @@ public void RepairPossibleNonManifoldEdges() for ( int eid = 0; eid < NE; ++eid ) { if (Region.SubMesh.IsEdge(eid) == false) continue; - if (Region.SubMesh.edge_is_boundary(eid)) + if (Region.SubMesh.IsBoundaryEdge(eid)) continue; Index2i edgev = Region.SubMesh.GetEdgeV(eid); if (Region.SubMesh.vertex_is_boundary(edgev.a) && Region.SubMesh.vertex_is_boundary(edgev.b)) { diff --git a/mesh/Remesher.cs b/mesh/Remesher.cs index b9a39ad6..cb661689 100644 --- a/mesh/Remesher.cs +++ b/mesh/Remesher.cs @@ -100,7 +100,7 @@ public void Precompute() // the flip-valence tests much faster! MeshIsClosed = true; foreach (int eid in mesh.EdgeIndices()) { - if (mesh.edge_is_boundary(eid)) { + if (mesh.IsBoundaryEdge(eid)) { MeshIsClosed = false; break; } diff --git a/queries/MeshValidation.cs b/queries/MeshValidation.cs index 9c71b0d7..e5b85598 100644 --- a/queries/MeshValidation.cs +++ b/queries/MeshValidation.cs @@ -58,7 +58,7 @@ public static ValidationStatus IsBoundaryLoop(DMesh3 mesh, EdgeLoop loop) if (eid == DMesh3.InvalidID) return ValidationStatus.VerticesNotConnectedByEdge; - if (mesh.edge_is_boundary(eid) == false) + if (mesh.IsBoundaryEdge(eid) == false) return ValidationStatus.NotBoundaryEdge; Index2i ev = mesh.GetOrientedBoundaryEdgeV(eid);