public void SetPosition(double[] xyz) { if (_sphereSource.GetCenter()[0] == 0 && _sphereSource.GetCenter()[1] == 0 && _sphereSource.GetCenter()[2] == 0) { VisibilityOn(); } _sphereSource.SetCenter(xyz[0], xyz[1], xyz[2]); _sphereSource.Modified(); if (_textActor != null) { _textActor.SetPosition(xyz[0] + 5, xyz[1] + 5, xyz[2] + 5); } _textActor.SetPosition(xyz[0] + 1, xyz[1] + 1, xyz[2] + 1); if (PositionChanged != null) { PositionChanged(this, new EventArgs()); } }