Model.shapevarcreate_xproduct#
- Model.shapevarcreate_xproduct(basenode, shape_variable_a, shape_variable_b, magnitude)#
Creates a shape variable (vector) by using the cross product of two other shape variables.
- Parameters:
basenode (Entity) – The object describing the entity node where the base of the result is located after it is created.
shape_variable_a (Entity) – The object describing the first entity variable in the cross product.
shape_variable_b (Entity) – The object describing the second entity variable in the cross product.
magnitude (double) – Magnitude of resulting vector.
Example#
Create a shape variable of magnitude 3.0 at node with ID 106 using the cross-product of vectors with IDs 1, 2#import hm import hm.entities as ent model = hm.Model() basenode_entity = ent.Node(model, 106) vector_a = ent.Vector(model, 1) vector_b = ent.Vector(model, 2) model.shapevarcreate_xproduct( basenode=basenode_entity, shape_variable_a=vector_a, shape_variable_b=vector_b, magnitude=3.0, )