Cura/plugins/SimulationView
Ghostkeeper fd6dbd3ede
Draw simulation view lines with a constant colour for the entire line
All of our current layer view colour schemes are properties of a line, not of a vertex. The line has a single feedrate, a single line type, a single layer thickness, a single material colour and a single width. This is even limited by the g-code specification itself, which is unable to represent lines with varying line width. However, we store this information in the vertices, the vertex data being the only data sent to layer view since layer view is sent as polylines to the shader.

This change makes the entire line take on the colour scheme of the vertex where its representative data is stored. This data is intended for the line, not just for that vertex, so it makes sense that the entire line listens to the data of the correct vertex, not just the nearest vertex of the line's endpoint.
2021-04-03 15:40:14 +02:00
..
resources Make UI changes in the Simulation View for adapting the color gradient 2017-11-26 21:21:18 +01:00
__init__.py No longer create two instances of the setting view. 2018-11-05 11:48:19 +01:00
layers.shader Format spacing 2020-05-07 14:10:45 +02:00
layers3d.shader Draw simulation view lines with a constant colour for the entire line 2021-04-03 15:40:14 +02:00
layers3d_shadow.shader Layerview can now deal with visibility extruder nrs. 4+ 2020-05-06 18:03:32 +02:00
layers_shadow.shader Layerview can now deal with visibility extruder nrs. 4+ 2020-05-06 18:03:32 +02:00
LayerSlider.qml Cleanup: remove warnings for non-existing margins 2019-11-12 14:51:48 +01:00
NozzleNode.py Remove a bunch of unused imports 2019-11-08 13:38:42 +01:00
PathSlider.qml Update simulation slider handle position after width change 2019-10-28 09:59:30 +01:00
plugin.json Up the SDK version to 7.4.0 2020-10-22 11:29:25 +02:00
SimulationPass.py Fix layer view being greyed out after reslicing gives same current layer 2021-03-06 15:48:32 +01:00
SimulationSliderLabel.qml Refactor: simplify SimulationSliderLabel font metrics 2019-11-12 14:56:56 +01:00
SimulationView.py Add colour scheme for line width 2021-02-19 10:10:16 +01:00
simulationview_composite.shader GLES shader fixes 2018-03-29 21:07:51 +02:00
SimulationViewMainComponent.qml Fix QML warnings due to depricated on<signal> calls in Connections 2021-03-30 09:02:48 +02:00
SimulationViewMenuComponent.qml Fix QML warnings due to depricated on<signal> calls in Connections 2021-03-30 09:02:48 +02:00
SimulationViewProxy.py Add colour scheme for line width 2021-02-19 10:10:16 +01:00