This website requires JavaScript.
Issues
Task board
Repositories
Sign In
eu07
/
maszyna
Watch
17
Star
0
Fork
0
You've already forked maszyna
mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced
2026-10-31 23:59:03 +01:00
Code
Issues
156
Wiki
Activity
Files
34bd7c853ef5cddc9319927ad9fd3a97f346710f
maszyna
/
application
/
editormode.h
maj00r
34bd7c853e
fix(editor): no path of a few millimetres laid by the route design, and no camera at no finite place: an arc of a compound curve squeezed to almost nothing in the plan (a share of 0.00002) made pieces of a few millimetres, which the simulation takes for paths of no length (Bad track: zero length spline, it measures a path in steps of 5 cm), laid as tracks with kinks at their joints. alignment::pieces gives such a stretch to the piece next to it, the one between the same joints if there's one, so no piece is shorter than 10 cm, and a piece of no finite length isn't split for ever. A zoom with the wheel aimed at a point which isn't a number doesn't move the camera, and a camera gone to no finite place goes back to where it last was: right after such tracks were laid the graphics driver hung (TDR) and the whole machine froze. A unit test cuts 4000 compound curves of random arcs, transitions and shares into pieces, as the plan lays them over the paths there and all over again, and finds none under 5 cm
2026-10-25 17:26:16 +01:00
133 KiB
Raw
Blame
History
View Raw
Reference in New Issue
View Git Blame
Copy Permalink