T_Rhino_Geometry_MeshingParameters - mcneel/rhinocommon-api-docs GitHub Wiki

MeshingParameters Class

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

Inheritance Hierarchy

System.Object
  Rhino.Geometry.MeshingParameters
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public class MeshingParameters : IDisposable

VB

Public Class MeshingParameters
	Implements IDisposable

The MeshingParameters type exposes the following members.

Constructors

 

Name Description
Public method MeshingParameters Initializes a new instance with default values. Initial values are same as Default.
  Back to Top

Properties

 

Name Description
Public propertyStatic memberCode example Coarse Gets meshing parameters for coarse meshing. This corresponds with the "Jagged and Faster" default in Rhino.
Public property ComputeCurvature Gets or sets a value indicating whether or not surface curvature data will be embedded in the mesh.
Public propertyStatic memberCode example Default Get default meshing parameters.
Public property GridAmplification 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.
Public property GridAngle Gets or sets the maximum allowed angle difference (in radians) for a single sampling quad. The angle pertains to the surface normals.
Public property GridAspectRatio Gets or sets the maximum allowed aspect ratio of sampling quads.
Public property GridMaxCount Gets or sets the maximum number of grid quads in the initial sampling grid.
Public property GridMinCount Gets or sets the minimum number of grid quads in the initial sampling grid.
Public property JaggedSeams 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.
Public property MaximumEdgeLength Gets or sets the maximum allowed mesh edge length.
Public propertyStatic memberCode example Minimal Gets minimal meshing parameters.
Public property MinimumEdgeLength Gets or sets the minimum allowed mesh edge length.
Public property MinimumTolerance Gets or sets the minimum tolerance.
Public property RefineAngle Gets or sets the mesh parameter refine angle.
Public property RefineGrid Gets or sets a value indicating whether or not the sampling grid can be refined when certain tolerances are not met.
Public property RelativeTolerance Gets or sets the relative tolerance.
Public property SimplePlanes Gets or sets a value indicating whether or not planar areas are allowed to be meshed in a simplified manner.
Public propertyStatic memberCode example Smooth Gets meshing parameters for smooth meshing. This corresponds with the "Smooth and Slower" default in Rhino.
Public property Tolerance Gets or sets the maximum allowed edge deviation. This tolerance is measured between the center of the mesh edge and the surface.
  Back to Top

Methods

 

Name Description
Public method Dispose() Actively reclaims unmanaged resources that this instance uses.
Protected method Dispose(Boolean) For derived class implementers. This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

Public methodStatic member DocumentCurrentSetting 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.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Passively reclaims unmanaged resources when the class user did not explicitly call Dispose(). (Overrides Object.Finalize().)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️