Show / Hide Table of Contents

    Class Vertex

    A mesh vertex.

    Inheritance
    System.Object
    Vertex
    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: Elements.Geometry
    Assembly: Hypar.Elements.dll
    Syntax
    public class Vertex

    Constructors

    Vertex(Vector3, Vector3, Color, Int32, UV)

    Construct a vertex.

    Declaration
    [JsonConstructor]
    public Vertex(Vector3 position, Vector3 normal, Color color, int index, UV uv)
    Parameters
    Type Name Description
    Vector3 position

    The position of the vertex.

    Vector3 normal

    The normal of the vertex.

    Color color

    The color of the vertex.

    System.Int32 index

    The index of the vertex.

    UV uv

    The uv coordinate of the vertex.

    Vertex(Vector3, Nullable<Vector3>, Color)

    Create a vertex.

    Declaration
    public Vertex(Vector3 position, Vector3? normal = null, Color color = default(Color))
    Parameters
    Type Name Description
    Vector3 position

    The position of the vertex.

    System.Nullable<Vector3> normal

    The vertex's normal.

    Color color

    The vertex's color.

    Properties

    Color

    The vertex's color.

    Declaration
    [JsonProperty("Color", Required = Required.Always)]
    [Required]
    public Color Color { get; set; }
    Property Value
    Type Description
    Color

    Index

    The index of the vertex within a mesh.

    Declaration
    [JsonProperty("Index", Required = Required.Always)]
    public int Index { get; set; }
    Property Value
    Type Description
    System.Int32

    Normal

    The vertex's normal.

    Declaration
    [JsonProperty("Normal", Required = Required.AllowNull)]
    public Vector3 Normal { get; set; }
    Property Value
    Type Description
    Vector3

    Position

    The vertex's position.

    Declaration
    [JsonProperty("Position", Required = Required.AllowNull)]
    public Vector3 Position { get; set; }
    Property Value
    Type Description
    Vector3

    Tag

    A tag used to map a mesh vertex to a vertex of a CSG or a solid.

    Declaration
    [JsonIgnore]
    public int Tag { get; set; }
    Property Value
    Type Description
    System.Int32

    Triangles

    The triangles associated with this vertex.

    Declaration
    [JsonProperty("Triangles", Required = Required.Always)]
    [Required]
    [JsonIgnore]
    public IList<Triangle> Triangles { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IList<Triangle>

    UV

    The vertex's texture coordinate.

    Declaration
    [JsonProperty("UV", Required = Required.Always)]
    [Required]
    public UV UV { get; set; }
    Property Value
    Type Description
    UV