Model.createpointsbetweenpoints#
- Model.createpointsbetweenpoints(point_entity1, point_entity2, count)#
Creates a specified number of points between points.
- Parameters:
point_entity1 (Entity) – The object describing the first point entity.
point_entity2 (Entity) – The object describing the second point entity.
count (int) – The number of points to create.
Example#
Create one point between points with IDs 1 and 2#import hm import hm.entities as ent model = hm.Model() model.createpoint(x=0, y=0, z=0, system=None) model.createpoint(x=10, y=0, z=0, system=None) point_entity1 = ent.Point(model, 1) point_entity2 = ent.Point(model, 2) model.pointmodify(point_entity=point_entity2, x=5, y=0, z=0) model.createpointsbetweenpoints(point_entity1=point_entity1, point_entity2=point_entity2, count=1)