Model.surfacemarkclipwithline#

Model.surfacemarkclipwithline(collection, line, tolerance)#

Splits a group of surfaces with a line by projecting that line perpendicularly onto the surfaces.

Parameters:
  • collection (Collection) – The collection containing the surface entities to be splitted.

  • line (Entity) – The entity line used to split the surfaces.

  • tolerance (double) – The tolerance value to be used when projecting the line onto the surfaces.

Example#

Split the surfaces with IDs 171 and 172 use the line with ID 26#
import hm
import hm.entities as ent

model = hm.Model()

surf_col = hm.Collection(model, ent.Surface, [171, 172])

line = ent.Line(model, 26)

model.surfacemarkclipwithline(collection=surf_col, line=line, tolerance=0.1)