Vixen
02b45cc4
csharp
public readonly record struct MeshLoop

One face, as the loop and the two per-face numbers a rebuild needs to put it back.

Read the guide page for this →

Remarks

What an operation assembles before it writes anything. Every verb here rebuilds the face table wholesale rather than editing it in place — see Replace for why that is the honest way round.

⚠ Both numbers travel, and forgetting the second is silent. A verb that carried the group and dropped the smoothing would produce a mesh that is materialled correctly and faceted — which looks like a shading bug in the renderer rather than like the extrude that caused it. The default is there so that a caller making a face need not say, and every caller copying one is passing what it copied.

Fields and properties (3)

  • public int[] Loop

    Its corners, as position indices, in winding order.

  • public int Group

    Which group it is in.

  • public int Smooth

    Which smoothing group it is in, or zero for a face with hard edges.

Methods (1)

  • public MeshLoop(int[] Loop, int Group, int Smooth = 0)

    One face, as the loop and the two per-face numbers a rebuild needs to put it back.

Used by (1)

  • MeshOperationsVixen.Geometry