# MeshingParameters class

Namespace: [Rhino.Geometry](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.geometry.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
[Serializable]
public class MeshingParameters : IDisposable, ISerializable, IEquatable<MeshingParameters>
```

Represents settings used for creating a mesh representation of a brep or surface.

## Constructors

- [MeshingParameters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/ctor.md): (5 overloads) Initializes a new instance with default values. Initial values are same as [MeshingParameters.Default](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/default.md).

## Finalizer

- [~MeshingParameters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/finalize.md): Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

## Properties

- [ClosedObjectPostProcess](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/closedobjectpostprocess.md): Gets or sets a value indicating whether or not to post process non-closed meshes that should be closed. If the Brep being meshed is closed, JaggedSeams = false, and ClosedObjectPostProcess = true, and the resulting mesh is not closed, then a post meshing process is applied to find and close gaps in the mesh. Typically the resulting mesh is not closed because the input Brep has a geometric flaw, like loops in trimming curve.
- [Coarse](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/coarse.md): (static, obsolete) Gets mesh creation parameters for coarse meshing. This corresponds with the "Jagged and Faster" default in Rhino.
- [ComputeCurvature](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/computecurvature.md): Gets or sets a value indicating whether or not surface curvature data will be embedded in the mesh.
- [Default](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/default.md): (static) Gets mesh creation parameters to create the default render mesh. Only use this if you plan on specifying your own custom meshing parameters.
- [DefaultAnalysisMesh](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/defaultanalysismesh.md): (static) Gets mesh creation parameters to create the default analysis mesh.
- [DoublePrecision](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/doubleprecision.md): Gets or sets a value indicating whether or not the mesh should have double precision vertices in addition to the floats.
- [FastRenderMesh](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/fastrendermesh.md): (static) Gets mesh creation parameters to create the a render mesh when meshing speed is preferred over mesh quality.
- [GridAmplification](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/gridamplification.md): Gets or sets the grid amplification factor. Values lower than 1.0 will decrease the number of initial quads, values higher than 1.0 will increase the number of initial quads.
- [GridAngle](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/gridangle.md): Gets or sets the maximum allowed angle difference (in radians) for a single sampling quad. The angle pertains to the surface normals.
- [GridAspectRatio](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/gridaspectratio.md): Gets or sets the maximum allowed aspect ratio of sampling quads.
- [GridMaxCount](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/gridmaxcount.md): Gets or sets the maximum number of grid quads in the initial sampling grid.
- [GridMinCount](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/gridmincount.md): Gets or sets the minimum number of grid quads in the initial sampling grid.
- [JaggedSeams](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/jaggedseams.md): Gets or sets whether or not the mesh is allowed to have jagged seams. When this flag is set to true, meshes on either side of a Brep Edge will not match up.
- [MaximumEdgeLength](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/maximumedgelength.md): Gets or sets the maximum allowed mesh edge length.
- [Minimal](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/minimal.md): (static) Gets minimal meshing parameters.
- [MinimumEdgeLength](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/minimumedgelength.md): Gets or sets the minimum allowed mesh edge length.
- [MinimumTolerance](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/minimumtolerance.md): Gets or sets the minimum tolerance.
- [QualityRenderMesh](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/qualityrendermesh.md): (static) Gets mesh creation parameters to create the a render mesh when mesh quality is preferred over meshing speed.
- [RefineAngle](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/refineangle.md): Gets or sets the mesh parameter refine angle in radians.
- [RefineAngleInDegrees](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/refineangleindegrees.md): Gets or sets the mesh parameter refine angle in degrees.
- [RefineGrid](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/refinegrid.md): Gets or sets a value indicating whether or not the sampling grid can be refined when certain tolerances are not met.
- [RelativeTolerance](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/relativetolerance.md): Gets or sets the relative tolerance.
- [SimplePlanes](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/simpleplanes.md): Gets or sets a value indicating whether or not planar areas are allowed to be meshed in a simplified manner.
- [Smooth](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/smooth.md): (static, obsolete) Gets mesh creation parameters for smooth meshing. This corresponds with the "Smooth and Slower" default in Rhino.
- [TextureRange](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/texturerange.md): Gets or sets how and if textures will be packed.
- [Tolerance](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/tolerance.md): Gets or sets the maximum allowed edge deviation. This tolerance is measured between the center of the mesh edge and the surface.

## Methods

- [CopyFrom](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/copyfrom.md): Call this method to copy MeshingParameters from another instance.
- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/dispose.md): (2 overloads) Actively reclaims unmanaged resources that this instance uses.
- [DocumentCurrentSetting](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/documentcurrentsetting.md): (static) Gets the MeshingParameters that are currently set for a document. These are the same settings that are shown in the DocumentProperties "mesh settings" user interface.
- [Equals](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/equals.md): (2 overloads) Determines whether the specified MeshingParameters has the same values as the present MeshingParameters.
- [FromEncodedString](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/fromencodedstring.md): (static) Converts encoded serialized string into a MeshingParameters
- [GetHashCode](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/gethashcode.md): Computes a hash number that represents the current MeshingParameters.
- [GetObjectData](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/getobjectdata.md): Populates a [SerializationInfo](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.serializationinfo) with the data needed to serialize the target object.
- [SetSubDDisplayParameters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/setsubddisplayparameters.md): Sets the SubD display parameters.
- [SubDDisplayParameters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/subddisplayparameters.md): Gets the SubD display parameters.
- [ToEncodedString](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/toencodedstring.md): Returns a encoded string that represents the MeshingParameters.

## Operators

- [operator ==](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/op-equality.md): (static) Determines whether the two MeshingParameters have equal values.
- [operator !=](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.meshingparameters/op-inequality.md): (static) Determines whether the two MeshingParameters do not have equal values.
