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
polygonGeoPolygon3optionsMeshOptions
Returns
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
polygonGeoPolygon3optionsMeshOptionstoleranceTolerance
Returns
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
polygonGeoPolygon3optionsMeshOptionsplacementMeshPlacement3
Returns
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
polygonGeoPolygon3The polygon; one crossing itself is read as MakeValid() reads it.
optionsMeshOptionsHow to break it up.
placementMeshPlacement3Which way the grid or the strips run in the polygon's plane, and where a cell starts.
toleranceToleranceThe 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
faceGeoFace3optionsMeshOptions
Returns
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
faceGeoFace3optionsMeshOptionstoleranceTolerance
Returns
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
faceGeoFace3optionsMeshOptionsplacementMeshPlacement3
Returns
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
faceGeoFace3The face; its holes are left open.
optionsMeshOptionsHow to break it up.
placementMeshPlacement3Which way the grid or the strips run in the face's plane, and where a cell starts.
toleranceToleranceThe 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
loopGeoPolygonArc3optionsMeshOptions
Returns
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
loopGeoPolygonArc3optionsMeshOptionstoleranceTolerance
Returns
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
loopGeoPolygonArc3optionsMeshOptionsplacementMeshPlacement3
Returns
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
loopGeoPolygonArc3The loop.
optionsMeshOptionsHow to break it up.
placementMeshPlacement3Which way the grid or the strips run in the loop's plane, and where a cell starts.
toleranceToleranceThe 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
circleGeoCircle3optionsMeshOptions
Returns
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
circleGeoCircle3optionsMeshOptionstoleranceTolerance
Returns
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
circleGeoCircle3optionsMeshOptionsplacementMeshPlacement3
Returns
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
circleGeoCircle3The circle; its normal is the mesh's.
optionsMeshOptionsHow to break it up.
placementMeshPlacement3Which way the grid or the strips run in the disc's plane, and where a cell starts.
toleranceToleranceThe 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
ellipseGeoEllipse3optionsMeshOptions
Returns
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
ellipseGeoEllipse3optionsMeshOptionstoleranceTolerance
Returns
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
ellipseGeoEllipse3optionsMeshOptionsplacementMeshPlacement3
Returns
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
ellipseGeoEllipse3The ellipse; its normal is the mesh's.
optionsMeshOptionsHow to break it up.
placementMeshPlacement3Which way the grid or the strips run in the disc's plane, and where a cell starts.
toleranceToleranceThe 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
triangleGeoTriangle3optionsMeshOptions
Returns
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
triangleGeoTriangle3optionsMeshOptionstoleranceTolerance
Returns
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
triangleGeoTriangle3optionsMeshOptionsplacementMeshPlacement3
Returns
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
triangleGeoTriangle3The triangle; its normal, from A by B to C, is the mesh's.
optionsMeshOptionsHow to break it up.
placementMeshPlacement3Which way the grid or the strips run in the triangle's plane, and where a cell starts.
toleranceToleranceThe 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.