MeshingParameters

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

Constructors

MeshingParameters

#Since v5.0
Initializes a new instance with default values.

Initial values are same as Default.

public MeshingParameters()

MeshingParameters

#Since v6.0
Initializes a new instance with simple values, similar to that of Rhino's meshing slider interface.
public MeshingParameters(
density,
The density and number of mesh polygons, where 0.0 <= density <= 1.0, where 0 quickly creates coarse meshes, and 1 slowly creates dense meshes.
minimumEdgeLength
The minimum allowed mesh edge length.
)

MeshingParameters

#Since v6.0
Initializes a new instance with simple values, similar to that of Rhino's meshing slider interface.
public MeshingParameters(
density
The density and number of mesh polygons, where 0.0 <= density <= 1.0, where 0 quickly creates coarse meshes, and 1 slowly creates dense meshes.
)

MeshingParameters

#Since v8.0
Initializes a new instance copying values from source.

Initial values are same as Default.

public MeshingParameters(
MeshingParameters
source
)

MeshingParameters

#Since v8.0
Called by BinaryFormatter.Deserialize to create a new MeshParamaters object.
public MeshingParameters()

Finalizer

~MeshingParameters

#
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
~MeshingParameters()

Properties

ClosedObjectPostProcess

#Since v6.0
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 bool ClosedObjectPostProcess { get; set; }

Coarse

#ExampleSince v5.0
Gets mesh creation parameters for coarse meshing.

This corresponds with the "Jagged and Faster" default in Rhino.

public static MeshingParameters Coarse { get; }
obsoleteUse MeshingParameters.FastRenderMesh

ComputeCurvature

#Since v5.0
Gets or sets a value indicating whether or not surface curvature data will be embedded in the mesh.
public bool ComputeCurvature { get; set; }

Default

#ExampleSince v5.0
Gets mesh creation parameters to create the default render mesh. Only use this if you plan on specifying your own custom meshing parameters.
public static MeshingParameters Default { get; }

DefaultAnalysisMesh

#Since v6.0
Gets mesh creation parameters to create the default analysis mesh.
public static MeshingParameters DefaultAnalysisMesh { get; }

DoublePrecision

#Since v8.0
Gets or sets a value indicating whether or not the mesh should have double precision vertices in addition to the floats.
public bool DoublePrecision { get; set; }

FastRenderMesh

#Since v6.0
Gets mesh creation parameters to create the a render mesh when meshing speed is preferred over mesh quality.
public static MeshingParameters FastRenderMesh { get; }

GridAmplification

#Since v5.0
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 double GridAmplification { get; set; }

GridAngle

#Since v5.0
Gets or sets the maximum allowed angle difference (in radians) for a single sampling quad. The angle pertains to the surface normals.
public double GridAngle { get; set; }

GridAspectRatio

#Since v5.0
Gets or sets the maximum allowed aspect ratio of sampling quads.
public double GridAspectRatio { get; set; }

GridMaxCount

#Since v5.0
Gets or sets the maximum number of grid quads in the initial sampling grid.
public int GridMaxCount { get; set; }

GridMinCount

#Since v5.0
Gets or sets the minimum number of grid quads in the initial sampling grid.
public int GridMinCount { get; set; }

JaggedSeams

#Since v5.0
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 bool JaggedSeams { get; set; }

MaximumEdgeLength

#Since v5.0
Gets or sets the maximum allowed mesh edge length.
public double MaximumEdgeLength { get; set; }

Minimal

#ExampleSince v5.0
Gets minimal meshing parameters.
public static MeshingParameters Minimal { get; }

MinimumEdgeLength

#Since v5.0
Gets or sets the minimum allowed mesh edge length.
public double MinimumEdgeLength { get; set; }

MinimumTolerance

#Since v5.0
Gets or sets the minimum tolerance.
public double MinimumTolerance { get; set; }

QualityRenderMesh

#Since v6.0
Gets mesh creation parameters to create the a render mesh when mesh quality is preferred over meshing speed.
public static MeshingParameters QualityRenderMesh { get; }

RefineAngle

#Since v5.0
Gets or sets the mesh parameter refine angle in radians.
public double RefineAngle { get; set; }

RefineAngleInDegrees

#Since v8.0
Gets or sets the mesh parameter refine angle in degrees.
public double RefineAngleInDegrees { get; set; }

RefineGrid

#Since v5.0
Gets or sets a value indicating whether or not the sampling grid can be refined when certain tolerances are not met.
public bool RefineGrid { get; set; }

RelativeTolerance

#Since v5.0
Gets or sets the relative tolerance.
public double RelativeTolerance { get; set; }

SimplePlanes

#Since v5.0
Gets or sets a value indicating whether or not planar areas are allowed to be meshed in a simplified manner.
public bool SimplePlanes { get; set; }

Smooth

#ExampleSince v5.0
Gets mesh creation parameters for smooth meshing.

This corresponds with the "Smooth and Slower" default in Rhino.

public static MeshingParameters Smooth { get; }
obsoleteUse MeshingParameters.QualityRenderMesh

TextureRange

#Since v6.0
Gets or sets how and if textures will be packed.
public MeshingParameterTextureRange TextureRange { get; set; }

Tolerance

#Since v5.0
Gets or sets the maximum allowed edge deviation. This tolerance is measured between the center of the mesh edge and the surface.
public double Tolerance { get; set; }

Methods

CopyFrom

#Since v8.0
Call this method to copy MeshingParameters from another instance.
public void CopyFrom()

Dispose

#Since v5.0
Actively reclaims unmanaged resources that this instance uses.
public void Dispose()

Dispose

#
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.

protected virtual void Dispose(
disposing
true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer.
)

DocumentCurrentSetting

#Since v5.0
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 static MeshingParameters DocumentCurrentSetting(
doc
A Rhino document to query.
)
Meshing parameters of the document.
ArgumentNullExceptionIf doc is null.

Equals

#Since v8.0
Determines whether the specified MeshingParameters has the same values as the present MeshingParameters.
public bool Equals(
other
The specified MeshingParameters.
)
true if MeshingParameters has the same values as this; otherwise false.

Equals

#Since v8.0
Determines whether the specified MeshingParameters has the same values as the present MeshingParameters.
public override bool Equals(
obj
The specified MeshingParameters.
)
true if MeshingParameters has the same values as this; otherwise false.
Object.Equals

FromEncodedString

#Since v8.0
Converts encoded serialized string into a MeshingParameters
public static MeshingParameters FromEncodedString(
value
Encoded string returned by MeshingParameters.ToString()
)
Returns a new MeshingParameters created by decoding and deserializing the string or null if value is invalid.

GetHashCode

#
Computes a hash number that represents the current MeshingParameters.
public override int GetHashCode()
A hash code for MeshingParameters.

GetObjectData

#Since v8.0
Populates a SerializationInfo with the data needed to serialize the target object.
public void GetObjectData(
info,
The SerializationInfo to populate with data.
context
The destination (see StreamingContext) for this serialization.
)
SecurityExceptionThe caller does not have the required permission.

SetSubDDisplayParameters

#Since v7.18
Sets the SubD display parameters.
public void SetSubDDisplayParameters(
subDDisplayParameters
The SubD display parameters.
)

SubDDisplayParameters

#Since v7.18
Gets the SubD display parameters.
public SubDDisplayParameters SubDDisplayParameters()
The SubD display parameters.

ToEncodedString

#Since v8.0
Returns a encoded string that represents the MeshingParameters.
public string ToEncodedString()
A encoded string that represents the MeshingParameters.

Operators

OperationResultDescription
MeshingParameters==MeshingParametersboolDetermines whether the two MeshingParameters have equal values.
MeshingParameters!=MeshingParametersboolDetermines whether the two MeshingParameters do not have equal values.