Skip to content

M_Rhino_Geometry_Mesh_Reduce_2

Will Pearson edited this page Aug 12, 2016 · 1 revision

Mesh.Reduce Method (Int32, Boolean, Int32, Boolean, CancellationToken, IProgress(Double), String)

Reduce polygon count

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public bool Reduce(
	int desiredPolygonCount,
	bool allowDistortion,
	int accuracy,
	bool normalizeSize,
	CancellationToken cancelToken,
	IProgress<double> progress,
	out string problemDescription
)

VB

Public Function Reduce ( 
	desiredPolygonCount As Integer,
	allowDistortion As Boolean,
	accuracy As Integer,
	normalizeSize As Boolean,
	cancelToken As CancellationToken,
	progress As IProgress(Of Double),
	<OutAttribute> ByRef problemDescription As String
) As Boolean

Parameters

 

desiredPolygonCount
Type: System.Int32
desired or target number of faces
allowDistortion
Type: System.Boolean
If true mesh appearance is not changed even if the target polygon count is not reached
accuracy
Type: System.Int32
Integer from 1 to 10 telling how accurate reduction algorithm to use. Greater number gives more accurate results
normalizeSize
Type: System.Boolean
If true mesh is fitted to an axis aligned unit cube until reduction is complete
cancelToken
Type: System.Threading.CancellationToken
[Missing documentation for "M:Rhino.Geometry.Mesh.Reduce(System.Int32,System.Boolean,System.Int32,System.Boolean,System.Threading.CancellationToken,System.IProgress{System.Double},System.String@)"]
progress
Type: System.IProgress(Double)
[Missing documentation for "M:Rhino.Geometry.Mesh.Reduce(System.Int32,System.Boolean,System.Int32,System.Boolean,System.Threading.CancellationToken,System.IProgress{System.Double},System.String@)"]
problemDescription
Type: System.String
[Missing documentation for "M:Rhino.Geometry.Mesh.Reduce(System.Int32,System.Boolean,System.Int32,System.Boolean,System.Threading.CancellationToken,System.IProgress{System.Double},System.String@)"]

Return Value

Type: Boolean
True if mesh is successfully reduced and false if mesh could not be reduced for some reason.

Version Information

Supported in: 6.0.16224.21491

See Also

Reference

Mesh Class
Reduce Overload
Rhino.Geometry Namespace

Clone this wiki locally