MeshingParameters
References[Serializable]
public class MeshingParameters : IDisposable, ISerializable, IEquatable<MeshingParameters>
Represents settings used for creating a mesh representation of a brep or surface.
Constructors
public MeshingParameters()
Initializes a new instance with default values.
Initial values are same as Default.
Initializes a new instance with simple values, similar to that of Rhino's meshing slider interface.
Initializes a new instance with simple values, similar to that of Rhino's meshing slider interface.
Parameters:
| density (double) | 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. |
public MeshingParameters(MeshingParameters source)
Initializes a new instance copying values from source.
Initial values are same as Default.
Parameters:
| source (MeshingParameters) |
Called by BinaryFormatter.Deserialize to create a new MeshParamaters object.
Parameters:
| info (SerializationInfo) | |
| context (StreamingContext) |
Finalizer
~MeshingParameters
#~MeshingParameters()
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
Properties
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.
obsoleteUse MeshingParameters.FastRenderMesh
Gets mesh creation parameters for coarse meshing.
This corresponds with the "Jagged and Faster" default in Rhino.
Gets or sets a value indicating whether or not surface curvature data will be embedded in the mesh.
Gets mesh creation parameters to create the default render mesh. Only use this if you plan on specifying your own custom meshing parameters.
Gets mesh creation parameters to create the default analysis mesh.
Gets or sets a value indicating whether or not the mesh should have double precision vertices in addition to the floats.
Gets mesh creation parameters to create the a render mesh when meshing speed is preferred over mesh quality.
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.
Gets or sets the maximum allowed angle difference (in radians) for a single sampling quad. The angle pertains to the surface normals.
Gets or sets the maximum allowed aspect ratio of sampling quads.
Gets or sets the maximum number of grid quads in the initial sampling grid.
Gets or sets the minimum number of grid quads in the initial sampling grid.
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.
Gets or sets the maximum allowed mesh edge length.
Gets minimal meshing parameters.
Gets or sets the minimum allowed mesh edge length.
Gets or sets the minimum tolerance.
Gets mesh creation parameters to create the a render mesh when mesh quality is preferred over meshing speed.
Gets or sets the mesh parameter refine angle in radians.
Gets or sets the mesh parameter refine angle in degrees.
Gets or sets a value indicating whether or not the sampling grid can be refined when certain tolerances are not met.
Gets or sets the relative tolerance.
Gets or sets a value indicating whether or not planar areas are allowed to be meshed in a simplified manner.
obsoleteUse MeshingParameters.QualityRenderMesh
Gets mesh creation parameters for smooth meshing.
This corresponds with the "Smooth and Slower" default in Rhino.
Gets or sets how and if textures will be packed.
Methods
Call this method to copy MeshingParameters from another instance.
Parameters:
| source (MeshingParameters) |
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.
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.
Parameters:
| disposing (bool) | true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer. |
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.
Parameters:
| doc (RhinoDoc) | A Rhino document to query. |
Returns: Meshing parameters of the document.
Exceptions:
| ArgumentNullException | If doc is null. |
Determines whether the specified MeshingParameters has the same values as the present MeshingParameters.
Parameters:
| other (MeshingParameters) | The specified MeshingParameters. |
Returns: true if MeshingParameters has the same values as this; otherwise false.
Determines whether the specified MeshingParameters has the same values as the present MeshingParameters.
Parameters:
| obj (object) | The specified MeshingParameters. |
Returns: true if MeshingParameters has the same values as this; otherwise false.
Overrides: Object.Equals
Converts encoded serialized string into a MeshingParameters
Parameters:
| value (string) | Encoded string returned by MeshingParameters.ToString() |
Returns: 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.
Returns: A hash code for MeshingParameters.
Overrides: Object.GetHashCode
Populates a SerializationInfo with the data needed to serialize the target object.
Parameters:
| info (SerializationInfo) | The SerializationInfo to populate with data. |
| context (StreamingContext) | The destination (see StreamingContext) for this serialization. |
Exceptions:
| SecurityException | The caller does not have the required permission. |
Sets the SubD display parameters.
Parameters:
| subDDisplayParameters (SubDDisplayParameters) | The SubD display parameters. |
Gets the SubD display parameters.
Returns: The SubD display parameters.
Operators
| Operation | Result | Description | ||
|---|---|---|---|---|
| MeshingParameters | == | MeshingParameters | bool | Determines whether the two MeshingParameters have equal values. |
| MeshingParameters | != | MeshingParameters | bool | Determines whether the two MeshingParameters do not have equal values. |