Commit Graph

3839 Commits

Author SHA1 Message Date
53a5c23d0f Eradicated admesh from TriangleMesh:
TriangleMesh newly only holds indexed_triangle_set and
TriangleMeshStats. TriangleMeshStats contains an excerpt of stl_stats.
TriangleMeshStats are updated when initializing with indexed_triangle_set.

Admesh triangle mesh fixing is newly only used when loading an STL.
AMF / 3MF / OBJ file formats are already indexed triangle sets, thus
they are no more converted to admesh stl_file format, nor fixed
through admesh repair machinery. When importing AMF / 3MF / OBJ files,
volume is calculated and if negative, all faces are flipped. Also
a bounding box and number of open edges is calculated.

Implemented its_number_of_patches(), its_num_open_edges()
Optimized its_split(), its_is_splittable() using a visitor pattern.

Reworked QHull integration into TriangleMesh:
    1) Face normals were not right.
    2) Indexed triangle set is newly emitted instead of duplicating
       vertices for each face.

Fixed cut_mesh(): Orient the triangulated faces correctly.
2021-09-20 17:12:22 +02:00
8df8ed291f Fix of its_collect_mesh_projection_points_above()
Fix of perl integration tests after introduction of not using the mesh
below the print bed.
2021-05-20 13:58:27 +02:00
23b9a66197 Removing offset2 from Perl bindings and other minor cleanup. 2021-05-06 14:29:20 +02:00
be350a00f0 Reworked the Perl unit / integration tests to use the same Print
interface that the application is using. Old interface used just
for the integration tests was removed.
2019-06-20 20:23:05 +02:00
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
292c5f4e67 Removed the Perl GUI modules. 2019-02-22 10:13:31 +01:00
8237b1bc8b Plater: single object STL export and reloading
Based on Plater.pm`export_object_stl() and reload_from_disk()
2018-12-07 13:58:44 +01:00
f5b56b5716 Plater: increase, decrease, set_number_of_copies, arrange 2018-10-11 12:48:35 +02:00
8946bbdd66 Plater: Add missing skeletons (un-typed for now) 2018-10-09 10:47:42 +02:00
8c50c34cf9 WIP: Plater: Event handling boilerplate / skeletons 2018-10-08 19:56:59 +02:00
77d680944c WIP: Plater, tracking in Plater.pm 2018-10-08 19:14:55 +02:00
3363f62d40 WIP: Plater 2018-10-01 09:28:40 +02:00
892309da9b Test.pm modified to use ModelInstance full 3D transform 2018-09-25 09:21:38 +02:00
4c319150f1 1st installment of ModelInstance 3D scale components 2018-09-24 15:54:09 +02:00
95b87e042b Fixed arrange for objects with 3D rotations 2018-09-24 15:21:18 +02:00
f1454578f4 1st installment of ModelInstance 3D rotation components 2018-09-20 15:00:40 +02:00
bfed018ee6 Code cleanup 2018-09-19 08:59:11 +02:00
42bee0c22a Perl version of preview removed from Slic3r 2018-09-18 16:13:18 +02:00
01850eca9e Method Preview::load_print() ported to c++ 2018-09-18 15:50:52 +02:00
5f7c62d88a 1st installment of preview ported in c++ 2018-09-18 13:35:05 +02:00
51e650f6bf Merged with dev 2018-09-17 15:12:13 +02:00
a70184d5a2 Removed Print.pm,
ported execution of post processing scripts into C++ (WIP, waits for
update of boost::system module on our build server)
Removed other mention of the "Controller".
2018-09-17 12:01:02 +02:00
b635e5a7bf Removed "Slice to SVG" and "Quick Slice" 2018-09-14 11:16:54 +02:00
3863049b2f Finished porting of the status bar to C++. 2018-09-14 10:59:50 +02:00
f22e2a3a5a Removed the Controller, Layer View, System Info, ObjectCutDialog,
removed unused Perl modules.
2018-09-14 10:25:20 +02:00
573607bfb7 WIP: Background processing. 2018-09-14 09:28:00 +02:00
1e53f61691 Removed Strings.hpp, replaced with wxString
Fixed UTF8 rendering of status messages.
2018-09-12 13:17:47 +02:00
eed3887a61 Merged with dev 2018-09-12 11:59:02 +02:00
c78432f355 Added perl callback for gizmo flatten 2018-09-10 14:10:08 +02:00
5979a78502 Merge branch 'master' of https://github.com/prusa3d/Slic3r into dev 2018-09-10 13:19:53 +02:00
30ed7fa36e Fixed #1211 2018-09-10 13:15:12 +02:00
853341cf58 Merge branch 'master' of https://github.com/prusa3d/Slic3r into dev 2018-09-07 10:32:39 +02:00
c7914e2939 Fixed #1204 2018-09-07 09:33:18 +02:00
6421b7eb95 Fixed wipe tower selection 2018-09-07 09:21:12 +02:00
d38157e64e Added select by part tool to toolbar 2018-09-06 16:10:31 +02:00
4433e90ee5 Object's properties updated while manipulating gizmos 2018-09-05 16:22:48 +02:00
fadee48454 Added ModelInstance::world_matrix() method and stl_transform using eigen transform 2018-09-04 14:42:14 +02:00
4600f6c867 Merge remote-tracking branch 'origin/cpp_progress_status_bar' into dev
# Conflicts:
#	lib/Slic3r/GUI/MainFrame.pm
#	xs/src/slic3r/AppController.cpp
#	xs/src/slic3r/AppControllerWx.cpp
#	xs/src/slic3r/GUI/GUI.hpp
2018-08-30 17:35:49 +02:00
46fb4a9d8f working C++ status bar.
Signed-off-by: tamasmeszaros <meszaros.q@gmail.com>
2018-08-30 11:55:10 +02:00
54ad58bff8 Almost working c++ status bar
Signed-off-by: tamasmeszaros <meszaros.q@gmail.com>
2018-08-30 11:54:08 +02:00
f5b1003250 Deleted "scale" column from object list 2018-08-29 13:11:30 +02:00
e798ba7827 Reorganized object settings pane
+ Added new control - PrusaLockButton
2018-08-28 15:51:53 +02:00
4c4989583d fix centroid error for two points and merge with dev. 2018-08-27 16:20:13 +02:00
e7be2e0d57 Fixed undefined axis in rotate method of plater.pm 2018-08-27 14:13:06 +02:00
99262e2d59 Merge branch 'dev' of https://github.com/prusa3d/Slic3r into dev 2018-08-27 14:01:03 +02:00
a3bd7c110f Fixed conflicts after merging with master 2018-08-27 14:00:53 +02:00
33c5ecd6f6 Merge remote-tracking branch 'origin/dev' into sla_base_pool 2018-08-27 09:53:52 +02:00
49c500d708 Merge branch 'master' of https://github.com/prusa3d/Slic3r 2018-08-24 16:58:53 +02:00
87945498bf Bugfix - dialog that changes number of copies deleted the object when cancelled 2018-08-24 16:52:06 +02:00
fddd0f566f Merge branch 'dev' of https://github.com/prusa3d/Slic3r into dev 2018-08-24 16:28:34 +02:00