Vixen
dd8b0a81
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 (58, showing 40)

  • AttributeTransferVixen.Geometry.Remeshing
  • AttributeTransferTestsVixen.Geometry.Remeshing.Tests
  • BrokenMeshSpaceVixen.Geometry.Remeshing.Tests
  • BrokenMeshesVixen.Geometry.Remeshing.Tests
  • ChartMeshVixen.Geometry.Uv
  • CharterVixen.Geometry.Uv
  • EditMeshVixen.Geometry
  • EditMeshTestsVixen.Geometry.Tests
  • FeatureCurvesVixen.Geometry.Remeshing
  • FeatureDetectionTestsVixen.Geometry.Remeshing.Tests
  • LayoutAtlasVixen.Geometry.Remeshing
  • LayoutAtlasTestsVixen.Geometry.Remeshing.Tests
  • MapBakerVixen.Geometry.Remeshing
  • MapBakerTestsVixen.Geometry.Remeshing.Tests
  • MeshBooleanVixen.Geometry
  • MeshBooleanTestsVixen.Geometry.Tests
  • MeshCollisionVixen.Geometry
  • MeshGroupSourceTestsVixen.Geometry.Tests
  • MeshKnifeTestsVixen.Geometry.Tests
  • MeshMapTestsVixen.Geometry.Remeshing.Tests
  • MeshOperationTestsVixen.Geometry.Tests
  • MeshOperationsVixen.Geometry
  • MeshPropertyTestsVixen.Geometry.Tests
  • MeshShapeTestsVixen.Geometry.Tests
  • MeshSurfaceTestsVixen.Geometry.Tests
  • MeshSurfacesVixen.Geometry
  • MeshTopologyVixen.Geometry
  • MeshTopologyTestsVixen.Geometry.Tests
  • RemeshMetricsVixen.Geometry.Remeshing
  • RemeshPipelinePropertyTestsVixen.Geometry.Remeshing.Tests
  • RemesherTestsVixen.Geometry.Remeshing.Tests
  • SeamGraphVixen.Geometry.Uv
  • SettingsHonouredTestsVixen.Geometry.Remeshing.Tests
  • SourceSurfaceVixen.Geometry.Remeshing
  • SurfaceSpaceVixen.Geometry.Uv.Tests
  • SymmetryPassVixen.Geometry.Remeshing
  • SymmetryTestsVixen.Geometry.Remeshing.Tests
  • TransferFixturesVixen.Geometry.Remeshing.Tests
  • TriangleSoupVixen.Geometry.Remeshing
  • UvChartTestsVixen.Geometry.Uv.Tests