Table of Contents

Method ToMesh

Namespace
GeometryHelper.Meshing
Assembly
GeometryHelper.dll

ToMesh(GeoPolygon3, MeshOptions)

Breaks a polygon into faces as the options say, its grid level, using the default tolerance.

public static GeoMesh3 ToMesh(GeoPolygon3 polygon, MeshOptions options)

Parameters

polygon GeoPolygon3
options MeshOptions

Returns

GeoMesh3

ToMesh(GeoPolygon3, MeshOptions, Tolerance)

Breaks a polygon into faces as the options say, its grid level, within a tolerance.

public static GeoMesh3 ToMesh(GeoPolygon3 polygon, MeshOptions options, Tolerance tolerance)

Parameters

polygon GeoPolygon3
options MeshOptions
tolerance Tolerance

Returns

GeoMesh3

ToMesh(GeoPolygon3, MeshOptions, MeshPlacement3)

Breaks a polygon into faces as the options say, its grid standing as the placement says, using the default tolerance.

public static GeoMesh3 ToMesh(GeoPolygon3 polygon, MeshOptions options, MeshPlacement3 placement)

Parameters

polygon GeoPolygon3
options MeshOptions
placement MeshPlacement3

Returns

GeoMesh3

ToMesh(GeoPolygon3, MeshOptions, MeshPlacement3, Tolerance)

Breaks a polygon into faces as the options say, its grid standing as the placement says, within a tolerance.

public static GeoMesh3 ToMesh(GeoPolygon3 polygon, MeshOptions options, MeshPlacement3 placement, Tolerance tolerance)

Parameters

polygon GeoPolygon3

The polygon; one crossing itself is read as MakeValid() reads it.

options MeshOptions

How to break it up.

placement MeshPlacement3

Which way the grid or the strips run in the polygon's plane, and where a cell starts.

tolerance Tolerance

The tolerance the shape is read within: which of its rings touch, what has no area, and for a grid which cells are whole.

Returns

GeoMesh3

The mesh; one with no faces when the polygon encloses no area.

Exceptions

ArgumentNullException

Thrown when the shape, the options or the placement are null.

ArgumentException

Thrown when the options give an origin of the plane, a grid's cell is no larger than the point tolerance, the grid would lay more cells over the shape than a mesh may have, or the placement's direction stands square to the plane.

ToMesh(GeoFace3, MeshOptions)

Breaks a face into faces with no hole as the options say, its grid level, using the default tolerance.

public static GeoMesh3 ToMesh(GeoFace3 face, MeshOptions options)

Parameters

face GeoFace3
options MeshOptions

Returns

GeoMesh3

ToMesh(GeoFace3, MeshOptions, Tolerance)

Breaks a face into faces with no hole as the options say, its grid level, within a tolerance.

public static GeoMesh3 ToMesh(GeoFace3 face, MeshOptions options, Tolerance tolerance)

Parameters

face GeoFace3
options MeshOptions
tolerance Tolerance

Returns

GeoMesh3

ToMesh(GeoFace3, MeshOptions, MeshPlacement3)

Breaks a face into faces with no hole as the options say, its grid standing as the placement says, using the default tolerance.

public static GeoMesh3 ToMesh(GeoFace3 face, MeshOptions options, MeshPlacement3 placement)

Parameters

face GeoFace3
options MeshOptions
placement MeshPlacement3

Returns

GeoMesh3

ToMesh(GeoFace3, MeshOptions, MeshPlacement3, Tolerance)

Breaks a face into faces with no hole as the options say, its grid standing as the placement says, within a tolerance.

public static GeoMesh3 ToMesh(GeoFace3 face, MeshOptions options, MeshPlacement3 placement, Tolerance tolerance)

Parameters

face GeoFace3

The face; its holes are left open.

options MeshOptions

How to break it up.

placement MeshPlacement3

Which way the grid or the strips run in the face's plane, and where a cell starts.

tolerance Tolerance

The tolerance the shape is read within: which of its rings touch, what has no area, and for a grid which cells are whole.

Returns

GeoMesh3

The mesh; one with no faces when the face encloses no area.

Remarks

A face a hair out of flat, as FromLoops(IEnumerable<GeoPoint3>, IEnumerable<IEnumerable<GeoPoint3>>) keeps them, keeps its corners where they are, and the points the meshing puts on its sides stay on them; only the points inside lie on the plane.

Exceptions

ArgumentNullException

Thrown when the shape, the options or the placement are null.

ArgumentException

Thrown when the options give an origin of the plane, a grid's cell is no larger than the point tolerance, the grid would lay more cells over the shape than a mesh may have, or the placement's direction stands square to the plane.

ToMesh(GeoPolygonArc3, MeshOptions)

Breaks a loop with arcs into faces as the options say, its grid level, using the default tolerance.

public static GeoMesh3 ToMesh(GeoPolygonArc3 loop, MeshOptions options)

Parameters

loop GeoPolygonArc3
options MeshOptions

Returns

GeoMesh3

Exceptions

ArgumentOutOfRangeException

Thrown when the chord tolerance would cut one curve into more than 1 048 576 pieces.

ToMesh(GeoPolygonArc3, MeshOptions, Tolerance)

Breaks a loop with arcs into faces as the options say, its grid level, within a tolerance.

public static GeoMesh3 ToMesh(GeoPolygonArc3 loop, MeshOptions options, Tolerance tolerance)

Parameters

loop GeoPolygonArc3
options MeshOptions
tolerance Tolerance

Returns

GeoMesh3

Exceptions

ArgumentOutOfRangeException

Thrown when the chord tolerance would cut one curve into more than 1 048 576 pieces.

ToMesh(GeoPolygonArc3, MeshOptions, MeshPlacement3)

Breaks a loop with arcs into faces as the options say, its grid standing as the placement says, using the default tolerance.

public static GeoMesh3 ToMesh(GeoPolygonArc3 loop, MeshOptions options, MeshPlacement3 placement)

Parameters

loop GeoPolygonArc3
options MeshOptions
placement MeshPlacement3

Returns

GeoMesh3

Exceptions

ArgumentOutOfRangeException

Thrown when the chord tolerance would cut one curve into more than 1 048 576 pieces.

ToMesh(GeoPolygonArc3, MeshOptions, MeshPlacement3, Tolerance)

Breaks a loop with arcs into faces as the options say, its grid standing as the placement says, within a tolerance, each arc flattened by the options' chord tolerance first.

public static GeoMesh3 ToMesh(GeoPolygonArc3 loop, MeshOptions options, MeshPlacement3 placement, Tolerance tolerance)

Parameters

loop GeoPolygonArc3

The loop.

options MeshOptions

How to break it up.

placement MeshPlacement3

Which way the grid or the strips run in the loop's plane, and where a cell starts.

tolerance Tolerance

The tolerance the shape is read within: which of its rings touch, what has no area, and for a grid which cells are whole.

Returns

GeoMesh3

The mesh of the flattened loop, its normal the one the loop runs counter-clockwise about; one with no faces when it encloses no area.

Exceptions

ArgumentNullException

Thrown when the shape, the options or the placement are null.

ArgumentException

Thrown when the options give an origin of the plane, a grid's cell is no larger than the point tolerance, the grid would lay more cells over the shape than a mesh may have, or the placement's direction stands square to the plane.

ArgumentOutOfRangeException

Thrown when the chord tolerance would cut one curve into more than 1 048 576 pieces.

ToMesh(GeoCircle3, MeshOptions)

Breaks a disc into faces as the options say, its grid level, using the default tolerance.

public static GeoMesh3 ToMesh(GeoCircle3 circle, MeshOptions options)

Parameters

circle GeoCircle3
options MeshOptions

Returns

GeoMesh3

Exceptions

ArgumentOutOfRangeException

Thrown when the chord tolerance would cut one curve into more than 1 048 576 pieces.

ToMesh(GeoCircle3, MeshOptions, Tolerance)

Breaks a disc into faces as the options say, its grid level, within a tolerance.

public static GeoMesh3 ToMesh(GeoCircle3 circle, MeshOptions options, Tolerance tolerance)

Parameters

circle GeoCircle3
options MeshOptions
tolerance Tolerance

Returns

GeoMesh3

Exceptions

ArgumentOutOfRangeException

Thrown when the chord tolerance would cut one curve into more than 1 048 576 pieces.

ToMesh(GeoCircle3, MeshOptions, MeshPlacement3)

Breaks a disc into faces as the options say, its grid standing as the placement says, using the default tolerance.

public static GeoMesh3 ToMesh(GeoCircle3 circle, MeshOptions options, MeshPlacement3 placement)

Parameters

circle GeoCircle3
options MeshOptions
placement MeshPlacement3

Returns

GeoMesh3

Exceptions

ArgumentOutOfRangeException

Thrown when the chord tolerance would cut one curve into more than 1 048 576 pieces.

ToMesh(GeoCircle3, MeshOptions, MeshPlacement3, Tolerance)

Breaks a disc into faces as the options say, its grid standing as the placement says, within a tolerance, its rim flattened by the options' chord tolerance first.

public static GeoMesh3 ToMesh(GeoCircle3 circle, MeshOptions options, MeshPlacement3 placement, Tolerance tolerance)

Parameters

circle GeoCircle3

The circle; its normal is the mesh's.

options MeshOptions

How to break it up.

placement MeshPlacement3

Which way the grid or the strips run in the disc's plane, and where a cell starts.

tolerance Tolerance

The tolerance the shape is read within: which of its rings touch, what has no area, and for a grid which cells are whole.

Returns

GeoMesh3

The mesh of the disc's rim flattened; its triangles fanned from the center, as in the plane. None when the radius is nought.

Exceptions

ArgumentNullException

Thrown when the options or the placement are null.

ArgumentException

Thrown when the options give an origin of the plane, a grid's cell is no larger than the point tolerance, the grid would lay more cells over the shape than a mesh may have, or the placement's direction stands square to the plane.

ArgumentOutOfRangeException

Thrown when the chord tolerance would cut one curve into more than 1 048 576 pieces.

ToMesh(GeoEllipse3, MeshOptions)

Breaks an elliptical disc into faces as the options say, its grid level, using the default tolerance.

public static GeoMesh3 ToMesh(GeoEllipse3 ellipse, MeshOptions options)

Parameters

ellipse GeoEllipse3
options MeshOptions

Returns

GeoMesh3

Exceptions

ArgumentOutOfRangeException

Thrown when the chord tolerance would cut one curve into more than 1 048 576 pieces.

ToMesh(GeoEllipse3, MeshOptions, Tolerance)

Breaks an elliptical disc into faces as the options say, its grid level, within a tolerance.

public static GeoMesh3 ToMesh(GeoEllipse3 ellipse, MeshOptions options, Tolerance tolerance)

Parameters

ellipse GeoEllipse3
options MeshOptions
tolerance Tolerance

Returns

GeoMesh3

Exceptions

ArgumentOutOfRangeException

Thrown when the chord tolerance would cut one curve into more than 1 048 576 pieces.

ToMesh(GeoEllipse3, MeshOptions, MeshPlacement3)

Breaks an elliptical disc into faces as the options say, its grid standing as the placement says, using the default tolerance.

public static GeoMesh3 ToMesh(GeoEllipse3 ellipse, MeshOptions options, MeshPlacement3 placement)

Parameters

ellipse GeoEllipse3
options MeshOptions
placement MeshPlacement3

Returns

GeoMesh3

Exceptions

ArgumentOutOfRangeException

Thrown when the chord tolerance would cut one curve into more than 1 048 576 pieces.

ToMesh(GeoEllipse3, MeshOptions, MeshPlacement3, Tolerance)

Breaks an elliptical disc into faces as the options say, its grid standing as the placement says, within a tolerance, its rim flattened by the options' chord tolerance first.

public static GeoMesh3 ToMesh(GeoEllipse3 ellipse, MeshOptions options, MeshPlacement3 placement, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse; its normal is the mesh's.

options MeshOptions

How to break it up.

placement MeshPlacement3

Which way the grid or the strips run in the disc's plane, and where a cell starts.

tolerance Tolerance

The tolerance the shape is read within: which of its rings touch, what has no area, and for a grid which cells are whole.

Returns

GeoMesh3

The mesh of the disc's rim flattened, as ToMesh(GeoEllipse2, MeshOptions, Tolerance) meshes it in the plane; its triangles fanned from the centre. None when the minor radius is no more than the point tolerance.

Remarks

Own runs a grid along the major axis, pointing along the world's X axis rather than against it, as it runs one along the long side of the ellipse's flattened outline: the ellipse 1000 by 200 takes a grid of 200 by 200 in 20 faces either way. An ellipse that is a circle within the tolerance has no axis of its own, and its grid runs level, as a circle's does.

Exceptions

ArgumentNullException

Thrown when the options or the placement are null.

ArgumentException

Thrown when the options give an origin of the plane, a grid's cell is no larger than the point tolerance, the grid would lay more cells over the shape than a mesh may have, or the placement's direction stands square to the plane.

ArgumentOutOfRangeException

Thrown when the chord tolerance would cut one curve into more than 1 048 576 pieces.

ToMesh(GeoTriangle3, MeshOptions)

Breaks a triangle into faces as the options say, its grid level, using the default tolerance.

public static GeoMesh3 ToMesh(GeoTriangle3 triangle, MeshOptions options)

Parameters

triangle GeoTriangle3
options MeshOptions

Returns

GeoMesh3

ToMesh(GeoTriangle3, MeshOptions, Tolerance)

Breaks a triangle into faces as the options say, its grid level, within a tolerance.

public static GeoMesh3 ToMesh(GeoTriangle3 triangle, MeshOptions options, Tolerance tolerance)

Parameters

triangle GeoTriangle3
options MeshOptions
tolerance Tolerance

Returns

GeoMesh3

ToMesh(GeoTriangle3, MeshOptions, MeshPlacement3)

Breaks a triangle into faces as the options say, its grid standing as the placement says, using the default tolerance.

public static GeoMesh3 ToMesh(GeoTriangle3 triangle, MeshOptions options, MeshPlacement3 placement)

Parameters

triangle GeoTriangle3
options MeshOptions
placement MeshPlacement3

Returns

GeoMesh3

ToMesh(GeoTriangle3, MeshOptions, MeshPlacement3, Tolerance)

Breaks a triangle into faces as the options say, its grid standing as the placement says, within a tolerance.

public static GeoMesh3 ToMesh(GeoTriangle3 triangle, MeshOptions options, MeshPlacement3 placement, Tolerance tolerance)

Parameters

triangle GeoTriangle3

The triangle; its normal, from A by B to C, is the mesh's.

options MeshOptions

How to break it up.

placement MeshPlacement3

Which way the grid or the strips run in the triangle's plane, and where a cell starts.

tolerance Tolerance

The tolerance the shape is read within: what has no area, and for a grid which cells are whole.

Returns

GeoMesh3

The mesh; one with no faces when the triangle encloses no area within the tolerance.

Exceptions

ArgumentNullException

Thrown when the options or the placement are null.

ArgumentException

Thrown when the options give an origin of the plane, a grid's cell is no larger than the point tolerance, the grid would lay more cells over the shape than a mesh may have, or the placement's direction stands square to the plane.