Model.surfacemarkremovepinholes#

Model.surfacemarkremovepinholes(collection, diameter, coords)#

Removes pinholes.

Parameters:
  • collection (Collection) – The collection containing the surface entities to remove the pinholes.

  • diameter (double) – The upper-limit of the pinhole’s diameter.

  • coords (hwDoubleList) – The list of doubles listing the center coordinates of the pinholes to remove, in the order [x1, y1, z1, x2, y2, z2, x3, y3, z3].

Example#

Remove 3 pinholes from the surface with ID471 , use a radius of 5.0 as a guide#
import hm
import hm.entities as ent

model = hm.Model()

model.surfacemarkremovepinholes(
    collection=hm.Collection(model, ent.Surface, [471]),
    diameter=0.5,
    coords=[1577.74, 500.9, 690.69, 1580.8, 502.6, 683.4, 1583.8, 504.2, 676.207],
)