Table of Contents

Constructor MeshOptions

Namespace
GeometryHelper.Meshing
Assembly
GeometryHelper.dll

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

Initializes mesh options.

public MeshOptions(MeshKind kind, double cellWidth = 0, double cellHeight = 0, double joint = 0, double? angleRad = null, GridAlignment alignU = GridAlignment.Start, GridAlignment alignV = GridAlignment.Start, GeoPoint2? origin = null, double chordTolerance = 0)

Parameters

kind MeshKind

The kind of faces.

cellWidth double

The size of a grid cell along the grid's first axis. Above nought for Grid, and read by no other kind.

cellHeight double

The size of a grid cell along the grid's second axis. Above nought for Grid, and read by no other kind.

joint double

The gap between two neighbouring cells of a grid, along both axes, as the joints between panels or tiles: the cells stand cellWidth plus the joint apart. There is no gap at the shape's boundary, where the cells are cut to it. Nought for none.

angleRad double?

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

alignU GridAlignment

Where a grid stands along its first axis, when no origin is given.

alignV GridAlignment

Where a grid stands along its second axis, when no origin is given.

origin GeoPoint2?

Where a cell of a grid has its first corner, the one it starts from along both axes. Given, it takes the place of the alignments.

chordTolerance double

The largest gap allowed between a chord and the arc it stands for, for a loop with arcs or a circle, in drawing units. Nought picks the automatic share of each radius.

Exceptions

ArgumentOutOfRangeException

Thrown when the kind or an alignment is not a defined value, a size, the joint or the chord tolerance is negative or not a finite number, a grid has a cell size of nought, or the angle or the origin is not finite.