Table of Contents

Class MeshOptions

Namespace
GeometryHelper.Meshing
Assembly
GeometryHelper.dll

How a closed shape of the plane is meshed: the kind of faces, and for a grid the size of its cells, the joints between them and where the grid stands.

The options are immutable, so one instance can be shared between threads and kept as a setting. The factories give the usual ones: Triangles, Grid(double, double, double, GridAlignment, GridAlignment), Strips(double) and Convex; the constructor gives the rest, a turned grid among them.

public sealed class MeshOptions : IEquatable<MeshOptions>
Inheritance
MeshOptions
Implements
Inherited Members

Constructors

MeshOptions(MeshKind, double, double, double, double?, GridAlignment, GridAlignment, GeoPoint2?, double)

Initializes mesh options.

Properties

AlignU

Gets where a grid stands along its first axis, when no Origin is given.

AlignV

Gets where a grid stands along its second axis, when no Origin is given.

AngleRad

Gets the direction of a grid's first axis, or that strips run along, counter-clockwise from the X axis; null when it runs along the X axis, and along a rectangle's own width.

CellHeight

Gets the size of a grid cell along the grid's second axis; nought for a kind that is not a grid.

CellWidth

Gets the size of a grid cell along the grid's first axis; nought for a kind that is not a grid.

ChordTolerance

Gets the largest gap allowed between a chord and the arc it stands for; nought for the automatic share of each radius.

Convex

Convex pieces, few of them.

Joint

Gets the gap between two neighbouring cells of a grid, along both axes; nought for none.

Kind

Gets the kind of faces.

Origin

Gets where a cell of a grid has its first corner, which takes the place of the alignments; null when the alignments place the grid.

Triangles

Triangles on the shape's own corners.

Methods

Equals(MeshOptions)

Determines whether another set of options gives the same mesh.

Equals(object)

Determines whether the specified object is an equal set of options.

GetHashCode()

Returns the hash code for these options.

Grid(double, double, GeoPoint2, double)

A grid of cells along the X and Y axes, or along a rectangle's own sides, with a cell starting at a point.

Grid(double, double, double, GridAlignment, GridAlignment)

A grid of cells along the X and Y axes, or along a rectangle's own sides, standing against the shape as the alignments say.

Strips(double)

Strips along a direction.

ToString()

Describes the options.