Skip to content

Commit

Permalink
switch to public function
Browse files Browse the repository at this point in the history
  • Loading branch information
rms80 committed Jun 6, 2017
1 parent b703c47 commit 26c5c25
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions mesh/EdgeLoop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions mesh/EdgeSpan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions mesh/MeshConstraintUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion mesh/MeshEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion mesh/RegionRemesher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion mesh/Remesher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion queries/MeshValidation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 26c5c25

Please sign in to comment.