Model.translatemark#
- Model.translatemark(collection, vector, distance)#
Translates a selection of entities along a vector.
- Parameters:
collection (Collection) – The collection containing the entities to be translated.
vector (hwTriple) – The hwTriple object defining the vector components used for translation. User can also supply a Python list of three doubles.
distance (double) – The distance to translate.
Example#
Translate node with ID 1 , 5.0 units along the y - axis#import hm import hm.entities as ent model = hm.Model() # Creating collection containing node with ID 1 input_collection = hm.Collection(model, ent.Node, [1]) model.translatemark(collection=input_collection, vector=[0.0, 1.0, 0.0], distance=5.0)