示例#1
0
 private static void SetColor(IEnumerable <WireLine> polyline, IEntity3D entity3D)
 {
     foreach (var variable in polyline)
     {
         SetColor(variable, entity3D);
     }
 }
示例#2
0
        private static void SetColor(WireBase wireBase, IEntity3D entity2D)
        {
            switch (entity2D.PlotStyle)
            {
            default:
            case EnumPlotStyle.Element:
            {
                wireBase.Color     = Colors.Green;
                wireBase.Thickness = 1.5;
            } break;

            case EnumPlotStyle.RapidMove:
            {
                wireBase.Color     = Colors.Coral;
                wireBase.Thickness = 1.2;
            } break;

            case EnumPlotStyle.SelectedElement:
            {
                wireBase.Color     = Colors.Red;
                wireBase.Thickness = 1.8;
            } break;

            case EnumPlotStyle.Path:
            {
                wireBase.Color     = Colors.PowderBlue;
                wireBase.Thickness = .7;
            } break;

            case EnumPlotStyle.Arc:
            {
                wireBase.Color     = Colors.CornflowerBlue;
                wireBase.Thickness = .7;
            } break;

            case EnumPlotStyle.SelectedPath:
            {
                wireBase.Color     = Colors.CornflowerBlue;
                wireBase.Thickness = .7;
            } break;

            case EnumPlotStyle.TrimPath:
            {
                wireBase.Color     = Colors.GreenYellow;
                wireBase.Thickness = 1.2;
            } break;
            }
        }
示例#3
0
 public override void LoadContent(ContentManager contentManager)
 {
     _entity = new Entity3D(contentManager.Load <Model>("trash/models/berra"));
     _camera = new Camera(GraphicsDevice);
 }