Model.linesplitatline#

Model.linesplitatline(collection, cut_line)#

Splits a group of lines at a line.

Parameters:
  • collection (Collection) – The collection containing the line entities to be cut.

  • cut_line (Entity) – The line entity to which the selected lines should be cut

Example#

Cut the lines with IDs 14 , 15 , and 16 to line with ID 12#
import hm
import hm.entities as ent

model = hm.Model()

line_col = hm.Collection(model, ent.Line, [14, 15, 16])

line = ent.Line(model, 12)

model.linesplitatline(collection=line_col, cut_line=line)