Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public HalfEdgeHandle Edge
get => new( Mesh is null ? -1 : Mesh[this].Edge, Mesh );
set => Mesh?.SetVertexEdge( this, value );
}

public override string ToString() => Index >= 0 ? $"{Index}" : "Invalid Vertex";
}

public sealed record FaceHandle : IHandle
Expand All @@ -93,6 +95,8 @@ public HalfEdgeHandle Edge
get => new( Mesh is null ? -1 : Mesh[this].Edge, Mesh );
set => Mesh?.SetFaceEdge( this, value );
}

public override string ToString() => Index >= 0 ? $"{Index}" : "Invalid Face";
}

public sealed record HalfEdgeHandle : IHandle
Expand Down Expand Up @@ -132,6 +136,8 @@ public FaceHandle Face
get => new( Mesh is null ? -1 : Mesh[this].Face, Mesh );
set => Mesh?.SetEdgeFace( this, value );
}

public override string ToString() => Index >= 0 ? $"{Index}" : "Invalid Edge";
}

internal sealed partial class Mesh
Expand Down
Loading