simplify_stl#
- ansys.aedt.core.visualization.advanced.misc.simplify_stl(input_file, output_file=None, decimation=0.5, preview=False)#
Import and simplify a stl file using pyvista and fast-simplification.
- Parameters:
- input_file
str
Input stl file.
- output_file
str
,optional
Output stl file.
- decimation
float
,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.
- input_file
- Returns:
str
Full path to output stl.