private void UpdateGizmo() { if (null == gizmo) { gizmo = new TranslationGizmo(pointOnCurve, tangent, 6); } else { gizmo.UpdateGeometry(pointOnCurve, tangent, null, null, 6); } }
private void UpdateGizmo() { if (null == gizmo) { gizmo = new TranslationGizmo(this, tangent, gizmoScale); } else { gizmo.UpdateGeometry(tangent, null, null, gizmoScale); } }
/// <summary> /// Creates a new Gizmo or Updates existing Gizmo with new axes and origin. /// This method is called every time Gizmo's are requested. /// </summary> private void UpdateGizmo() { var axes = new Vector[] { null, null, null }; //Extract axis information from the axis node pairs. int index = 0; foreach (var item in indexedAxisNodePairs) { axes[index++] = item.Value.Item1; } if (null == gizmo) { gizmo = new TranslationGizmo(this, axes[0], axes[1], axes[2], gizmoScale); } else { gizmo.UpdateGeometry(axes[0], axes[1], axes[2], gizmoScale); } }