MeshingParameters
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)
Syntax
[SerializableAttribute]public class MeshingParameters : IDisposable, ISerializable, IEquatable<MeshingParameters>
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
.Public Method
MeshingParameters(Double)
Initializes a new instance with simple values, similar to that of Rhino’s meshing slider interface.
Public Method
MeshingParameters(MeshingParameters)
Initializes a new instance copying values from source.
Initial values are same as
Default
.Public Method
MeshingParameters(Double, Double)
Initializes a new instance with simple values, similar to that of Rhino’s meshing slider interface.
Public Method
MeshingParameters(SerializationInfo, StreamingContext)
Called by BinaryFormatter.Deserialize to create a new MeshParamaters object.
Properties
Name
Description
Public Property
ClosedObjectPostProcess
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.
Public Property
Static Member
Code Example
Coarse
Obsolete.
Gets mesh creation 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 Property
Static Member
Code Example
Default
Gets mesh creation parameters to create the default render mesh. Only use this if you plan on specifying your own custom meshing parameters.
Public Property
Static Member
DefaultAnalysisMesh
Gets mesh creation parameters to create the default analysis mesh.
Public Property
DoublePrecision
Gets or sets a value indicating whether or not the mesh should have double precision vertices in addition to the floats.
Public Property
Static Member
FastRenderMesh
Gets mesh creation parameters to create the a render mesh when meshing speed is preferred over mesh quality.
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 Property
Static Member
Code 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
Static Member
QualityRenderMesh
Gets mesh creation parameters to create the a render mesh when mesh quality is preferred over meshing speed.
Public Property
RefineAngle
Gets or sets the mesh parameter refine angle in radians.
Public Property
RefineAngleInDegrees
Gets or sets the mesh parameter refine angle in degrees.
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 Property
Static Member
Code Example
Smooth
Obsolete.
Gets mesh creation parameters for smooth meshing.
This corresponds with the “Smooth and Slower” default in Rhino.
Public Property
TextureRange
Gets or sets how and if textures will be packed.
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.
Methods
Name
Description
Public Method
CopyFrom
Call this method to copy MeshingParameters from another instance.
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 Method
Static 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(MeshingParameters)
Determines whether the specified MeshingParameters has the same values as the present MeshingParameters.
Public Method
Equals(Object)
Determines whether the specified MeshingParameters has the same values as the present MeshingParameters.
(Overrides Object.Equals(Object).)
Protected Method
Finalize
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
(Overrides Object.Finalize..)
Public Method
Static Member
FromEncodedString
Converts encoded serialized string into a MeshingParameters
Public Method
GetHashCode
Computes a hash number that represents the current MeshingParameters.
(Overrides Object.GetHashCode..)
Public Method
GetObjectData
Populates a SerializationInfo with the data needed to serialize the target 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
SetSubDDisplayParameters
Sets the SubD display parameters.
Public Method
SubDDisplayParameters
Gets the SubD display parameters.
Public Method
ToEncodedString
Returns a encoded string that represents the MeshingParameters.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)
Operators
Name
Description
Public Operator
Static Member
Equality
Determines whether the two MeshingParameters have equal values.
Public Operator
Static Member
Inequality
Determines whether the two MeshingParameters do not have equal values.