heal_objects#

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

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.