18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-02 17:46:48 +01:00
Commit Graph

3 Commits

Author SHA1 Message Date
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