SimplifyTessellation..::..SimplifyByPercentage Method

Simplifies by the percentage provided. For example, is ts has 100 triangles, then passing a 0.2 will reduce to 80 triangles

Namespace:  TVGL
Assembly:  TessellationAndVoxelizationGeometryLibraryUniversal (in TessellationAndVoxelizationGeometryLibraryUniversal.dll)

Syntax


public static void SimplifyByPercentage(
	this TessellatedSolid ts,
	double percentageToReduceBy
)
<ExtensionAttribute> _
Public Shared Sub SimplifyByPercentage ( _
	ts As TessellatedSolid, _
	percentageToReduceBy As Double _
)
[ExtensionAttribute]
public:
static void SimplifyByPercentage(
	TessellatedSolid^ ts, 
	double^ percentageToReduceBy
)

Parameters

ts
Type: TVGL..::..TessellatedSolid
The ts.
percentageToReduceBy
Type: Double
The percentage to reduce by.