Class Loop
A Loop of HalfEdges which bound a Face.
Inheritance
System.Object
Loop
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.Solids
Assembly: Hypar.Elements.dll
Syntax
public class Loop
Constructors
Loop()
Construct a Loop.
Declaration
public Loop()
Loop(HalfEdge[])
Construct a Loop from an array of HalfEdges.
Declaration
public Loop(HalfEdge[] edges)
Parameters
Type | Name | Description |
---|---|---|
HalfEdge[] | edges |
Properties
Edges
A collection of HalfEdges which comprise the Loop.
Declaration
public List<HalfEdge> Edges { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<HalfEdge> |
Face
The Face to which this Loop corresponds.
Declaration
public Face Face { get; set; }
Property Value
Type | Description |
---|---|
Face |
Methods
AddEdgeToEnd(HalfEdge)
Add a HalfEdge to the end of the Loop.
Declaration
public void AddEdgeToEnd(HalfEdge he)
Parameters
Type | Name | Description |
---|---|---|
HalfEdge | he |
AddEdgeToStart(HalfEdge)
Add a HalfEdge ot the start of the Loop.
Declaration
public void AddEdgeToStart(HalfEdge he)
Parameters
Type | Name | Description |
---|---|---|
HalfEdge | he |
InsertEdgeAfter(HalfEdge, HalfEdge)
Insert the provided half edge after the target half edge.
Declaration
public void InsertEdgeAfter(HalfEdge target, HalfEdge newEdge)
Parameters
Type | Name | Description |
---|---|---|
HalfEdge | target | The half after which the new edge will be inserted. |
HalfEdge | newEdge | The half edge to be inserted. |
InsertEdgeBefore(HalfEdge, HalfEdge)
Insert the provided half edge before the target half edge.
Declaration
public void InsertEdgeBefore(HalfEdge target, HalfEdge newEdge)
Parameters
Type | Name | Description |
---|---|---|
HalfEdge | target | The half before which the new edge will be inserted. |
HalfEdge | newEdge | The half edge to be inserted. |
ToPolygon(Transform)
Convert this loop to a polygon.
Declaration
public Polygon ToPolygon(Transform transform = null)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform |
Returns
Type | Description |
---|---|
Polygon |