Model.featurelinesdetection#

Model.featurelinesdetection(markmask, edgeFeatAngle, minCurv, maxCurv)#

Performs feature line detection using the curvature-based method. This method analyzes surface curvature and edge angles to generate topology lines from a mesh.

Parameters:
  • markmask (Collection) – The collection containing the input element or component entities.

  • edgeFeatAngle (int) – The edge feature angle. Valid value range is 1-180. If set to 180, angle-based feature detection is disabled.

  • minCurv (int) – The minimum curvature filter.

  • maxCurv (int) – The maximum curvature filter.

Example#

Generate features on displayed elements using edge feature angle of 30.0 degrees#
import hm
import hm.entities as ent

model = hm.Model()

displayed_elems = hm.CollectionByDisplayed(model,ent.Element)

model.featurelinesdetection(
    markmask=displayed_elems,
    edgeFeatAngle=30,
    minCurv=0,
    maxCurv=0
)