/// <summary> /// Add a new dynamic object transformation /// </summary> /// <param name="cot"></param> public void AddDynamicObjectTransform(CyclesObjectTransform cot) { _cqObjectTransform.RemoveAll(x => x.Equals(cot)); _cqObjectTransform.Add(cot); }
/// <summary> /// Add a new dynamic object transformation /// </summary> /// <param name="cot"></param> public void AddDynamicObjectTransform(CyclesObjectTransform cot) { _cqObjectTransform.RemoveAll(x => x.Equals(cot)); _cqObjectTransform.Add(cot); }
/// <summary> /// Handle dynamic object transforms /// </summary> /// <param name="dynamicObjectTransforms">List of DynamicObject transforms</param> protected override void ApplyDynamicObjectTransforms(List<DynamicObjectTransform> dynamicObjectTransforms) { foreach (var dot in dynamicObjectTransforms) { //System.Diagnostics.Debug.WriteLine("DynObXform {0}", dot.MeshInstanceId); var cot = new CyclesObjectTransform(dot.MeshInstanceId, CclXformFromRhinoXform(dot.Transform)); _objectDatabase.AddDynamicObjectTransform(cot); } }