Gorilla.Utils.Reduction
Unit Gorilla.Utils.Reduction.pasClasses
- TGorillaReduction = class ( TObject )
TGorillaReduction
Helper class for vertices / polygon reduction
Ancestors
Members
Methods
- public function RemoveDegenerateTriangles ( AIndexBuf : TIndexBuffer ) : Integer ; class;
- public function RemoveReplicatedTriangles ( AIndexBuf : TIndexBuffer ) : Integer ; class;
- public procedure DecimateMesh
(
AMesh :
TMeshData; const
ARatio :
Single
=
0.2
; const
AAgress :
Single
=
3
; const
ATolerance :
Single
=
0.0001
)
;
class;
Decimates the supplied mesh data depending on the supplied parameters.
Parameters
- AMesh : TMeshData - The relevant mesh data to be reduced. An expected ratio of reduction. Aggression used to decimate vertices. The higher the value, the more radical vertices are going to be removed/unified. Tolerance used to decide if a vertices should be removed / unified.
- const ARatio : Single = 0.2 - The relevant mesh data to be reduced. An expected ratio of reduction. Aggression used to decimate vertices. The higher the value, the more radical vertices are going to be removed/unified. Tolerance used to decide if a vertices should be removed / unified.
- const AAgress : Single = 3 - The relevant mesh data to be reduced. An expected ratio of reduction. Aggression used to decimate vertices. The higher the value, the more radical vertices are going to be removed/unified. Tolerance used to decide if a vertices should be removed / unified.
- const ATolerance : Single = 0.0001 - The relevant mesh data to be reduced. An expected ratio of reduction. Aggression used to decimate vertices. The higher the value, the more radical vertices are going to be removed/unified. Tolerance used to decide if a vertices should be removed / unified.