simplify_objects#

Modeler2D.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:
assignmentstr

List of object names to simplify.

simplify_typestr, optional

Simplify type. The default is "Polygon Fit". Options are "Bounding Box", "Polygon Fit", and ``”Primitive Fit”`.

extrusion_axisstr, 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. If True, the history for the selected objects is purged. ```

interior_points_on_arcfloat, optional

Number points on curve. The default is 5.

length_threshold_percentagefloat, optional

Length threshold percentage. The default is 25.

create_group_for_new_objectsbool, optional

Create group for new objects. The default is False.

Returns:
bool

True when successful, False when failed.