Model.accepteditedsurface_with_user_tolerance#

Model.accepteditedsurface_with_user_tolerance(auto_stitch, tolerance)#

Moves surfaces from the midsurface to edit component into the middle surface component and stitches surfaces according to a specified tolerance.

Parameters:
  • auto_stitch (int) –

    An option that permits auto-stiching operation of surfaces. Valid values are:

    \(=\) 0 - Auto-stitch is disabled.

    \(\ne\) 0 - Auto-stitch combines surfaces using the specified tolerance.

  • tolerance (double) –

    Surfaces within this decimal-value tolerance are stitched together if auto_stitch is enabled.

    If auto_stitch is enabled but tolerance is less than zero, then the result is stitched with a tolerance of 1/5 the midsurface thickness.

Example#

Move midsurfaces from midsurface to edit into middle surface with a stitch tolerance equal to ¼ of the midsurface thickness#
import hm
import hm.entities as ent

model = hm.Model()

model.accepteditedsurface_with_user_tolerance(auto_stitch=1, tolerance=0.25)