Show / Hide Table of Contents

Struct HalfEdge

Represents a half edge. Each half edge contains: a handle to assign a abstract reference to it. a handle to the half edge's origin vertex. a handle to the next half edge. a handle to the previous half edge. a handle to the face it belongs to. attribute information, e.g. the normal and the texture coordinates.

Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Fusee.Jometri
Assembly: Fusee.Jometri.dll
Syntax
public struct HalfEdge

Constructors

HalfEdge(Int32)

Constructor for creating a new HalfEdge.

Declaration
public HalfEdge(int handle)
Parameters
Type Name Description
System.Int32 handle

The reference of the HalfEdge.

HalfEdge(Int32, HalfEdge)

Constructor for creating a new HalfEdge from another one.

Declaration
public HalfEdge(int handle, HalfEdge halfEdge)
Parameters
Type Name Description
System.Int32 handle

The reference of the half edge.

HalfEdge halfEdge

The original HalfEdge.

HalfEdge(Int32, Int32, Int32, Int32, Int32, Int32)

Constructor for creating a new HalfEdge.

Declaration
public HalfEdge(int handle = 0, int originVertex = 0, int twinHalfEdge = 0, int nextHalfEdge = 0, int prevHalfEdge = 0, int incidentFace = 0)
Parameters
Type Name Description
System.Int32 handle
System.Int32 originVertex
System.Int32 twinHalfEdge
System.Int32 nextHalfEdge
System.Int32 prevHalfEdge
System.Int32 incidentFace

Fields

HalfEdgeData

Attribute information.

Declaration
public HalfEdgeData HalfEdgeData
Field Value
Type Description
HalfEdgeData

Handle

The HalfEdges's handle

Declaration
public readonly int Handle
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 obj and this instance are of the same type and represent the same value.

Overrides
System.ValueType.Equals(System.Object)

GetHashCode()

Overwrites GetHashCode

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

Handle as hash code.

Overrides
System.ValueType.GetHashCode()

Operators

Equality(HalfEdge, HalfEdge)

Overload for == operator.

Declaration
public static bool operator ==(HalfEdge first, HalfEdge second)
Parameters
Type Name Description
HalfEdge first

First comparison parameter.

HalfEdge second

Second comparison parameter.

Returns
Type Description
System.Boolean

GreaterThan(HalfEdge, HalfEdge)

Overload for "smaller than" operator. Comparison based on the HalfEdge's handle.

Declaration
public static bool operator>(HalfEdge first, HalfEdge second)
Parameters
Type Name Description
HalfEdge first

First comparison parameter.

HalfEdge second

Second comparison parameter.

Returns
Type Description
System.Boolean

Inequality(HalfEdge, HalfEdge)

Overload for != operator.

Declaration
public static bool operator !=(HalfEdge first, HalfEdge second)
Parameters
Type Name Description
HalfEdge first

First comparison parameter.

HalfEdge second

Second comparison parameter.

Returns
Type Description
System.Boolean

LessThan(HalfEdge, HalfEdge)

Overload for "smaller than" operator. Comparison based on the HalfEdge's handle.

Declaration
public static bool operator <(HalfEdge first, HalfEdge second)
Parameters
Type Name Description
HalfEdge first

First comparison parameter.

HalfEdge second

Second comparison parameter.

Returns
Type Description
System.Boolean
Generated by DocFX
GitHub Repo
Back to top