Table of Contents

Class MonotoneMountain

The monotone mountain class

internal class MonotoneMountain

Inheritance

Inherited Members

Constructors

MonotoneMountain()

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

public MonotoneMountain()

Fields

PiSlop

The pi slop

private const float PiSlop = 3.1

Field Value

float

Triangles

The triangles

public List<List<Point>> Triangles

Field Value

List<List<Point>>

_convexPoints

The convex points

private readonly HashSet<Point> _convexPoints

Field Value

HashSet<Point>

_head

The head

private Point _head

Field Value

Point

_monoPoly

The mono poly

private readonly List<Point> _monoPoly

Field Value

List<Point>

_positive

The positive

private bool _positive

Field Value

bool

_size

The size

private int _size

Field Value

int

_tail

The tail

private Point _tail

Field Value

Point

Methods

Add(Point)

Adds the point

public void Add(Point point)

Parameters

point Point

The point

Angle(Point)

Angles the p

private float Angle(Point p)

Parameters

p Point

The

Returns

float

The float

AngleSign()

Describes whether this instance angle sign

private bool AngleSign()

Returns

bool

The bool

GenMonoPoly()

Gens the mono poly

private void GenMonoPoly()

IsConvex(Point)

Describes whether this instance is convex

private bool IsConvex(Point p)

Parameters

p Point

The

Returns

bool

The bool

Process()

Processes this instance

public void Process()

Remove(Point)

Removes the point

public void Remove(Point point)

Parameters

point Point

The point

Triangulate()

Triangulates this instance

private void Triangulate()

Valid(Point)

Describes whether this instance valid

private bool Valid(Point p)

Parameters

p Point

The

Returns

bool

The bool