Model.surfacemarkclipwithlines#

Model.surfacemarkclipwithlines(surf_collection, line_collection, tolerance)#

Splits a group of surfaces with lines by projecting those lines perpendicularly onto the surfaces.

Parameters:
  • surf_collection (Collection) – The collection containing the surface entities.

  • line_collection (Collection) – The collection containing the line entities. The lines are temporarily combined into a single line, and therefore must be contiguous.

  • tolerance (double) – The maximum distance the line may deviate from the surfaces and still be projected.

Example#

Project the lines with IDs 4 , 5 and 6 onto the surfaces with IDs 171 , 172 with a tolerance of 1.0 units#
import hm
import hm.entities as ent

model = hm.Model()

model.surfacemarkclipwithlines(
    surf_collection=hm.Collection(model, ent.Surface, [171, 172]),
    line_collection=hm.Collection(model, ent.Line, [4, 5, 6]),
    tolerance=1.0,
)