MeshingParameters

MeshingParameters

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

Constructor

new MeshingParameters(density)

Initializes a new instance with simple values, similar to that of Rhino's meshing slider interface.
Parameters:
Name Type Description
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.

Members

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

computeCurvature :bool

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

gridAmplification :double

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.
Type:
  • double

gridAngle :double

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

gridAspectRatio :double

Gets or sets the maximum allowed aspect ratio of sampling quads.
Type:
  • double

gridMaxCount :int

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

gridMinCount :int

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

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

maximumEdgeLength :double

Gets or sets the maximum allowed mesh edge length.
Type:
  • double

minimumEdgeLength :double

Gets or sets the minimum allowed mesh edge length.
Type:
  • double

minimumTolerance :double

Gets or sets the minimum tolerance.
Type:
  • double

refineAngle :double

Gets or sets the mesh parameter refine angle.
Type:
  • double

refineGrid :bool

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

relativeTolerance :double

Gets or sets the relative tolerance.
Type:
  • double

simplePlanes :bool

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

textureRange :MeshingParameterTextureRange

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

tolerance :double

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

Methods

(static) decode()

...

(static) default()

...

(static) defaultAnalysisMesh()

...

(static) fastRenderMesh()

...

(static) qualityRenderMesh()

...

encode()

...

toJSON()

...