115 Commits

Author SHA1 Message Date
Remco Burema
503a24f7a1 Make magic value into funtion (max face-id).
part of CURA-6745
2019-09-03 15:08:41 +02:00
Remco Burema
b97015a354 Added 'align selected face with buildplate' feature.
Alt-click to select a face. See the (identically named) 'feature_bottom_face' branch in Uranium for more indepth information.
2019-09-02 00:17:14 +02:00
Lipu Fei
905889214a Fix typing 2019-04-23 10:31:13 +02:00
Lipu Fei
4423fc82b0 Fix typing 2019-04-23 09:39:46 +02:00
Jaime van Kessel
50ad4e4d4e Speed up the rendering of the solid view by caching support_angle property 2019-04-19 14:55:28 +02:00
Jaime van Kessel
d53bac6eb8 Simplify the expensive call to the validation state
Since the support angle needs to be between 0 and 90, we don't have to rely on the (expensive)
validator. We can just check that ourselves.
2019-02-19 15:42:51 +01:00
Lipu Fei
620790ae3d Reduce the creations of ExtrudersModels
CURA-6015
2018-12-13 14:12:23 +01:00
Diego Prado Gesto
43657010ba CURA-5164 The Preferences is not a singleton class anymore since in some point
several instances need to be created.

- In the ThreeMFWorkspaceReader we need to create some temporal
instances of Preferences that makes it not singleton anymore.

- The current preferences are kept in the Application class and so all
the calls to the preferences are changed to get the preferences from
Application.

- The method getInstance in Preferences is kept as deprecated since some
external plugins.
2018-05-11 08:50:42 +02:00
Ghostkeeper
7d806e7ae9
Fix rendering before the extruder number decoration is set
If a render is triggered before this decorator is set it would crash. The rest of the code is robust against this being None, but here it would give a TypeError.
2018-04-11 11:59:54 +02:00
Jack Ha
bd775cf32e CURA-4400 fix support_extruder_nr values in overhang angle and SliceInfo 2018-03-19 10:56:40 +01:00
Jack Ha
095d9fbdf6 CURA-4400 Bugfix do not handle layer scene nodes in solidview 2018-03-06 17:01:30 +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
fieldOfView
8bd6afad1f Render support meshes with a vertical stripe...
...so they are easier to tell apart from normal meshes, especially for single extrusion printers
2018-01-05 18:33:05 +01:00
Lipu Fei
107f6aff78 Fix SolidView to use isNonPrintingMesh decorator call
CURA-4705
2017-12-20 16:48:57 +01:00
ChrisTerBeke
0668f80792
Merge pull request #2758 from fieldOfView/feature_mesh_types
Improved mesh type UX (Per Model Settings)
2017-11-29 13:24:38 +01:00
Diego Prado Gesto
49537b64f7 CURA-4482 Fix error in SolidView when the support angle stack doesn't
exist. This error was sent twice through the CrashHandler and it is in Metabase.
2017-11-28 09:39:57 +01:00
ChrisTerBeke
657a91c525 Merge pull request #2685 from Ultimaker/container_stack_improvements
Container stack improvements
2017-11-20 17:42:26 +01:00
fieldOfView
c7f190bb26 Remove (ancient) commented out code 2017-11-18 11:30:17 +01:00
fieldOfView
1924946b59 Merge branch 'master' into feature_mesh_types
# Conflicts:
#	plugins/SolidView/SolidView.py
2017-11-18 11:28:15 +01:00
fieldOfView
e00ac591bf Use material color for cutting_mesh and infill_mesh 2017-11-10 12:24:32 +01:00
fieldOfView
69b707cbfe Fix coloring support_mesh with the color of the support_extruder 2017-11-09 22:02:20 +01:00
fieldOfView
3251e5915b Show the support material for support_mesh 2017-11-09 16:06:27 +01:00
fieldOfView
8f8bdc059a Render non-printing objects as semi transparent objects in Solid View 2017-11-09 12:55:03 +01:00
ChrisTerBeke
52782b8d13 Always use the extruder stacks to determine model color in solid view - CURA-4482 2017-10-31 16:08:59 +01:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
Tim Kuipers
cfe1dd4fb6 fix: group selection box uses proper rendermode now (CURA-3846)
Renderer.RenderMode doesn't exist any more.
This should have been fixed way back when RenderBatch was introduced
2017-06-21 15:05:49 +02:00
Simon Edwards
eb43806d7a Merge branch 'master' into python_type_hinting 2017-01-27 15:37:30 +01:00
fieldOfView
8d7bde02f3 Fix unslicable ("striped") model rendering and add overhang color theming 2017-01-26 11:09:09 +01:00
fieldOfView
b0ea72834f Remove unused import
Remnant from another, less tidy, approach
2017-01-24 11:47:02 +01:00
fieldOfView
45c8083423 Use themeable colors in Solid, Xray & Layer view 2017-01-23 22:08:27 +01:00
Simon Edwards
fb70eb6813 Merge branch 'master' into python_type_hinting 2017-01-17 08:42:55 +01:00
Jaime van Kessel
0bdd06735e Fixed another race condition that sometimes triggered when loading projects
CURA-1263
2016-12-14 11:52:02 +01:00
Simon Edwards
98a6568313 Merge branch 'master' into python_type_hinting 2016-11-22 11:15:04 +01:00
Simon Edwards
14afd9eab7 Heaps to changes to get the Cura code through the type checker (with minimal checking).
CURA-2917
2016-11-21 21:36:08 +01:00
Jaime van Kessel
89c78fa2da Increased difference between display color for active/inactive extruder
CURA-2025
2016-09-22 11:41:52 +02:00
fieldOfView
cd483882eb Shade objects printed with the non-active extruder in solid view
Aid in learnability of CURA-2025 by fixing CURA-2117
2016-09-22 07:44:59 +02:00
fieldOfView
4de78db87a Revert "Remove "infill mesh" as a standard visible setting"
This reverts commit 46942d7cf23e32dcdf5dbf00440aa781061f4f65.

It was not my decision to make
2016-09-08 14:04:58 +02:00
fieldOfView
7a6124f221 Get the overhang angle from the proper multiextrusion stack
CURA-2289
2016-09-06 14:58:29 +02:00
fieldOfView
d610a30ccb Fix overhang display if the overhang angle is set to its default value 2016-09-02 13:17:31 +02:00
fieldOfView
c95cc7a21b Fix error in SolidView when there is a model but no printer 2016-08-11 16:44:19 +02:00
fieldOfView
a0203905b6 Show the right material color for single-extrusion machines
CURA-1992
2016-08-10 14:08:58 +02:00
fieldOfView
f817d30abc Change colour to color for consistency 2016-08-09 09:56:23 +02:00
fieldOfView
ea3e2225ed Don't pass support_angle to shader unless it is valid
CURA-2058
2016-08-05 15:23:47 +02:00
fieldOfView
74d21a9053 Only draw boundingbox wireframe on selected groups
CURA-1492
2016-07-29 19:15:05 +02:00
fieldOfView
1182a3c87e Fix render color for single-extrusion printers
CURA-1992
2016-07-29 17:36:07 +02:00
fieldOfView
85f53be9e2 Tone down striped shader colors 2016-07-25 21:59:37 +02:00
fieldOfView
6cc6e79e65 Stripe objects that are outside the build volume
This way they can not be confused with objects that are rendered with a (future) grey materialcolor.
2016-07-22 14:24:52 +02:00
Arjen Hiemstra
6f3fa19890 Fix up plugins that use ExtruderManager
Since it has been moved to cura.Settings
2016-07-04 13:16:04 +02:00
Jaime van Kessel
0e098e38eb More fixes for changed setting object location 2016-07-04 13:10:29 +02:00
fieldOfView
a6bb0c804a Fix minor codereview issues
CURA-333
2016-06-22 17:19:14 +02:00