colinear_heal

Modeler3DLayout.colinear_heal(selection, tolerance=0.1)[source]

Remove small edges of one or more primitives.

Parameters
selectionstr or list

One or more primitives to heal.

tolerancefloat, optional

Tolerance value. The default is 0.1.

Returns
bool

True when successful, False when failed.

References

>>> oEditor.Heal

Examples

>>> from pyaedt import Hfss3dLayout
>>> h3d=Hfss3dLayout(specified_version="2021.2")
>>> h3d.modeler.layers.add_layer("TOP")
>>> l1=h3d.modeler.primitives.create_line("TOP", [[0,0],[100,0]],  0.5, name="poly_1")
>>> l2=h3d.modeler.primitives.create_line("TOP", [[100,0],[120,-35]],  0.5, name="poly_2")
>>> h3d.modeler.unite([l1,l2])
>>> h3d.modeler.colinear_heal("poly_2", 0.25)
True