heal_objects#

Modeler2D.heal_objects(assignment, auto_heal=True, tolerant_stitch=True, simplify_geometry=True, tighten_gaps=True, heal_to_solid=False, stop_after_first_stitch_error=False, max_stitch_tolerance=0.001, explode_and_stitch=True, geometry_simplification_tolerance=1, maximum_generated_radius=1, simplify_type=0, tighten_gaps_width=1e-05, remove_silver_faces=True, remove_small_edges=True, remove_small_faces=True, silver_face_tolerance=1, small_edge_tolerance=1, small_face_area_tolerance=1, bounding_box_scale_factor=0, remove_holes=True, remove_chamfers=True, remove_blends=True, hole_radius_tolerance=1, chamfer_width_tolerance=1, blend_radius_tolerance=1, allowable_surface_area_change=5, allowable_volume_change=5)#

Repair invalid geometry entities for the selected objects within the specified tolerance settings.

Parameters:
assignmentstr

List of object names to analyze.

auto_healbool, optional

Auto heal option. Default value is True.

tolerant_stitchbool, optional

Tolerant stitch for manual healing. The default is True.

simplify_geometrybool, optional

Simplify geometry for manual healing. The default is True.

tighten_gapsbool, optional

Tighten gaps for manual healing. The default is True.

heal_to_solidbool, optional

Heal to solid for manual healing. The default is False.

stop_after_first_stitch_errorbool, optional

Stop after first stitch error for manual healing. The default is False.

max_stitch_tolerancefloat, str, optional

Max stitch tolerance for manual healing. The default is 0.001.

explode_and_stitchbool, optional

Explode and stitch for manual healing. The default is True.

geometry_simplification_tolerancefloat, str, optional

Geometry simplification tolerance for manual healing in mm. The default is 1.

maximum_generated_radiusfloat, str, optional

Maximum generated radius for manual healing in mm. The default is 1.

simplify_typeint, optional

Simplify type for manual healing. The default is 0 which refers to Curves. Other available values are 1 for Surfaces and 2 for Both.

tighten_gaps_widthfloat, str, optional

Tighten gaps width for manual healing in mm. The default is 0.00001.

remove_silver_facesbool, optional

Remove silver faces for manual healing. The default is True.

remove_small_edgesbool, optional

Remove small edges faces for manual healing. The default is True.

remove_small_facesbool, optional

Remove small faces for manual healing. The default is True.

silver_face_tolerancefloat, str, optional

Silver face tolerance for manual healing in mm. The default is 1.

small_edge_tolerancefloat, str, optional

Silver face tolerance for manual healing in mm. The default is 1.

small_face_area_tolerancefloat, str, optional

Silver face tolerance for manual healing in mm^2. The default is 1.

bounding_box_scale_factorint, optional

Bounding box scaling factor for manual healing. The default is 0.

remove_holesbool, optional

Remove holes for manual healing. The default is True.

remove_chamfersbool, optional

Remove chamfers for manual healing. The default is``True``.

remove_blendsbool, optional

Remove blends for manual healing. The default is True.

hole_radius_tolerancefloat, str, optional

Hole radius tolerance for manual healing in mm. The default is 1.

chamfer_width_tolerancefloat, str, optional

Chamfer width tolerance for manual healing in mm. The default is 1.

blend_radius_tolerancefloat, str, optional

Blend radius tolerance for manual healing in mm. The default is 1.

allowable_surface_area_changefloat, str, optional

Allowable surface area for manual healing in mm. The default is 1.

allowable_volume_changefloat, str, optional

Allowable volume change for manual healing in mm. The default is 1.

Returns:
bool

True when successful, False when failed.