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
kindMeshKindThe kind of faces.
cellWidthdoubleThe size of a grid cell along the grid's first axis. Above nought for Grid, and read by no other kind.
cellHeightdoubleThe size of a grid cell along the grid's second axis. Above nought for Grid, and read by no other kind.
jointdoubleThe gap between two neighbouring cells of a grid, along both axes, as the joints between panels or tiles: the cells stand
cellWidthplus the joint apart. There is no gap at the shape's boundary, where the cells are cut to it. Nought for none.angleRaddouble?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.
alignUGridAlignmentWhere a grid stands along its first axis, when no
originis given.alignVGridAlignmentWhere a grid stands along its second axis, when no
originis given.originGeoPoint2?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.
chordTolerancedoubleThe 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.