private static void SetColor(IEnumerable <WireLine> polyline, IEntity3D entity3D) { foreach (var variable in polyline) { SetColor(variable, entity3D); } }
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; } }
public override void LoadContent(ContentManager contentManager) { _entity = new Entity3D(contentManager.Load <Model>("trash/models/berra")); _camera = new Camera(GraphicsDevice); }