saumya.jain
cfec5e0cc1
Proof of concept for simulation
...
Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>
CURA-7647
2023-12-19 10:12:56 +01:00
saumya.jain
457cecba59
using numpy for array calculation
...
CURA-7647
2023-11-08 13:29:47 +05:30
saumya.jain
6301926885
Calculating time of travel for each line segment
...
CURA-7647
2023-11-07 18:08:08 +05:30
Jaime van Kessel
094d176c45
Fix LayerPolygon
2022-09-07 15:32:51 +02:00
Jaime van Kessel
a8f0e330ad
Fix logspam in layerpolygon
2022-09-07 09:55:19 +02:00
Jaime van Kessel
0fcbcf6a5f
Fix crash on layer polygon
2022-09-07 09:52:57 +02:00
Jaime van Kessel
48c6eb076c
Merge pull request #12959 from digitalfrost/050822
...
LayerPolygon.py: Refactor check for unknown line types
2022-09-06 15:06:13 +02:00
digitalfrost
e9172b10af
Use f-string and warn method with Logger
...
Use f-string and warn method for Logger instead of "Old Style" string formatting.
Co-authored-by: Jelle Spijker <spijker.jelle@gmail.com>
2022-08-23 20:01:47 +02:00
digitalfrost
1c3479c9fc
Refactor check for unknown line types
...
Using .where() clarifies the intent.
2022-08-05 11:08:20 +02:00
digitalfrost
9ac7eb4da7
Use enumerate to iterate over self._types
...
This is more pythonic.
The comparaison in the if block below the for loop now becomes clearer.
2022-08-05 10:37:02 +02:00
digitalfrost
1bf330df66
Improve layout of comment
...
Modify the layout of the comment to improve readability.
Now each sentence starts on a new line.
2022-07-23 23:19:20 +02:00
digitalfrost
9221c3e21e
Improve layout of comment
...
Modify the layout of the comment to improve readability.
Now each sentence starts on a new line.
Add a punctuation mark (comma) to improve clarity.
2022-07-23 23:11:06 +02:00
digitalfrost
bce60a7d96
Fix typo
...
Correct typo (duplicated word)
2022-07-23 23:02:00 +02:00
digitalfrost
776c71e5c9
Shorten excessively long lines
...
- Some lines in the files were excessively long, even in the context of the Cura project which seems to prefer a long line length.
These lines could not be read easily even on github ....
- Removed some unnecessary whitespaces
- Added some extra spaces so that inline comments are separated by at least two spaces from the statement
2022-07-23 22:35:18 +02:00
Ghostkeeper
41ebd593c5
Revert "Merge branch 'bremco-graphics_buffer_update'"
...
This reverts commit 5e60cc6208c16d966505e7a97d9bbbb0644d2716, reversing
changes made to c9feace0fbe02beb2089ec0af7be35127d7420f7.
2021-12-08 12:02:49 +01:00
Remco Burema
4f20dc4c5d
Add documentation.
2021-11-07 22:26:34 +01:00
Remco Burema
acde6ae489
Apply suggestions from code review
...
Co-authored-by: Ghostkeeper <Ghostkeeper@users.noreply.github.com>
2021-10-31 21:21:24 +01:00
Remco Burema
a987b9972a
Merge branch 'master' into bremco-graphics_buffer_update
2021-09-16 22:27:52 +02:00
luz paz
d68f375e38
Fix various typos
...
Found via `codespell -q 3 -S *.po,*.pot -L childs,initialy,lod,ned,te,slicable,sur,tutoriels,wont`
2021-09-07 11:33:54 -04:00
Remco Burema
e119c46944
Fetch count from simple property instead of recalculation.
...
Polygons don't change when in layer-view. There's already an analogous elementCount property anyway, so a vertexCount property can't do much harm. Just keep in mind that when the polygons are altered, it should be either done via build, or the lineMeshXXXCount methods should be used instead.
2021-08-09 13:15:44 +02:00
Remco Burema
458fbd35f1
Merge branch 'master' into graphics_buffer_update
2021-07-25 22:30:39 +02:00
Remco Burema
96ca3b1417
Handle render-range in shader.
...
Instead of re-uploading the mesh each time the range changes, handle the range in the shaders with the new draw-range parameters. This does however, mean the range has to be in vertices, not in elements. This necessitates some changes to the simulation-view, and some added bits deeper in the base code. Mainly, since each time the type of a line changes, there is an extra vertex, there needs to be a type-change count available to get from 'paths' to range indices.
2021-07-25 22:26:59 +02:00
Jaime van Kessel
3432720f7c
Fix mypy issues caused by numpy upgrade
2021-04-07 11:47:52 +02:00
Nino van Hooff
89f0970a88
Remove trailing whitespace from Python files
2020-05-29 14:30:33 +02:00
Jelle Spijker
679739d09d
Applied requested changes proposed by @ninovanhooff
...
Fixed a couple of missed double quotes, trailing and leading spaces, to long comment lines
2020-04-27 20:09:00 +02:00
Jelle Spijker
6aedab78dc
Converted comments in dir Cura/cura to rst style
...
Converted doxygen style comments to reStructuredText style in the files found in Cura/cura directory using the script dox_2_rst.py (provided in the Uranium repo). Comments were manually checked and changed if needed.
2020-04-21 16:58:45 +02:00
Jaime van Kessel
2a28321588
Fix some more typing
...
For some reaso the server is giving me different reuslts...
2020-01-10 18:03:20 +01:00
Jaime van Kessel
e74f049142
Fix bunch of issues found by pylint
2020-01-10 16:37:46 +01:00
Jaime van Kessel
bb52ba6848
Codestyle fixes
2020-01-10 15:32:53 +01:00
Jaime van Kessel
81b33b8649
Add some missing typing
2020-01-10 14:58:53 +01:00
Jaime van Kessel
b8f76d7bfb
Use QtApplication instead of Application
...
In live code it doesn't cause problems, but the static checker found it
2019-11-08 14:13:19 +01:00
Mark Burton
0aae887166
Add entry for prime tower type to _isInfillOrSkinTypeMap.
2019-08-01 20:34:39 +01:00
Ghostkeeper
f334fa8578
Spelling of log entries and code style
2019-07-18 11:49:18 +02:00
Diego Prado Gesto
11e86512cb
Include the prime tower to the time calculations
...
Contributes to CURA-6509.
2019-05-06 14:33:24 +02:00
Jaime van Kessel
76cfb19dfb
Removed unused function & added more typing
2019-01-25 13:52:41 +01:00
Jaime van Kessel
ffce9bd172
Ensure that the primetower gets drawn in the right color again
...
CURA-5932
2019-01-04 14:59:26 +01:00
Ghostkeeper
aa03fabc57
Remove trailing whitespace
2018-08-24 15:24:00 +02:00
Diego Prado Gesto
aa9f9d5b88
Add line thickness and feedrate to the data sent from the backend
2017-11-10 16:59:06 +01:00
Mark
9a193ad5c5
Changing AGPLv3 to LGPLv3
2017-09-28 13:00:43 +02:00
Ghostkeeper
f719be2484
Be robust against faulty data from the engine
...
We modify the line types that we get from the engine so that it's always within range.
This was a bug I found during development of CURA-3903.
2017-06-02 11:35:11 +02:00
Jack Ha
78de5412a2
Merge branch 'master' into layer_view3_cleanup
2017-02-15 10:57:24 +01:00
Jack Ha
47ab49795f
Added comments, changed small layout and id thing. CURA-3273
2017-02-08 11:48:00 +01:00
Jack Ha
50ba236e66
Removed unused option in LayerPolygon, added comments
2017-02-08 11:24:41 +01:00
Simon Edwards
4715afdad6
Fixed one new class variable. Updated the script to run mypy.
2017-02-01 14:53:22 +01:00
Jack Ha
3a2438937d
Removed crappy legend
2017-01-25 12:46:07 +01:00
Jack Ha
a52cb2fa63
Compatibility mode scale line type colors
2017-01-25 09:48:36 +01:00
Jack Ha
5fff1f6657
Cleanup
2017-01-25 09:27:22 +01:00
Jack Ha
6625938a2b
Cleanup __color_map in LayerPolygon
2017-01-25 09:24:40 +01:00
fieldOfView
f0333e2184
Fix typo
2017-01-24 23:18:46 +01:00
fieldOfView
5e121e4039
Use themeable colors for layerdata
2017-01-23 22:11:38 +01:00