protected Shape3D() { PerspectiveCamera camera = new PerspectiveCamera { Position = CameraPosition }; camera.SetLookAtPosition(CameraLookAtPosition); viewport = new Viewport3D { Camera = camera }; light = new ModelVisual3D { Content = new DirectionalLight(LightColor, LightDirection) }; viewport.Children.Add(light); RebuildModel(); Content = viewport; }