XHalfEdge

data class XHalfEdge(val source: XVertex, val target: XVertex, val contour: ShapeContour, val original: XEdge)(source)

Half-edge of an arrangement. Each edge is split length-wise into two half-edges of opposite orientation. Half-edges can be used to traverse an arrangement.

Constructors

Link copied to clipboard
constructor(source: XVertex, target: XVertex, contour: ShapeContour, original: XEdge)

Properties

Link copied to clipboard
val contour: ShapeContour

Geometric representation of the edge, for drawing purposes.

Link copied to clipboard
val end: Vector2
Link copied to clipboard
lateinit var face: XFace

The face to the right of this half-edge.

Link copied to clipboard

The next half-edge of the face.

Link copied to clipboard
val origin: ShapeProvider

The shape that the half-edge originates from.

Link copied to clipboard

The edge that was split into this half-edge and its twin.

Link copied to clipboard
Link copied to clipboard
val start: Vector2
Link copied to clipboard
Link copied to clipboard
lateinit var twin: XHalfEdge

The half-edge of opposite direction originating from original. This is useful for traversing to a different face.