Model.addtransformation#
- Model.addtransformation(collection1, collection2)#
Adds transformations to positions.
- Parameters:
collection1 (Collection) – The collection containing the position entities to which the transformations in collection2 must be added to.
collection2 (Collection) – The collection containing the transformation entities to be added.
Example#
Add all the transformations to all the positions#import hm import hm.entities as ent model = hm.Model() model.addtransformation( collection1=hm.Collection(model, ent.Position), collection2=hm.Collection(model, ent.Transformation), )