algorithmic modeling for Rhino
Hello All,
Im trying to write a C# script to create a variety of transformations based on inputs. Im running into an issue when it comes to the output of the parameter. If I have each individual transformation output seperately, then use the native Grasshopper Compound component, it works great! but then I try and combine all the transformations in the C# component, and it creates a wacky transformation...
the only difference Is I am adding a few lines at the end of the script such as...
Transform finalTrans = Transform.Multiply(Trans_1, Trans_2);
finalTrans = Transform.Multiply(finalTrans, Trans_3);
finalTrans = Transform.Multiply(finalTrans, Trans_4);
OutputTrans = finalTrans;
Am I missunderstanding how to do this?
Tags:
The multiplication order matters. the transformation you want to apply FIRST is the SECOND argument.
ie. if you want to first move, then rotate, then scale, you need:
Transform move = ...;
Transform rotate = ...;
Transform scale = ...;
Transform compound = scale * rotate * move;
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2025 Created by Scott Davidson.
Powered by