Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Struct MeshSource

    Burst friendly struct for storing mesh data that later can be used to create a Unity mesh. Meant to be used in a Jobs

    Implements
    IDisposable
    IMeshSource
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Fwt.Core
    Assembly: fwt.core.dll
    Syntax
    public struct MeshSource : IDisposable, IMeshSource

    Fields

    Allocator

    Declaration
    public Allocator Allocator
    Field Value
    Type Description
    Allocator

    BoundsData

    2 values: MinVertex, MaxVertex

    Declaration
    public NativeArray<float3> BoundsData
    Field Value
    Type Description
    NativeArray<float3>

    Colors

    Colors per vertex of the mesh

    Declaration
    public NativeList<Color> Colors
    Field Value
    Type Description
    NativeList<Color>

    Indices

    16 indices layers (submeshes)

    Declaration
    public FixedArray16<NativeList<uint>> Indices
    Field Value
    Type Description
    FixedArray16<NativeList<uint>>

    MeshSourceMode

    Declaration
    public MeshSourceMode MeshSourceMode
    Field Value
    Type Description
    MeshSourceMode

    MeshTopology

    Declaration
    public MeshTopology MeshTopology
    Field Value
    Type Description
    MeshTopology

    Normals

    Declaration
    public NativeList<float3> Normals
    Field Value
    Type Description
    NativeList<float3>

    Uvs

    4 UV channels

    Declaration
    public FixedArray4<NativeList<Vector2>> Uvs
    Field Value
    Type Description
    FixedArray4<NativeList<Vector2>>

    Vertexes

    Declaration
    public NativeList<VertexData> Vertexes
    Field Value
    Type Description
    NativeList<VertexData>

    Verts

    Vertexes of the mesh

    Declaration
    public NativeList<float3> Verts
    Field Value
    Type Description
    NativeList<float3>

    Properties

    Bounds

    Declaration
    public Bounds Bounds { get; }
    Property Value
    Type Description
    Bounds

    BoundsCenter

    Declaration
    public float3 BoundsCenter { get; }
    Property Value
    Type Description
    float3

    BoundsSize

    Declaration
    public float3 BoundsSize { get; }
    Property Value
    Type Description
    float3

    IsEmpty

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type Description
    bool

    MaxVertPos

    Declaration
    public float3 MaxVertPos { get; set; }
    Property Value
    Type Description
    float3

    MinVertPos

    Declaration
    public float3 MinVertPos { get; set; }
    Property Value
    Type Description
    float3

    Methods

    AddIndice(int, uint)

    Declaration
    public void AddIndice(int submeshIndex, uint indice)
    Parameters
    Type Name Description
    int submeshIndex
    uint indice

    AddTriangle(int, uint, uint, uint, bool)

    Declaration
    public void AddTriangle(int submeshIndex, uint indice0, uint indice1, uint indice2, bool isRecalcNormals = true)
    Parameters
    Type Name Description
    int submeshIndex
    uint indice0
    uint indice1
    uint indice2
    bool isRecalcNormals

    AddVertex(VertexData)

    Declaration
    public void AddVertex(VertexData vertex)
    Parameters
    Type Name Description
    VertexData vertex

    CalculateBounds()

    Declaration
    public Bounds CalculateBounds()
    Returns
    Type Description
    Bounds

    Clear()

    Declaration
    public void Clear()

    Dispose()

    Declaration
    public void Dispose()

    FillMesh(Mesh, bool, bool, bool)

    Fills the provided mesh with data from the mesh source

    Declaration
    public void FillMesh(Mesh mesh, bool isRecalculateBounds, bool isRecalculateNormals, bool isRecalculateTangents)
    Parameters
    Type Name Description
    Mesh mesh
    bool isRecalculateBounds
    bool isRecalculateNormals
    bool isRecalculateTangents

    GetVertexCount()

    Declaration
    public uint GetVertexCount()
    Returns
    Type Description
    uint

    InitAll(Allocator)

    Declaration
    public void InitAll(Allocator allocator)
    Parameters
    Type Name Description
    Allocator allocator

    IsInitialized()

    Declaration
    public bool IsInitialized()
    Returns
    Type Description
    bool

    RecalcTriangleNormals(uint, uint, uint)

    Declaration
    public void RecalcTriangleNormals(uint indice0, uint indice1, uint indice2)
    Parameters
    Type Name Description
    uint indice0
    uint indice1
    uint indice2

    UpdateBounds(float3)

    Declaration
    public void UpdateBounds(float3 position)
    Parameters
    Type Name Description
    float3 position

    Implements

    IDisposable
    IMeshSource

    Extension Methods

    HashExtensions.GetHashCode_ValueType<TValue>(TValue, int)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    In this article
    Back to top Generated by DocFX