Vixen
02b45cc4
csharp
public readonly record struct MeshFace

One face: a run of corners, and the group it belongs to.

Read the guide page for this →

Remarks

⚠ Two per-face numbers rather than one, and they answer different questions. is what a tool selects and what a material is assigned to — doc 24's D2, and Unreal's PolyGroups. is whether this face's normals are averaged with its neighbours', which is doc 24's P5 and is a statement about shading: a cylinder's wall wants one smoothing group and one material, and its cap wants the same material and a different smoothing group, or the rim goes soft and the silhouette turns to mush.

Fields and properties (4)

  • public int Start

    Where its corners begin in Corners.

  • public int Count

    How many it has. Three is a triangle and four is a quad; more is an n-gon.

  • public int Group

    Which group of faces it is part of. See EditMesh.

  • public int Smoothing

    Which smoothing group it is in, or zero for a face whose edges are all hard.

Methods (1)

  • public MeshFace(int Start, int Count, int Group, int Smoothing = 0)

    One face: a run of corners, and the group it belongs to.

Used by (24)

  • EditMeshVixen.Geometry
  • EditMeshTestsVixen.Geometry.Tests
  • MeshBooleanVixen.Geometry
  • MeshBooleanTestsVixen.Geometry.Tests
  • MeshCollisionVixen.Geometry
  • MeshOperationTestsVixen.Geometry.Tests
  • MeshOperationsVixen.Geometry
  • MeshPropertyTestsVixen.Geometry.Tests
  • MeshShapeTestsVixen.Geometry.Tests
  • MeshSurfaceTestsVixen.Geometry.Tests
  • MeshSurfacesVixen.Geometry
  • MeshTopologyVixen.Geometry
  • MeshTopologyTestsVixen.Geometry.Tests
  • BlockoutGeometryTestsVixen.Editor.Blockout.Tests
  • BlockoutHistoryTestsVixen.Editor.Blockout.Tests
  • BlockoutSelectionVixen.Editor.Blockout
  • BlockoutSelectionTestsVixen.Editor.Blockout.Tests
  • BlockoutSurfaceTestsVixen.Editor.Blockout.Tests
  • BlockoutSurfacesVixen.Editor.Blockout
  • EditMeshSceneTestsVixen.Editor.SceneView.Tests
  • EditMeshesVixen.Editor.SceneView
  • MeshElementsVixen.Editor.SceneView
  • MeshExportVixen.Editor.SceneView
  • SceneMeshesVixen.Editor.SceneView