File tree Expand file tree Collapse file tree
engine/Sandbox.Engine/Scene/Components/Mesh/HalfEdgeMesh Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ public HalfEdgeHandle Edge
7272 get => new ( Mesh is null ? - 1 : Mesh [ this ] . Edge , Mesh ) ;
7373 set => Mesh ? . SetVertexEdge ( this , value ) ;
7474 }
75+
76+ public override string ToString ( )
77+ => Index >= 0 ? $ "{ Index } " : "Invalid Vertex" ;
7578}
7679
7780public sealed record FaceHandle : IHandle
@@ -93,6 +96,9 @@ public HalfEdgeHandle Edge
9396 get => new ( Mesh is null ? - 1 : Mesh [ this ] . Edge , Mesh ) ;
9497 set => Mesh ? . SetFaceEdge ( this , value ) ;
9598 }
99+
100+ public override string ToString ( )
101+ => Index >= 0 ? $ "{ Index } " : "Invalid Face" ;
96102}
97103
98104public sealed record HalfEdgeHandle : IHandle
@@ -132,6 +138,9 @@ public FaceHandle Face
132138 get => new ( Mesh is null ? - 1 : Mesh [ this ] . Face , Mesh ) ;
133139 set => Mesh ? . SetEdgeFace ( this , value ) ;
134140 }
141+
142+ public override string ToString ( )
143+ => Index >= 0 ? $ "{ Index } " : "Invalid Edge" ;
135144}
136145
137146internal sealed partial class Mesh
You can’t perform that action at this time.
0 commit comments