Table of Contents

Class Triangulator

The triangulator class

internal class Triangulator

Inheritance

Inherited Members

Constructors

Triangulator(List<Point>, float)

Initializes a new instance of the Alis.Core.Physic.Common.Decomposition.Seidel.Triangulator class

public Triangulator(List<Point> polyLine, float sheer)

Parameters

polyLine List<Point>

The poly line

sheer float

The sheer

Fields

Trapezoids

The trapezoids

public List<Trapezoid> Trapezoids

Field Value

List<Trapezoid>

Triangles

The triangles

public List<List<Point>> Triangles

Field Value

List<List<Point>>

_boundingBox

The bounding box

private readonly Trapezoid _boundingBox

Field Value

Trapezoid

_edgeList

The edge list

private readonly List<Edge> _edgeList

Field Value

List<Edge>

_queryGraph

The query graph

private readonly QueryGraph _queryGraph

Field Value

QueryGraph

_sheer

The sheer

private readonly float _sheer

Field Value

float

_trapezoidalMap

The trapezoidal map

private readonly TrapezoidalMap _trapezoidalMap

Field Value

TrapezoidalMap

_xMonoPoly

The mono poly

private readonly List<MonotoneMountain> _xMonoPoly

Field Value

List<MonotoneMountain>

Methods

CreateMountains()

Creates the mountains

private void CreateMountains()

InitEdges(List<Point>)

Inits the edges using the specified points

private List<Edge> InitEdges(List<Point> points)

Parameters

points List<Point>

The points

Returns

List<Edge>

A list of edge

MarkOutside(Trapezoid)

Marks the outside using the specified t

private void MarkOutside(Trapezoid t)

Parameters

t Trapezoid

The

OrderSegments(List<Edge>)

Orders the segments using the specified edge input

private List<Edge> OrderSegments(List<Edge> edgeInput)

Parameters

edgeInput List<Edge>

The edge input

Returns

List<Edge>

The edges

Process()

Processes this instance

private void Process()

ShearTransform(Point)

Shears the transform using the specified point

private Point ShearTransform(Point point)

Parameters

point Point

The point

Returns

Point

The point

Shuffle<T>(IList<T>)

Shuffles the list

private static void Shuffle<T>(IList<T> list)

Parameters

list IList<T>

The list

Type Parameters

T

The