Lukáš Hejl
46ade54937
Backported a fix from Clipper 6.4.2 for the issue that Clipper Z coordinated has incorrect value because ZFillFunction wasn't called in all cases ( https://sourceforge.net/p/polyclipping/bugs/160/ ). Also, this issue led to duplicity vertices with the same XY coordinates but differ in Z coordinates.
2022-06-09 09:22:40 +02:00
tamasmeszaros
4f8535d0d5
Move out invalid_id constant from MutablePriotityQueue template class
...
Enclose it into Slic3r namespace
2022-06-07 16:05:16 +02:00
tamasmeszaros
d9ed45be56
Apply remarks from code review with additional cosmethics
2022-06-03 10:08:11 +02:00
tamasmeszaros
f9fb7f947d
Revamped A* algorithm
...
with extended test suite
2022-06-02 17:44:51 +02:00
Lukáš Hejl
df552a9226
Fixed an undefined symbol when mold linker was used for linking slic3rutils_tests.
2022-06-02 13:47:51 +02:00
tamasmeszaros
9892893587
Add UIThreadWorker for debugging and profiling purposes
2022-05-27 15:33:03 +02:00
Vojtech Bubnik
f5ec76c230
Follow-up to dc3931ec1f
:
...
Fix mutable priority queue being wiped when moving out of function
Without move constructor, the clean() gets called when returning an instance from a function.
The above fix was applied also to MutableSkipHeapPriorityQueue.
Follow-up to 15a082b80b
:
Fixed TEST_CASE("Mutable priority queue - first pop", "[MutableSkipHeapPriorityQueue]")
2022-05-16 17:27:10 +02:00
Vojtech Bubnik
15a082b80b
Fix of libslic3r "Mutable priority queue - first pop" test failure #8276
...
Improved readability by introducing invalid_id() getter.
Made the ResetIndexWhenRemoved flag active in both debug and release mode,
it used to be made active by Vojtech for release mode only for unknown
reason.
2022-05-16 11:34:26 +02:00
tamasmeszaros
de84fbf23d
Remove junk output to stdout from various tests
2022-05-16 10:28:43 +02:00
PavelMikus
d0c08ec5c1
Feature: AABB tree for lines
...
Small refactoring of AABB tree distance query function, to allow different primitives (apart from triangles)
Implemented Distancer and functions to create AABB tree from lines and use closest point query
Added test for the AABBTree with lines
Added Benchmark comparing EdgeGrid with AABBTree on line contours (Inside AABBTree test file, disabled under compilation flag)
2022-05-12 12:55:10 +02:00
tamasmeszaros
6b23e90424
Add astar algorithm
...
Fix windows build
2022-05-11 12:06:07 +02:00
tamasmeszaros
fed317f27b
Change std::nan("") to proper nan constants
2022-05-11 10:35:12 +02:00
tamasmeszaros
12a54251c9
Extend kdtree with k-nearest and bounding box queries
...
Also add test to verify it
2022-05-11 10:35:01 +02:00
Filip Sykala
effad3a6f8
fix initialization type
2022-05-09 17:02:55 +02:00
Vojtech Bubnik
e687db9eb0
Ported custom_gcode and print unit tests from Perl to C++.
2022-05-06 18:30:18 +02:00
Filip Sykala
6ab517187f
Fix mismatch of data types.
...
Separate checks.
2022-05-06 13:37:35 +02:00
Vojtech Bubnik
d4b8d4d0f3
Further Perl unit test porting to C++ and Perl interface reduction:
...
Ported cooling, gap fill, thin walls and polyline unit tests.
2022-05-05 17:57:57 +02:00
Vojtech Bubnik
576c167bd5
Ported "avoid crossing perimeters" and bridging unit tests from Perl
...
to C++.
Further reduced Perl bindings.
Got rid of the ExPolygonCollection wrapper, replaced with ExPolygons.
2022-05-04 18:21:08 +02:00
Vojtech Bubnik
a627614b58
Perl unit tests for perimeters and multi-material were rewritten to C++.
...
Perl binding was slimmed down, namely Clipper is no more linked by Perl.
2022-05-04 15:06:04 +02:00
Vojtech Bubnik
33b2478b69
Ported Infill unit tests from Perl to C++.
2022-05-02 14:34:50 +02:00
Vojtech Bubnik
3687bc28d5
Some reduction of Perl dependencies on ClipperLib,
...
ported some ClipperLib polyline clipping tests to C++.
2022-05-02 14:34:50 +02:00
tamasmeszaros
4148d7332e
Prohibit multiple formats with the same extension (zip)
...
Archive format can be specified as a hint when a reader is created.
2022-04-26 14:43:28 +02:00
tamasmeszaros
784105f5ad
Extend sla archive tests with read-back
2022-04-26 10:57:49 +02:00
tamasmeszaros
5ecf29f303
Separate existing sla archive import code
2022-04-26 09:38:03 +02:00
Vojtech Bubnik
42e802c1b8
Refactoring of Curves.hpp for better memory management and vectorization
...
(replaced vector of vectors with Eigen 2D matrices).
2022-04-25 12:42:51 +02:00
Vojtech Bubnik
7d02647ebf
Removed various Point::ccw() and Point::ccw_angle() methods, they were
...
provided for Perl bindings and their semantic was confusing.
Implemented free function angle() to measure angle between two vectors.
Reworked Polygon::convex/concave_points(), changed the meaning of their
angle threshold parameter.
Removed some unused methods from Perl bindings and tests.
Reworked the "wipe inside at the external perimeter" function
after Point::ccw_angle() was removed.
2022-04-25 12:42:51 +02:00
PavelMikus
5c23d471de
BSplines, Polynomial fitting
2022-04-25 12:42:51 +02:00
PavelMikus
bbcd6be250
Implemented piecewise data (curve) fitting with variable kernels
2022-04-25 12:42:51 +02:00
Vojtech Bubnik
926ae04718
Follow-up to 408e56f039
...
Fixing compilation of tests on latest GCC/boost
2022-04-25 11:32:09 +02:00
Lukáš Hejl
97a5aa9592
Added a new test case for a missing Voronoi vertex.
2022-03-24 11:30:32 +01:00
Lukas Matena
e058f794d9
Merge branch 'stable'
2022-02-24 13:05:05 +01:00
tamasmeszaros
4f2772fef4
Fix sla archive tests
2022-02-18 14:30:13 +01:00
tamasmeszaros
b8718f4601
Silence sla print messages for archive export tests
2022-02-17 14:05:45 +01:00
tamasmeszaros
66f60de556
SLAArchive framework refactor
2022-02-17 12:50:40 +01:00
Lukáš Hejl
9b9f93ca07
Make unit test 'fff_print_tests' to pass when a memory leak is detected.
...
This is just for fixing builds from the stable branch, the master branch doesn't need it.
2022-02-09 13:43:51 +01:00
tamasmeszaros
7a092467a8
Disable overly detailed test outputs
2022-02-03 17:12:53 +01:00
tamasmeszaros
72da90d28f
WIP
...
wip
2022-02-03 16:10:03 +01:00
enricoturri1966
8d94841fa3
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into dev
2022-01-29 09:17:30 +01:00
Vojtech Bubnik
ba84240a85
Fixed unit-tests of GCodeFindReplace
...
Follow-up to 7da4bebe7a
WIP GCode substitutions: Changed the format of gcode_substitutions by
adding an empty comment as a fourth parameter to each substitution.
In the future, we will provide a UI to show / edit the comment.
2022-01-28 11:02:06 +01:00
enricoturri1966
703aefa75c
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into dev
2022-01-27 12:04:47 +01:00
Vojtech Bubnik
7ba5a2f5bc
GCodeFindReplace - single line option unit tests.
2022-01-25 16:54:16 +01:00
tamasmeszaros
960158b79f
Fix failing test for new ui jobs
2022-01-18 10:54:37 +01:00
YuSanka
fec654513e
Merge remote-tracking branch 'origin/master' into dev
2022-01-18 08:41:10 +01:00
Vojtech Bubnik
aa62868ccb
WIP G-code find & replace: Unit tests and some bug fixes.
2022-01-17 12:29:47 +01:00
enricoturri1966
c07a848257
Follow-up of 6201dad245
- Fixed test_color.cpp
2022-01-14 08:26:13 +01:00
enricoturri1966
a2dc1cd446
Fixed conflicts after merge with dev branch
2022-01-12 15:54:48 +01:00
tamasmeszaros
43f5e61b5f
Add possibility to wait for current job to stop.
2022-01-11 11:26:26 +01:00
tamasmeszaros
e367ef8011
Fix job tests on Win, don't use usleep()
2022-01-11 11:26:26 +01:00
tamasmeszaros
7e070d393e
Fix issue with non atomic transition to running state
...
After popping a job from input queue
2022-01-11 11:26:26 +01:00
tamasmeszaros
7352e1a01a
Basic tests for BoostThreadWorker
...
Separate job tests
2022-01-11 11:26:26 +01:00