I want translate a list of breps objects when the user move a determinate element.
I handle the event when the element is moved, and I propagate the new object’s position for translate my breps to the same position.
The translation works fine the first time, but after the translations is wrong.
- Element is in 0,0,0
- The user move the element to 1000, 0,0. All Ok
- The user move the element to 1000, 1000, 0. KO. The Breps is moved to 2000, 1000, 0 not at 1000, 1000,0
The code for the translation is
Plugin.PuleCantos.ListaBrepContorno.ForEach(c => c.Translate(e.PosicionActual.X, e.PosicionActual.Y, e.PosicionActual.Z));
Where PosicionActual is the lower left corner of the element
I’m working with RhinoCommon and c#