Show / Hide Table of Contents

Class SubMeshExtensions

Inheritance
System.Object
SubMeshExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AssetRipper.SourceGenerated.Extensions
Assembly: AssetRipper.SourceGenerated.Extensions.dll
Syntax
public static class SubMeshExtensions

Methods

| Improve this Doc View Source

GetFirstIndex(ISubMesh, Boolean)

Declaration
public static uint GetFirstIndex(this ISubMesh subMesh, bool is16BitIndices)
Parameters
Type Name Description
AssetRipper.SourceGenerated.Subclasses.SubMesh.ISubMesh subMesh
System.Boolean is16BitIndices
Returns
Type Description
System.UInt32
| Improve this Doc View Source

GetTopology(ISubMesh)

For versions < 4, IsTriStrip is used here instead.
For it, 0 cooresponds to AssetRipper.SourceGenerated.Enums.MeshTopology.Triangles,
and non-zero cooresponds to AssetRipper.SourceGenerated.Enums.MeshTopology.TriangleStrip.
This conveniently matches the AssetRipper.SourceGenerated.Enums.MeshTopology enumeration.

Declaration
public static MeshTopology GetTopology(this ISubMesh subMesh)
Parameters
Type Name Description
AssetRipper.SourceGenerated.Subclasses.SubMesh.ISubMesh subMesh
Returns
Type Description
AssetRipper.SourceGenerated.Enums.MeshTopology
| Improve this Doc View Source

SetFirstIndex(ISubMesh, Boolean, UInt32)

Declaration
public static void SetFirstIndex(this ISubMesh subMesh, bool is16BitIndices, uint firstIndex)
Parameters
Type Name Description
AssetRipper.SourceGenerated.Subclasses.SubMesh.ISubMesh subMesh
System.Boolean is16BitIndices
System.UInt32 firstIndex
| Improve this Doc View Source

SetTopology(ISubMesh, MeshTopology)

Declaration
public static void SetTopology(this ISubMesh subMesh, MeshTopology topology)
Parameters
Type Name Description
AssetRipper.SourceGenerated.Subclasses.SubMesh.ISubMesh subMesh
AssetRipper.SourceGenerated.Enums.MeshTopology topology
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾