예제 #1
0
        protected void createVehicleCylinderModel3D()
        {
            Cylinder cylinder = new Cylinder(_points,
                                             CYLINDER_NUM_OF_SIDES,
                                             CYLINDER_FRONT_RADIUS,
                                             CYLINDER_BACK_RADIUS,
                                             VEHICLE_SENSOR_CYLINDER_LENGTH);
            double degree = 90.0;

            cylinder.RotateZY(_points, ObjectUtils.radians_from_degrees(degree));
            _objectGeometry = cylinder.CreateModel(Colors.AliceBlue, true, true);

            _modelGroup.Children.Add(_objectGeometry);
        }