Model.surfaceimprintpoints#
- Model.surfaceimprintpoints(collection, double_array, max_distance)#
Imprints locations/points, given by coordinates, onto surfaces within a given max distance.
- Parameters:
collection (Collection) – The collection containing the surface entities to imprint.
double_array (hwDoubleList) – The list of doubles that contains the point coordinates to imprint.
max_distance (double) – The maximum imprint distance. If negative, there is no restriction.
Example#
Imprint the surfaces with IDs 5 and 7 with 4 locations#import hm import hm.entities as ent model = hm.Model() model.surfaceimprintpoints( collection=hm.Collection(model, ent.Surface, [5, 7]), double_array=[ 42.41, -35.16, 65.90, 42.49, -30.06, 65.93, 44.49, -32.58, 66.97, 24.41, -28.13, 66.34, ], max_distance=-1.0, )