Commit Graph

196 Commits

Author SHA1 Message Date
bubnikv
16cbfc8803 Fixed update of the SLA back end object properties, leading to
the "disable supports" and "disable pad" flags being ignored
after the project was loaded.
2019-05-23 15:43:16 +02:00
Lukas Matena
b8fe1fabf3 Fixed unit tests when run with range checks on std::vector
There was a bug in unit tests that led to generating the wipe tower with non-normalized preset.
This caused out-of-bounds access into max_layer_height vector in fill_wipe_tower_partitions.
The problem surfaced in https://github.com/prusa3d/PrusaSlicer/issues/2288.
I quickly patched additional normalization of the preset to prevent this from happening.

Also, an assert in the same function turned out to trip on one of the tests.
This one was commented out for now and will (hopefully) be looked into later.

Function Print::apply_config was renamed to apply_config_perl_tests_only so everyone
sees its current purpose and does not mistake it for the more important Print::apply.
2019-05-22 16:48:20 +02:00
bubnikv
4b6383a512 Changed the G-code export and send to OctoPrint GUI code
to store the G-code next to the project file if it exists,
and to process the project name with the PlaceholderParser.
2019-05-17 16:27:00 +02:00
bubnikv
2a1db8175a Fixed localization of the "Machine Limits" parameters.
Fixed localization of some other parameters (templating is not supported
inside the PrintConfig.cpp as these strings are translated not inside
PrintConfig.cpp, but by the calling GUI code).
Fixed localization of SLA status bar.
2019-05-09 14:15:56 +02:00
tamasmeszaros
bcc587264c removing some commented out garbage 2019-05-07 09:56:53 +02:00
tamasmeszaros
d1fbc88baf Fix for possible clash with old correction vectors in config 2019-04-29 17:07:55 +02:00
tamasmeszaros
c1eb754d0a Remove back offset from the print statistic calculation. 2019-04-29 16:42:22 +02:00
tamasmeszaros
df5f4b629f Fixing large memory reservation in the SLA model slicing step. 2019-04-26 11:33:33 +02:00
tamasmeszaros
9052e27358 Further optimizations for SLA memory usage. 2019-04-25 18:48:31 +02:00
bubnikv
9607bed907 Memory optimization of SLA export,
logging of memory consumption during SLA slicing (just on Windows as of now).
2019-04-25 18:03:17 +02:00
bubnikv
3e52e6f4a7 Added comments to the gettext dictionaries generated by the xgettext tool.
The prefix to be searched for in the source code comments is TRN
2019-04-18 10:13:56 +02:00
tamasmeszaros
499ba56882 Fix for incomplete validation condition on the allowable elevation. 2019-04-17 10:08:54 +02:00
Lukas Matena
13ee8c3bd5 TriangleMeshSlicer is now initialized by const-pointer to the mesh, responsibility for calling require_shared_vertices is left to the caller 2019-04-16 09:04:04 +02:00
tamasmeszaros
e4ec57cf60 Removing separate X and Y relative correction. 2019-04-09 18:15:25 +02:00
tamasmeszaros
fbba886be9 Adding absolute correction (XY offset) and gamma correction parameters. 2019-04-09 13:42:32 +02:00
bubnikv
e2d6ce9bc5 Finished SLA print / material correction visualization. 2019-04-08 18:09:31 +02:00
bubnikv
f53a865fab Merge remote-tracking branch 'remotes/origin/master' into tm_relative_correction 2019-04-08 14:00:27 +02:00
bubnikv
9ab83d31bc Fixed rotation of SLA instances in case a rotation in X or Y was applied
to the instances.
2019-04-08 13:35:03 +02:00
tamasmeszaros
a16c709010 Remove unnecessary reversals of print polygons.
second take...
2019-04-05 17:04:55 +02:00
tamasmeszaros
e2c326279f fix for hole disappearance 2019-04-05 16:24:23 +02:00
bubnikv
e8ff3dd0d0 SLA: Invalidate all PrintObjects if the scaling correction changes.
Fixes a bug, where the sla_transofmation() function works with
the new scaling values for both old and new ModelObjects, therefore
no reslicing is triggered.
(untested)
2019-04-05 11:56:11 +02:00
tamasmeszaros
b4ab3025e3 Added method for relative correction retrieval. 2019-04-04 10:52:14 +02:00
tamasmeszaros
9f1be18be2 Suggestion for Z offset correction 2019-04-03 18:23:29 +02:00
tamasmeszaros
e3171322d3 Scaling correction parameters in material and print conf.
Scaling is applied in sla_trafo but no effect unless set before model import.
2019-04-03 17:34:46 +02:00
tamasmeszaros
b48aee3415 Remove unnecessary reversals of print polygons. 2019-04-03 10:29:27 +02:00
bubnikv
c86433271e Fixed update of the SLAPrint back end after mirroring in a specific
case of mirroring around the X axis.
Fixed some asserts on visual studio due to access to empty std::vector
2019-04-02 18:04:23 +02:00
tamasmeszaros
88f6aaf692 Add mirror correction to rasterized polygons. 2019-04-02 17:48:50 +02:00
bubnikv
6881112f3b Merge branch 'master' of https://github.com/prusa3d/Slic3r 2019-04-02 13:54:46 +02:00
bubnikv
99f0207578 Handling of left hand oriented coordinate systems:
is_left_handed() method on transformations and volumes
rendering of GLVolumes in left handed coordinate systems by glFrontFace(GL_CW);
SLA slicing on left hand oriented instances by flipping the mesh for SLAPrintObject in X.
rendering of the SLA cutting plane in left handed systems
resetting the SLA clipping planes on 3D preview invalidation
2019-04-02 13:47:49 +02:00
tamasmeszaros
0afd7e43d2 More accurate status proportions for SLA steps. 2019-04-02 11:19:52 +02:00
tamasmeszaros
becf41f962 Rethought sla status indication. 2019-04-02 10:54:14 +02:00
tamasmeszaros
2312a1f851 Fix for broken SLA status indication. 2019-04-01 16:10:15 +02:00
tamasmeszaros
493bdfe5c4 Fixing the broken rasterizer.
Paths and holes cannot be added separately.
2019-04-01 12:15:47 +02:00
tamasmeszaros
e58f974cf4 Parallel loop for the statistics 2019-04-01 11:37:26 +02:00
tamasmeszaros
e2334782e7 fix for statistics 2019-03-29 17:20:19 +01:00
tamasmeszaros
ab26a95c65 It seems that stats are not broken after all. 2019-03-29 13:34:22 +01:00
tamasmeszaros
0d3f453af0 Output raster seem ok, stats broken. 2019-03-27 18:37:50 +01:00
tamasmeszaros
8ebcbc8ef1 Merging new steps integration 2019-03-27 11:05:51 +01:00
tamasmeszaros
6c5fb6430d Integrating new step, removing old and unused steps. 2019-03-27 10:59:29 +01:00
tamasmeszaros
7c20c21255 Reusing unified polygons from statistics 2019-03-26 18:51:27 +01:00
tamasmeszaros
d12f4724f3 Adding new step for statistics 2019-03-26 18:04:04 +01:00
tamasmeszaros
a7f2e63271 Merge branch 'tm_slice_index_lyrh' 2019-03-26 17:47:27 +01:00
tamasmeszaros
2e9905c1e8 Add check for missing support points if supports are enabled. 2019-03-26 17:28:51 +01:00
tamasmeszaros
fccf1692d8 Fixing broken statistics. 2019-03-26 16:45:04 +01:00
tamasmeszaros
9a4a0caa01 Reverting manual unification. It does not help performance. 2019-03-26 16:06:24 +01:00
tamasmeszaros
502212cb3b Optimizing manual unification. 2019-03-26 15:05:57 +01:00
tamasmeszaros
af086efab8 Manual unification of print polygons.
With clipper not with the agg rasterizer, because they can be reused for the statistics.
2019-03-26 14:06:40 +01:00
tamasmeszaros
0841e799e8 Fix for missing support polygons 2019-03-26 11:30:55 +01:00
tamasmeszaros
d2c0d2641c Further refactor and simplification of slice index and print data. 2019-03-26 10:57:45 +01:00
tamasmeszaros
811c781852 Refactoring and commenting slice index solution. 2019-03-25 19:02:05 +01:00