protected override void CalculateDistanceFromCamera() { Vector3 v3Tmp = this.Worldlocation; v3Tmp.TransformCoordinate(CombinedTransformationMatrix * Device.Transform.World1); Vec3d dvTmp = new Vec3d(null, v3Tmp.X, v3Tmp.Y, v3Tmp.Z); this.m_fDistFromCamera = dvTmp.Distance(this.ParentStructure.BodyEditor.BodyView.CameraPosition); }