361 Commits

Author SHA1 Message Date
Ian Paschal
220c99cf3b
Merge pull request #3613 from maximkulkin/avoid-printed-supports
Add travel_avoid_supports setting support
2018-05-24 15:36:40 +02:00
Jack Ha
a3ac20172b CURA-5370 The minimum offset between objects in the Arranger is now determined by the brim/skirt/... setting 2018-05-23 12:54:18 +02:00
Jack Ha
f5bed242ed CURA-5370 Small refactor for Arranger: make x and y consistent (numpy arrays start with y first in general), faster, cleanup, more unit tests, take actual build plate size in Arranger instances 2018-05-22 17:13:35 +02:00
Maxim Kulkin
9cb3960690 Add travel_avoid_supports setting support 2018-05-14 23:43:05 -07:00
Lipu Fei
051dd7a6e9 WIP: Make application initialization and start up more clear
- Create SingleInstance class to handling single instance stuff.
 - Instead of calling getInstance() everywhere, initialize each object
   explicitly in order when application starts and getInstance()s do not
   create instances any more and they merely return the created
   instances.
 - Only set initial values in construtor functions __init__(). Move the
   initialization of context-aware (i.e. things that depend on other
   things) to separate functions.
 - Split application creation and initialziation into several steps and
   them should be called explicitly in the correct order.
2018-05-04 09:57:02 +02:00
Ruben D
91faf884fe
Enable backface culling for origin mesh
It won't matter a whole lot for those 36 triangles in the origin mesh. It reduces the number of triangles to render by 18. But you know, the little bits help.
2018-05-02 09:21:51 +02:00
Ian Paschal
9dc50ec73f CURA-4400 Apply correct shader to grouped nodes 2018-03-20 16:54:34 +01:00
Jack Ha
e3dd7a449d CURA-5090 speedups by using qtimers on updating mostly visual elements 2018-03-14 16:09:59 +01:00
Aleksei S
09d01f2207 Fix: Group models were not slicable
CURA-5082
2018-03-13 13:51:19 +01:00
Jack Ha
bad637eb14 CURA-4400 fixed merge conflicts 2018-03-05 16:47:40 +01:00
Lipu Fei
a29a6122f1 Merge remote-tracking branch 'origin/master' into refactoring_machine_manager 2018-03-05 11:29:21 +01:00
Ghostkeeper
396ea274c4
Invert Y direction of nozzle offsets
If there is a Y offset it should now move the disallowed areas in the correct direction

The initial placement of the disallowed borders was already correct.

Fixes #1977.
2018-03-05 09:24:21 +01:00
Jack Ha
657a52a5e7 CURA-4400 add checking for enabled extruder in setting _outside_buildarea, cleaned up a bit and factored some functions out BuildVolume 2018-03-01 11:54:31 +01:00
Jack Ha
b2ca8565c9 CURA-4606 fix startup crash 2018-02-20 13:02:39 +01:00
Diego Prado Gesto
488d310643 CURA-4320 Add the new setting to the tower's settings list so the
buildvolume reacts to its changes.
2018-02-12 15:03:03 +01:00
Diego Prado Gesto
c6328968db CURA-4320 Add circular prime tower setting and draw shadow according to
it.
2018-02-12 14:56:26 +01:00
Lipu Fei
ffa4df6a06 Merge 3.2 into master 2018-02-07 13:20:24 +01:00
Ghostkeeper
1ab7eb64a1
Create message before connecting to stack changed signal
Because if the stack changed signal gets fired while the __init__ function is still running then you get a critical error.
2018-02-06 16:50:03 +01:00
Jack Ha
b0d0b75662 Merge branch '3.2' 2018-01-23 14:25:11 +01:00
Lipu Fei
d3e85e6370 Revert "Do boundary checks on nodes for which the boundary check is unknown"
This reverts commit 27e441ecd9642530b5b8f8fe949cff152d54dcba.
2018-01-23 12:38:59 +01:00
Ghostkeeper
f5e40c2281
Merge branch '3.2'
Contributes to issue CURA-4797.
2018-01-23 11:27:17 +01:00
Ghostkeeper
27e441ecd9
Do boundary checks on nodes for which the boundary check is unknown
Just before deciding whether to drop down the node on the build plate.

Contributes to issue CURA-4797.
2018-01-23 11:22:24 +01:00
Jack Ha
8a53549bce CURA-4033 split update bounds for a single node in buildvolume and also call it from readMeshFinished 2018-01-17 17:01:03 +01:00
ChrisTerBeke
a52889a601 Update 3D viewer build volume when relevant machine settings are changed - CURA-4659 2017-12-01 16:29:42 +01:00
Lipu Fei
cd37f91a0a Remove unnecessary code in BuildVolume
CURA-4482
2017-11-17 11:02:41 +01:00
ChrisTerBeke
f36c9ffbc0 Create extruder stack for single extrusion machines when adding new machine - CURA-4482 2017-10-31 09:49:24 +01:00
ChrisTerBeke
b91824aab1 Move towards making extruder manager a first class citizen - CURA-4482 2017-10-26 17:54:36 +02:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
alekseisasin
98ab571483 Removed 14bitVoid code accord to a new LGPL license
CURA-4232
2017-09-14 18:03:31 +02:00
alekseisasin
204019702d Added Title for messages
CURA-4203
2017-09-13 13:58:08 +02:00
fieldOfView
4c9028b3d0 Remove z-fighting kludge
This was actually introducing z-fighting artefacts with the new shader and no added geometry.
2017-09-12 15:06:06 +02:00
fieldOfView
ec6fa19d4e Updated copyright date 2017-09-11 23:49:16 +02:00
fieldOfView
6658e1a9ae Draw grid lines using shader 2017-09-11 23:41:10 +02:00
fieldOfView
a4aa134f25 Revert "Merge branch 'feature_grid_lines'"
This reverts commit a0b7a2d165d4f973c69bf5fc7314726f19eeeb65, reversing
changes made to db640c6f3d7b32b4c387268e8ebeb0d4de1b461a.

# Conflicts:
#	cura/BuildVolume.py
2017-09-11 22:43:55 +02:00
Mark
0a5744b74b Tweaked the update setting
CURA-4301
2017-09-11 11:21:31 +02:00
alekseisasin
c614f02d0f Fixed settings update. After each change in the settings the build volume was rebuilding
CURA-4271
2017-09-06 16:58:17 +02:00
Jaime van Kessel
904682945a Decreased the value of the u_z_bias, so the plate quad is drawn again.
CURA-4150
2017-08-23 12:48:19 +02:00
Ghostkeeper
18b88065f4
Render build plate slightly lower than grid to prevent Z fighting
Looks much better.

Contributes to issue CURA-4150.
2017-08-22 16:40:11 +02:00
Ghostkeeper
25c5c5a888
Add minor grid cells for circular build plates
Same technique as the major grid cells.

Contributes to issue CURA-4150.
2017-08-21 10:24:53 +02:00
Ghostkeeper
3b93a9d309
Add grid lines for circular build plates
Some trigonometry is involved to find the correct lengths for the lines.

Contributes to issue CURA-4150.
2017-08-21 10:21:25 +02:00
Ghostkeeper
d8dd9c0d3a
More efficient and elegant grid line creation
Since the zero point is always in the centre, we can just re-use this loop to prevent code duplication and gain a minor speed increase.

Contributes to issue CURA-4150.
2017-08-21 09:44:39 +02:00
Ghostkeeper
e7c5854694
Make grid size into global variables
It doesn't need to be a preference, but it should be easy to modify in the code.

Contributes to issue CURA-4150.
2017-08-21 09:24:31 +02:00
Ghostkeeper
585b6ad8eb
Remove superfluous grid shader
The grid shader is now exactly equal to the colour shader, so let's just use the colour shader.

Contributes to issue CURA-4150.
2017-08-17 15:25:27 +02:00
Ghostkeeper
bb3f8d085b
Fix transparency of minor grid cells
You need to turn it on manually, apparently.

Contributes to issue CURA-4150.
2017-08-17 10:35:00 +02:00
Ghostkeeper
38e907b3ae
Add minor grid lines
Makes it feel very professional and technical.

Contributes to issue CURA-4150.
2017-08-17 10:32:47 +02:00
Ghostkeeper
6da5dda44f
Initialise _grid_color in __init__
All fields should always be defined throughout the lifetime of every object, according to code style.

Contributes to issue CURA-4150.
2017-08-17 10:21:48 +02:00
Ghostkeeper
5e63c0df48
Add major grid cells
This draws a grid of 1x1cm.

Contributes to issue CURA-4150.
2017-08-17 09:56:11 +02:00
Ghostkeeper
484740f2ff
Remove grid pattern
It'll be replaced by grid lines instead of grid surfaces.

Contributes to issue CURA-4150.
2017-08-16 13:26:17 +02:00
Lipu Fei
3e870d2e40 Always update raft thickness and extra z clearance before rebuilding the build volume
CURA-4154
2017-08-11 12:27:45 +02:00
Ghostkeeper
a75387ff3e
Only use Z-hop setting for the used extruders
Otherwise the unused extruders still influence the build volume.
2017-08-08 11:40:19 +02:00