The mesh reduction function merges faces in order to reduce the number of faces, vertices and edges. This in turn makes output a clean mesh, significantly lighter than the input.
Target: Name of input .obj/.stl file uploaded to storage
Filename: Target output file name
Portion: Is a float value input from 0 to 1, defining the portion of triangles to reduce.
T: [YOUR SECRET TOKEN]
A list of result files in storage.
genysis.upload('target.obj') reductionPercentage = 10 genysis.meshReduce('target.obj', 'output.obj', reductionPercentage, token)