MeshingParameters

class rhino3dm.MeshingParameters
MeshingParameters()

MeshingParameters constructor

MeshingParameters(density)

Initializes a new instance with simple values, similar to that of Rhino’s meshing slider interface.

Parameters:

density (float) – 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(density, minimumEdgeLength)

Initializes a new instance with simple values, similar to that of Rhino’s meshing slider interface.

Parameters:
  • density (float) – 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 (float) – The minimum allowed mesh edge length.

Default

rhino3dm.MeshingParameters: Gets mesh creation parameters to create the default render mesh. Only use this if you plan on specifying your own custom meshing parameters.

FastRenderMesh

rhino3dm.MeshingParameters: Gets mesh creation parameters to create the a render mesh when meshing speed is preferred over mesh quality.

QualityRenderMesh

rhino3dm.MeshingParameters: Gets mesh creation parameters to create the a render mesh when mesh quality is preferred over meshing speed.

DefaultAnalysisMesh

rhino3dm.MeshingParameters: Gets mesh creation parameters to create the default analysis mesh.

TextureRange

MeshingParameterTextureRange: Gets or sets how and if textures will be packed.

JaggedSeams

bool: 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.

RefineGrid

bool: Gets or sets a value indicating whether or not the sampling grid can be refined when certain tolerances are not met.

SimplePlanes

bool: Gets or sets a value indicating whether or not planar areas are allowed to be meshed in a simplified manner.

ComputeCurvature

bool: Gets or sets a value indicating whether or not surface curvature data will be embedded in the mesh.

ClosedObjectPostProcess

bool: 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.

GridMinCount

int: Gets or sets the minimum number of grid quads in the initial sampling grid.

GridMaxCount

int: Gets or sets the maximum number of grid quads in the initial sampling grid.

GridAngle

float: Gets or sets the maximum allowed angle difference (in radians) for a single sampling quad. The angle pertains to the surface normals.

GridAspectRatio

float: Gets or sets the maximum allowed aspect ratio of sampling quads.

GridAmplification

float: 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.

Tolerance

float: Gets or sets the maximum allowed edge deviation. This tolerance is measured between the center of the mesh edge and the surface.

MinimumTolerance

float: Gets or sets the minimum tolerance.

RelativeTolerance

float: Gets or sets the relative tolerance.

MinimumEdgeLength

float: Gets or sets the minimum allowed mesh edge length.

MaximumEdgeLength

float: Gets or sets the maximum allowed mesh edge length.

RefineAngle

float: Gets or sets the mesh parameter refine angle in radians.

Encode()

[todo] add documentation

static Decode(jsonObject)

[todo] add documentation