public readonly record struct MeshShapeGeometryWhere one shape's geometry sits in a MeshInstanceRenderer's buffers.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Two ranges in one allocation, which is what keeps a wireframe view free of a second buffer. The edges are the same vertices in a different order, so they are index data and nothing else — appended to the same slice, drawn with the same vertex offset, and paid for once at registration whether or not anybody presses the key.
Counts rather than offsets, because the offsets are derivable and two numbers that must agree are one too many: the triangles start at Slice.FirstIndex and the edges at Slice.FirstIndex + TriangleIndices.
Fields and properties (6)
public GeometrySlice SliceThe vertices and both index ranges, as the geometry buffer allocated them.
public int TriangleIndicesHow many indices the surface is drawn from.
public int EdgeIndicesHow many indices its wireframe is drawn from, immediately after the triangles.
public bool IsValidWhether this names a registered shape.
public int TriangleCountHow many triangles the surface has.
public int SegmentCountHow many segments the wireframe has.
Methods (1)
public MeshShapeGeometry(GeometrySlice Slice, int TriangleIndices, int EdgeIndices)Where one shape's geometry sits in a MeshInstanceRenderer's buffers.
Used by (4)
- MeshInstanceBatchVixen.Rendering
- MeshInstanceRendererVixen.Rendering
- MeshInstanceRendererTestsVixen.Rendering.Tests
- ScenePresenterVixen.Editor.App