Table of Contents

Method ConvertToPolyMeshType

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ConvertToPolyMeshType(DxfPolyMeshType)

Converts the mesh to a type, as AutoCAD's ConvertToPolyMeshType: straightened for SimpleMesh, otherwise smoothed into that surface as SurfaceFit(DxfPolyMeshType, int, int) smooths it, of the mesh's own densities (groups 73 and 74) where they are 2 or more, else the header's SURFU and SURFV (6 where the file gives none).

public void ConvertToPolyMeshType(DxfPolyMeshType newVal)

Parameters

newVal DxfPolyMeshType

The type.

Exceptions

ArgumentOutOfRangeException

Thrown when the type is not one of DxfPolyMeshType.

InvalidOperationException

Thrown when the mesh is erased, or its grid cannot be smoothed so.