Class SimplifyMesh


  • public class SimplifyMesh
    extends Object
    Author:
    James Khan / jayfella, Deborah Schmidt / frauzufall
    • Constructor Detail

      • SimplifyMesh

        public SimplifyMesh​(Mesh mesh)
    • Method Detail

      • simplify

        public Mesh simplify​(float target_percent,
                             double agressiveness)
        Begins the simplification process.
        Parameters:
        target_percent - the amount in percent to attempt to achieve. For example: 0.25f would result in creating a mesh with 25% of triangles contained in the original.
        agressiveness - sharpness to increase the threshold. 5..8 are good numbers. more iterations yield higher quality. Minimum 4 and maximum 20 are recommended.