18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 21:07:06 +01:00
Commit Graph

4 Commits

Author SHA1 Message Date
maj00r 75ce03b95a feat(editor): the parallel tool beside a line of the model lays a line of the model, its arcs concentric
Continues E4b (editor-tracks-domain.md §8, "Odsuń tor równoległy"): with the editing on the model on, the parallel tool beside a track of
a line of the model lays a new line of the model at the spacing, one create_line, checked by the norms.

- editor/layout/layoutParallel: the line alongside a line, pure: the legs of the tangents offset, the vertices where the offset legs
  meet, the arcs concentric with the line's, the radius less on the inside of a curve and more on the outside, the transitions recomputed
  from the shift of the arc so the centre stays the line's; the cant and the class of the line, its grade breaks at the same share of
  the length. In a curve the spacing is widened by the widening of the gauge of both tracks on the sides facing each other (PLK tom II
  annex 1, gauge::curve_widening, under R 250 m), where the transitions of the curve can take it; where they can't, told so. The norms
  of the track geometry have no spacing of their own yet.
- The tool tells the line laid, the spacing in each curve widened, what the norms warn of; refused, why, nothing changed.

Self-test: expect modelspacing <line> <other> <m> <low> <high>. The case m_13_parallel (a line laid on the inside of the curve of a line
of the model, 4.5 m on the straight and in the arc, one step).

Tests: U: the line alongside a straight and alongside three curves on both sides, laid, the arcs concentric within 2 mm; alongside a
curve of R 200 m the spacing widened by the gauges, the transitions longer on the inside and shorter on the outside; not widened where a
curve has no transitions, told why.

lang/editor_pl.po: the Polish of the new texts.
2026-11-23 18:49:10 +01:00
maj00r 8b1720f873 feat(editor): curves added to a line of the model and taken out, a line laid on from its free end sharing the node there
Continues E4b (editor-tracks-domain.md §4, §8): two edits E4a left.

- The route design of a line of the model adds a curve at a distance from its start (insert_vertex: a vertex on the leg of the tangents
  there, no curve until it's dragged off the line, then of the radius of the lay tool) and takes the curve of a vertex out
  (remove_vertex), a command each, the design read again from the model; a handle dragged told above them.
- The lay tool laying from the free end of a line of the model, or to one, makes the new line go on from the node of that end, shared,
  not a free node of its own beside it: create_line given the node (layout::create_line::start_node, end_node: a free end of a line of
  its own, the line leaving it along its heading or against it as its first leg does), its leg there put onto the tangent of the node, so
  the line goes on with no kink. Its tracks and the other line's end at the numbers of the node, to the bit, also after a save and a
  reopen.

Self-test: modelvertexadd <m>, modelvertexdel <index>; expect modelvertices <line> <count>, expect modelnodes <count>. The cases
m_10_grade_curves (a curve added, bent, taken out, a step each) and m_12_lay_from_end (a line laid on from a free end shares its node, the
ends to the bit after a reopen).

Tests: U: a line laid on from the free end of another one and back from its start share the nodes, a node of two ends no free end, a kink
refused, undone the node free again.

lang/editor_pl.po: the Polish of the new texts.
2026-11-23 18:49:01 +01:00
maj00r b3a2f1fef2 feat(editor): the vertices of a line of the model dragged on the map, the line as the model would lay it shown before they're let go
Continues E4b (editor-tracks-domain.md §0 pkt 2, §8 "Przesuń wierzchołek", "Zmień R / L / D wierzchołka"): the route design opened on a
line of the model has its handles on the map, a vertex and the grip of the radius of each curve.

- While a handle is dragged the change is tried on a copy of the network as it goes: the line as the model would lay it drawn over the
  map, green, or red where it's refused, and by the mouse and in the panel why it's refused or what the norms say of it ("The norms:
  2 notes"). Let go, it's one command of the model: move_vertex for a vertex moved, set_vertex for a radius dragged; a vertex moved and
  its curve changed at once one set_vertex with its place (layout::set_vertex::point), one step. The first and the last vertex of a
  line of two or more go along the tangents of its ends, as the route design drags them.
- No gizmo on the tracks of a line of the model, nor the points of their paths dragged by hand: the line is edited through the route
  design. The gizmo stays for the old tracks and the models.

Self-test: modelplan opens the route design in the field of the tracks; expect modelvertexat <line> <index> <x> <z> <tolerance>, expect
modelpreview <shown|none>. The case m_11_vertex_drag (the vertex dragged with the mouse, the preview told while it's held, one step).

Tests: U: a vertex moved and its curve changed by one set_vertex, one step, taken back.

lang/editor_pl.po: the Polish of the new texts.
2026-11-23 18:48:19 +01:00
maj00r 6e8383df6f feat(editor): the grade line of a line of the model drawn in the profile tool, its command
Continues E4b (editor-tracks-domain.md §8, "Zmień załom lub Rv niwelety"): with the editing on the model on, the profile tool opened on a
track of a line of the model is the profile of the whole line, its points the breaks of the grade line as the model has them with their
vertical radii, the heights of the ends its nodes'.

- Applied, the points between the ends are set_grades of the line (chainages along it, the route run along it or against it), a break
  with no radius given the one the line needs; the model is the judge of it, before the checks of the profile tool: refused, nothing
  changes and the profile tells why in red; kept, one step, the tracks made anew, the profile read again from the model, what the norms
  warn of under it. The heights of the ends aren't changed here: a line of the model keeps the heights of its nodes.

Self-test: modelgrade <track> <m> <height> <vertical radius> (a break put into the grade line of the profile opened on the line, applied),
expect modelgrades <line> <count>. The case m_10_grade_curves (a break 1 m up taken back and brought again; one too near the end to be
rounded refused, nothing changed).

lang/editor_pl.po: the Polish of the new text.
2026-11-23 18:48:19 +01:00