Table of Contents

Constructor DxfPolygonMesh

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

DxfPolygonMesh()

Initializes a mesh of no points, as AutoCAD's new PolygonMesh(), on layer 0 in no file.

public DxfPolygonMesh()

DxfPolygonMesh(DxfPolyMeshType, int, int, IEnumerable<GeoPoint3>, bool, bool)

Initializes a mesh of a grid of points, as AutoCAD's new PolygonMesh(type, size, sizeValue, vertices, closedValue, closed), on layer 0 in no file until it is added to one.

public DxfPolygonMesh(DxfPolyMeshType type, int size, int sizeValue, IEnumerable<GeoPoint3> vertices, bool closedValue, bool closed)

Parameters

type DxfPolyMeshType

The surface it is smoothed into: SimpleMesh, the one made in code; smooth it afterwards with ConvertToPolyMeshType(DxfPolyMeshType).

size int

How many rows, M, 2 or more.

sizeValue int

How many points in each row, N, 2 or more.

vertices IEnumerable<GeoPoint3>

The points, in the world, row after row, M times N of them.

closedValue bool

Whether the mesh is closed in M, the last row joined to the first.

closed bool

Whether it is closed in N, the last point of each row joined to its first.

Exceptions

ArgumentNullException

Thrown when the points are null.

ArgumentException

Thrown when a coordinate is not finite, or the points are not M times N.

ArgumentOutOfRangeException

Thrown when a size is below 2 or above 32 767.

NotSupportedException

Thrown for a smoothed type: make the mesh simple and smooth it with ConvertToPolyMeshType(DxfPolyMeshType).