simplify_objects#
- Modeler3D.simplify_objects(assignment, simplify_type: str = 'Polygon Fit', extrusion_axis: str = 'Auto', clean_up: bool = True, allow_splitting: bool = True, separate_bodies: bool = True, clone_body: bool = True, generate_primitive_history: bool = False, interior_points_on_arc: int = 5, length_threshold_percentage: int = 25, create_group_for_new_objects: bool = False) bool#
Simplify command to converts complex objects into simpler primitives which are easy to mesh and solve.
- Parameters:
- assignment
str List of object names to simplify.
- simplify_type
str,optional Simplify type. The default is
"Polygon Fit". Options are"Bounding Box","Polygon Fit", and ``”Primitive Fit”`.- extrusion_axis
str,optional Extrusion axis. The default is
"Auto". Options are"Auto","X","Y", and"Z".- clean_upbool,
optional Whether to clean up. The default is
True.- allow_splittingbool,
optional Whether to allow splitting. The default is
True.- separate_bodiesbool,
optional Whether to separate bodies. The default is
True.- clone_bodybool,
optional Whether to clone the body. The default is
True.- generate_primitive_historybool,
optional Whether to generate primitive history. The default is
False. IfTrue, the history for the selected objects is purged. ```- interior_points_on_arc
float,optional Number points on curve. The default is
5.- length_threshold_percentage
float,optional Length threshold percentage. The default is
25.- create_group_for_new_objectsbool,
optional Create group for new objects. The default is
False.
- assignment
- Returns:
- bool
Truewhen successful,Falsewhen failed.