Show / Hide Table of Contents

    Class Buffer3

    Temporary representation of a 3D mesh

    public sealed class Buffer3
    Namespace Engine4
    Inheritance
    System.Object
    Buffer3

    Constructors

    Buffer3()

    Create an empty buffer

    public Buffer3()

    Buffer3(Mesh)

    Create and import from a mesh

    public Buffer3(Mesh m)

    Buffer3(Mesh, Int32)

    Create and import from a mesh within given submesh index

    public Buffer3(Mesh m, int submesh)

    Fields

    m_Colors

    Color data

    public List<Color> m_Colors

    m_Tris

    Triangle or indices data

    public List<List<int>> m_Tris

    m_Uv0

    First UV data

    public List<Vector4> m_Uv0

    m_Uv2

    Second UV data

    public List<Vector4> m_Uv2

    m_Uv3

    Third UV data

    public List<Vector4> m_Uv3

    m_Verts

    Vertices data

    public List<Vector3> m_Verts

    Methods

    AddMesh(Mesh, Boolean, Int32)

    Import from a mesh

    public void AddMesh(Mesh m, bool mergeSubmesh = true, int subMeshIdx = -1)

    AddProfile(VertexProfile)

    Add a vertex profile

    public void AddProfile(VertexProfile p)

    AddProfile(IEnumerable<VertexProfile>)

    Add multiple vertx profiles

    public void AddProfile(IEnumerable<VertexProfile> p)

    AddTris(IEnumerable<Int32>)

    Add multiple indices

    public void AddTris(IEnumerable<int> i)

    AddTris(Int32)

    Add an indice

    public void AddTris(int i)

    AddTris(Int32, Int32)

    Add an indice to given submesh

    public void AddTris(int i, int subMesh)

    AddTris(Int32, Int32, Int32)

    Add triangle

    public void AddTris(int i, int j, int k)

    AddVert(IEnumerable<Vector3>)

    Add multiple vertices

    public void AddVert(IEnumerable<Vector3> v)

    AddVert(Vector3)

    Add a single vertex

    public void AddVert(Vector3 v)

    Append(Buffer3, Boolean, Int32)

    Combine with another buffer

    public void Append(Buffer3 v, bool mergeSubmesh, int startingSubmesh)

    Apply(Mesh, VertexProfiles, MeshTopology)

    Apply to the mesh with given policy

    public void Apply(Mesh m, VertexProfiles profile, MeshTopology topology)

    Clear()

    Clear the buffer

    public void Clear()

    SetSubmesh()

    Advance to the next submesh

    public void SetSubmesh()

    SetSubmesh(Int32)

    Set current submesh writing index

    public void SetSubmesh(int idx)
    ▲ Copyright © 2017 Wello Soft