Click or drag to resize

Mesh Class

Represents the surface net of a Shape section, storing information on which index Buffer to use for referencing vertices of the shape, mostly used for different levels of detail (LoD) models.
Inheritance Hierarchy
SystemObject
  Syroot.NintenTools.BfresMesh

Namespace:  Syroot.NintenTools.Bfres
Assembly:  Syroot.NintenTools.Bfres (in Syroot.NintenTools.Bfres.dll) Version: 1.2.1
Syntax
C#
public class Mesh : IResData

The Mesh type exposes the following members.

Constructors
  NameDescription
Public methodMesh
Initializes a new instance of the Mesh class
Top
Properties
  NameDescription
Public propertyFirstVertex
Gets or sets the offset to the first vertex element of a VertexBuffer to reference by indices.
Public propertyIndexBuffer
Gets or sets the Buffer storing the index data.
Public propertyIndexCount
Gets the number of indices stored in the IndexBuffer.
Public propertyIndexFormat
Gets the GX2IndexFormat determining the data type of the indices in the IndexBuffer.
Public propertyPrimitiveType
Gets or sets the GX2PrimitiveType which determines how indices are used to form polygons.
Public propertySubMeshes
Gets or sets the list of SubMesh instances which split up a mesh into parts which can be hidden if they are not visible to optimize rendering performance.
Top
Methods
  NameDescription
Public methodGetIndices
Returns the indices stored in the IndexBuffer as UInt32 instances.
Public methodSetIndices
Stores the given indices in the IndexBuffer in the provided format, or the current IndexFormat if none was specified.
Top
See Also