Struct Face
Each face belonging to a 2D geometry contains: a handle to assign a abstract reference to it. a reference to one of the half edges that belongs to the faces outer boundary. a List that contains handles to one half edge for each hole in a face. attribute information, e.g. the face normal. Note that unbounded faces can't have a OuterHalfEdge but must have at least one InnerHalfEdge - bounded faces must have a OuterComponent.
Inherited Members
Namespace: Fusee.Jometri
Assembly: Fusee.Jometri.dll
Syntax
public struct Face
Constructors
Face(Int32)
Constructor for creating a new Face.
Declaration
public Face(int handle)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | handle | The reference of the Face. |
Face(Int32, Face)
Constructor for creating a new Face from an other one.
Declaration
public Face(int handle, Face face)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | handle | The reference of the Face. |
Face | face | The original Face. |
Face(Int32, Int32)
Constructor for creating a new Face.
Declaration
public Face(int handle = 0, int outerHalfEdge = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | handle | |
System.Int32 | outerHalfEdge |
Fields
FaceData
Attribute information, e.g. the face normals.
Declaration
public FaceData FaceData
Field Value
Type | Description |
---|---|
FaceData |
Handle
The reference of the Face.
Declaration
public readonly int Handle
Field Value
Type | Description |
---|---|
System.Int32 |
OuterHalfEdge
A reference to one of the half edges that belongs to the Face's outer boundary.
Declaration
public int OuterHalfEdge
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
Equals(Object)
Overwrites "Equals"
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Comparison object. |
Returns
Type | Description |
---|---|
System.Boolean | true, if |
Overrides
GetHashCode()
Overwrites GetHashCode
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Handle as hash code. |
Overrides
Operators
Equality(Face, Face)
Overload for == operator.
Declaration
public static bool operator ==(Face first, Face second)
Parameters
Type | Name | Description |
---|---|---|
Face | first | First comparison parameter. |
Face | second | Second comparison parameter. |
Returns
Type | Description |
---|---|
System.Boolean |
GreaterThan(Face, Face)
Overload for "smaller than" operator. Comparison based on the Face's handle.
Declaration
public static bool operator>(Face first, Face second)
Parameters
Type | Name | Description |
---|---|---|
Face | first | First comparison parameter. |
Face | second | Second comparison parameter. |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(Face, Face)
Overload for != operator.
Declaration
public static bool operator !=(Face first, Face second)
Parameters
Type | Name | Description |
---|---|---|
Face | first | First comparison parameter. |
Face | second | Second comparison parameter. |
Returns
Type | Description |
---|---|
System.Boolean |
LessThan(Face, Face)
Overload for "smaller than" operator. Comparison based on the Face's handle.
Declaration
public static bool operator <(Face first, Face second)
Parameters
Type | Name | Description |
---|---|---|
Face | first | First comparison parameter. |
Face | second | Second comparison parameter. |
Returns
Type | Description |
---|---|
System.Boolean |