Model.verticescombine#

Model.verticescombine(retained_point, collection)#

Given one surface fixed point to retain, and one or more additional fixed points, combines all of the points into the first point. Some surface edges or entire surfaces may be deleted in the process.

Parameters:
  • retained_point (Entity) – The object describing the point to keep.

  • collection (Collection) – The collection containing the point entities to be combined into the retained_point.

Example#

Combine the points with IDs 7 , 8 , and 9 into the point with ID 21#
import hm
import hm.entities as ent

model = hm.Model()

# The collection that contains the points to be combined
point_collection = hm.Collection(model, ent.Point, [7, 8, 9])

model.verticescombine(retained_point=ent.Point(model, 21), collection=point_collection)