42 Commits

Author SHA1 Message Date
Saumya Jain
64bb69c48f removing magic number Adding max render distance
CURA-11650
2024-03-08 16:46:58 +01:00
Saumya Jain
c4881641c3 review comments fixing
CURA-11650
2024-03-08 16:44:03 +01:00
Saumya Jain
28997b0b14
Update cura/Snapshot.py
Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>
2024-03-08 16:38:57 +01:00
Saumya Jain
ebe5da7f0e added creating snapshot if not created till 10 attempts
refractored the snapshot.py

CURA-11650
2024-03-08 13:43:43 +01:00
c.lamboo
3472ec26a1 Fix snapshot for makerbot
CURA-11442
2023-12-12 17:19:28 +01:00
c.lamboo
46bed2de56 Add node as an optional argument to isometricSnapshot
By setting this argument a single `SceneNode` can be used as subject for the snapshot. If argument is omitted then the scene root is taken as node.
2023-11-02 17:30:07 +01:00
c.lamboo
f8bb30b025 Use better variable naming
CURA-10561
2023-10-30 16:31:32 +01:00
c.lamboo
7e91750f58 Use camercase for nodeBounds def
CURA-10561
2023-10-30 15:43:02 +01:00
c.lamboo
71ada85966 Use camercase for isometricSnapshot def
CURA-10561
2023-10-30 15:41:54 +01:00
c.lamboo
6c2a468c18 Reuse node_bounds utility function 2023-10-23 11:19:28 +02:00
c.lamboo
5134540751 Remove unused extra argument 2023-10-23 11:19:04 +02:00
c.lamboo
fe4790fe06 Add iso view to snapshot 2023-10-20 23:14:58 +02:00
Jaime van Kessel
50954552d2 Fix thumbnail creation
CURA-9120
2022-04-13 16:53:11 +02:00
Jaime van Kessel
204eeaf272 Add extra warnings if it failed to create snapshot
CURA-9120
2022-04-13 16:47:07 +02:00
Remco Burema
abe7c1bf7f
Search/replace Qt5->Qt6.
part of upgrading Qt to v6.2: CURA-8591
2021-12-28 14:46:02 +01:00
Jaime van Kessel
064a845f71 Ensure that opengl context is available when creating a snapshot
CURA-8723
2021-12-02 15:06:54 +01:00
Remco Burema
a2442919f4
Part of fix for crash on context menu open + click on slice.
See also the backend (Uranium) fix/PR (needed for this to work properly). If the context menu is opened over the slice button, then it _may_ on some cases (on Windows) fail on the creation of the snapshot. Within this fix, the snapshot is then still not created, but at least it doesn't crash any more. (Also the snapshot _will_ be there if a reslice is done.)

part of CURA-8412
2021-07-30 19:50:18 +02:00
Jaime van Kessel
3432720f7c
Fix mypy issues caused by numpy upgrade 2021-04-07 11:47:52 +02:00
Remco Burema
9197a1ca51
Fix crash on open project from term or by file.
Opening a .3mf file or other project would cause a crash if the preference for always opening as a project (as opposed to importing models or 'always ask') was set. Traced back to a typo.

CURA-7987
2021-01-23 12:02:57 +01:00
Remco Burema
e681a6d32d
Fix camera not found on pre-slice snapshot/thumbnail. 2021-01-22 18:07:59 +01: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
3ab0b5decf
Add extra exception handling for UFPwriter 2019-09-24 09:24:36 +02:00
Jaime van Kessel
080cafe78f Increase the looking from offset so model doesn't get cut off
CURA-5965
2019-06-06 10:01:20 +02:00
Jaime van Kessel
7880c8d3f4 Revert "Clean up snapshot code"
This reverts commit 37b904a3c4859e1fb01fa68c59559373152cca3c.
2019-06-06 09:58:15 +02:00
Jaime van Kessel
37b904a3c4 Clean up snapshot code 2019-06-06 09:51:06 +02:00
Lipu Fei
a6fea1bf40 Simplify check
CURA-6545
2019-06-04 07:43:58 +02:00
Jaime van Kessel
07ff08f6bb Ensure that objects outside build volume are not added to thumbnail
CURA-6545
2019-05-29 15:53:23 +02:00
Lipu Fei
196bd3a730 Add non-thumbnail-visible flag for creating previews
CURA-5373

Addition to the non-slicable meshes, the support meshes should also not
be included in the previews.
2018-05-23 16:32:38 +02:00
Aleksei S
36dbc70813 Remove unnecessary code for taking snapshot for UFP file
CURA-5373
2018-05-18 14:01:31 +02:00
Aleksei S
1f149b2821 Do not show not printed models on snapshot for UFP files
CURA-5373
2018-05-18 10:50:54 +02:00
Jaime van Kessel
8dd2243399 Fixed stupid mistake that made all snapshots be taken from the back of model 2018-03-14 11:32:36 +01:00
Jaime van Kessel
40d300f5cc Change default direction of snapshot, so robot looks in the same direction as our beautifull logo; the ultibot 2018-03-13 16:46:02 +01:00
Diego Prado Gesto
487608574a CURA-4931 Avoid creating a snapshot when there is no model in the buildplate. Since the writeStarted signal is catched by all the Writers, the createSnapshot method is triggered, but there is no scenenode in the buildplate to take a picture of, so the process is skipped 2018-02-08 17:02:11 +01:00
Jack Ha
4782659569 CURA-4425 remove resolution optimization, it does not work as expected and leaves a cropped image 2018-02-07 13:48:23 +01:00
Diego Prado Gesto
8541ce25bb CURA-4425 Remove print out messages 2018-02-06 15:43:29 +01:00
Jack Ha
be92bbfcb0 CURA-4425 improve image quality for some models combined with some viewing angles 2018-02-05 15:28:34 +01:00
Jack Ha
0e7edc3eaf CURA-4425 the thumbnail now crops correctly 2018-02-05 14:36:42 +01:00
Jack Ha
7856d61b5a CURA-4425 scale image to full size; still has a bug that it is shifted vertically; still need to clean code 2018-02-01 17:31:43 +01:00
Diego Prado Gesto
c432646908 CURA-4425 Avoid adding the center bounding box. Revert some previous changes. 2018-02-01 16:37:16 +01:00
Diego Prado Gesto
433176d25a CURA-4425 Cleanup and small refactor 2018-02-01 16:18:21 +01:00
Jack Ha
b4eb2e173c CURA-4425 fix multiple objects in snapshot; the AxisAlignedBox is supposed to be read-only 2018-02-01 10:49:02 +01:00
Jack Ha
c42f186812 CURA-4425 first thumbnail in UFP file; updated CuraSceneModel and PreviewPass 2018-01-31 17:08:32 +01:00