public ManualSolverModel(ProblemSpec problem) { Problem = problem; Segments = problem.Segments.Select(s => new SegmentModel(s, GetUsualColor(s))).ToImmutableArray(); SelectedSegmentIndices = ImmutableList <int> .Empty; Shift = -problem.MinXY(); }