Vixen
02b45cc4
csharp
public readonly record struct MeshEdge

An edge, as the two shared positions it runs between.

Read the guide page for this →

Remarks

⚠ Ordered, so that the edge one face walks forwards and its neighbour walks backwards is one edge. Unordered, a cube would have twenty-four edges where it has twelve, and every one of them would be drawn twice and selectable twice.

Fields and properties (2)

  • public int A

    The lower of the two position indices.

  • public int B

    The higher.

Methods (3)

  • public MeshEdge(int A, int B)

    An edge, as the two shared positions it runs between.

  • public int Other(int position)

    The end that is not the one named.

  • public bool Touches(int position)

    Whether an edge runs to a position.

Used by (9)

  • EditMeshVixen.Geometry
  • EditMeshTestsVixen.Geometry.Tests
  • MeshOperationTestsVixen.Geometry.Tests
  • MeshOperationsVixen.Geometry
  • MeshPropertyTestsVixen.Geometry.Tests
  • MeshSelectionVixen.Geometry
  • MeshTopologyVixen.Geometry
  • MeshTopologyTestsVixen.Geometry.Tests
  • MeshElementsVixen.Editor.SceneView