simplify_stl#

ansys.aedt.core.visualization.advanced.misc.simplify_stl(input_file, output_file=None, decimation=0.5, preview=False)[source]#

Import and simplify a stl file using pyvista and fast-simplification.

Parameters:
input_filestr

Input stl file.

output_filestr, optional

Output stl file.

decimationfloat, optional

Fraction of the original mesh to remove before creating the stl file. If set to 0.9, this function will try to reduce the data set to 10% of its original size and will remove 90% of the input triangles.

previewbool, optional

Whether to preview the model in pyvista or skip it.

Returns
——-
str

Full path to output stl.