Class Face | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Face

    A face of DCEL mesh.

    Inheritance
    System.Object
    Face
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.U2D.TriangleNet.Topology.DCEL
    Syntax
    public class Face

    Constructors

    Face(Point)

    Initializes a new instance of the Face class.

    Declaration
    public Face(Point generator)
    Parameters
    Type Name Description
    Point generator

    The generator of this face (for Voronoi diagram)

    Face(Point, HalfEdge)

    Initializes a new instance of the Face class.

    Declaration
    public Face(Point generator, HalfEdge edge)
    Parameters
    Type Name Description
    Point generator

    The generator of this face (for Voronoi diagram)

    HalfEdge edge

    The half-edge connected to this face.

    Fields

    Empty

    Declaration
    public static readonly Face Empty
    Field Value
    Type Description
    Face

    Properties

    Bounded

    Gets or sets a value, indicating if the face is bounded (for Voronoi diagram).

    Declaration
    public bool Bounded { get; set; }
    Property Value
    Type Description
    System.Boolean

    Edge

    Gets or sets a half-edge connected to the face.

    Declaration
    public HalfEdge Edge { get; set; }
    Property Value
    Type Description
    HalfEdge

    ID

    Gets or sets the face id.

    Declaration
    public int ID { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    EnumerateEdges()

    Enumerates all half-edges of the face boundary.

    Declaration
    public IEnumerable<HalfEdge> EnumerateEdges()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<HalfEdge>

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023