Commit Graph

58 Commits

Author SHA1 Message Date
2adcef8dbe Replaced "Simple shorthands for smart pointers" shptr, uqptr, wkptr
with their original names. Using weird shorthands makes the code
unreadable for anyone but the original author.

template<class T> using shptr = std::shared_ptr<T>;
template<class T> using uqptr = std::unique_ptr<T>;
template<class T> using wkptr = std::weak_ptr<T>;
2021-10-04 16:56:26 +02:00
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
01451d2e63 Removed the PRUS format parser. WIP: admesh eradication:
stl_stats are newly only accessed by TriangleMesh::stats(),
most of the direct access to TriangleMesh::stl is gone with the exception
of parsing input files (3MF, AMF, obj).
2021-09-14 11:58:14 +02:00
69ffe12fd2 Renamed create_face_neighbors_index() to its_face_edge_ids().
Renamed its_create_neighbors_index() / its_create_neighbors_index_par() to its_face_neighbors() / its_face_neighbors_par().
New variant of its_face_edge_ids() to create edge IDs from face neighbors.
Fixed some incorrect use of _NDEBUG, it should be NDEBUG.
PrintObject::slice_support_volumes() returns newly Polygons, which are cheaper than ExPolygons.
Updated SeamPlacer and SupportMaterial to use regions defined as Polygons, not ExPolygons.
TriangleSelector::get_facets_strict() returning a patch with T-joints retriangulated.
New slice_mesh_slabs() - slicing projections of a triangle patch into top / bottom layers of slices, for MMU top / bottom segmentation.
TriangleMeshSlicer - use 64 mutexes instead of one when scattering sliced triangles into layers. This makes a big difference on modern many core desktop computers.
When applying MM segmented regions to input regions, the split regions are now re-merged with 10x higher positive offset epsilon to avoid creating gaps.
When testing for existence of paint-on supports or seam, use a more efficient has_facets() test, which does not deserialize into the expensive TriangleSelector tree structure.
GLIndexedVertexArray newly uses Eigen::AlignedBox<float, 3> for efficiency instead of our double based BoundingBoxf3.
Improved MMU painting refresh speed by optimizing generation of the vertex buffers.
Refactored MMU segmentation - projection of painted surfaces from top / bottom.
	1) Parallelized.
	2) Using the new slice_mesh_slabs() instead of projecting one triangle by the other and merging them with Clipper.
2021-06-20 15:21:12 +02:00
41c7ff4692 Add parallel version of neighbors index creation, make it default 2021-06-08 10:34:32 +02:00
5aac71c9a3 Improve its_split for large number of parts 2021-06-08 10:34:32 +02:00
04331beb33 Add new (winner) neighbor index based on measurements 2021-06-08 10:34:32 +02:00
c89ef2ee6b Add triangle mesh split to perf comparison 2021-06-08 10:34:32 +02:00
2227d0f1ad Added measuring sandbox for neighbors index creation 2021-06-08 10:34:32 +02:00
eccab6a6d9 Don't use sla::EncodedRaster in SLAImport, revive opencsg sandbox 2020-08-27 23:14:42 +02:00
ed226ec04c AABB: Some further polishing and a reference to an SSE implementation
of the 3D Box vs. ray intersection implementation.
2020-05-22 11:35:49 +02:00
f6652403fe WIP: AABBTreeIndirect - optimized ray_box_intersect_invdir() test,
sandbox for comparing the AABBTreeIndirect with libigl::AABB
2020-05-22 09:29:21 +02:00
88be689482 Handle CGAL exceptions and add tests for mesh boolean operations
Add conversion to exact predicates exact construction kernel format for consecutive booleans (experiments)
2020-02-05 17:40:05 +01:00
1e9eea2cae fix gui artifacts on Windows 2020-01-16 15:38:59 +01:00
588d707805 Fix build issues on Windows 2020-01-16 14:25:01 +01:00
39b4cb2a50 MeshBooleans with CGAL only 2020-01-16 14:31:31 +01:00
0ef0a6042c Fix algorithm switching 2020-01-15 12:54:30 +01:00
6188cde964 Remove completely redundant code 2020-01-15 12:45:01 +01:00
b6f2364430 Fix scene not being centered 2020-01-15 10:39:07 +01:00
f1fb2d26af further fixes for X window crashes. 2020-01-09 11:22:24 +01:00
d0ae8e15b7 repaint causes crash on linux 2020-01-08 09:39:48 +01:00
8aa7fd7db1 Fix linux assertion 2019-12-20 20:18:23 +01:00
e0ae2f4c85 fix windows widgets while playback 2019-12-20 19:57:34 +01:00
40588fb122 Display switching 2019-12-20 18:30:24 +01:00
00f490ca64 Add boilerplate for shader based csg 2019-12-20 12:25:44 +01:00
bcdc6e5d94 Fix closing while playback 2019-12-20 01:21:25 +01:00
2ee9c3328b Add some comments. 2019-12-19 16:10:34 +01:00
4a82e645ab Save and load window size. Add fps average output. 2019-12-19 15:26:04 +01:00
e4eef4adeb Add command line options. Rename GLScene to Engine 2019-12-19 14:51:38 +01:00
827bc08046 Make it work with mesa sw renderer 2019-12-19 01:55:46 +01:00
7775b2df9a Recording and playback works 2019-12-18 16:24:41 +01:00
2f10a37655 Separate fps counter and remove glut dependency 2019-12-18 12:00:28 +01:00
cb1e371878 Dont use glut for fps measure. 2019-12-17 18:39:01 +01:00
eb956c7ac2 Fix opencsg example on Win32 2019-12-17 16:28:38 +01:00
5fade53269 further simplification 2019-12-17 10:19:46 +01:00
b9e8ada04b Add ctl and fix applying opencsg params on the fly. 2019-12-16 18:49:44 +01:00
eb06cade4d Fix event dispatching to handlers 2019-12-16 15:55:49 +01:00
9789a150df Remove bloat, add some clipping plane functionality. 2019-12-16 15:36:43 +01:00
9436ff9e17 Add convexity to csgsettings. Defer all rendering to Display. 2019-12-16 14:04:26 +01:00
c520c09029 Added opencsg parameter console 2019-12-16 12:36:44 +01:00
fa4a87cd9b Add opencsg demo sandbox 2019-12-16 11:13:20 +01:00
11feb259a3 Merge branch 'master' into lm_tm_hollowing 2019-12-12 11:37:33 +01:00
89023ef06f Add dll copy after targets for gmp and mpfr 2019-12-10 17:42:25 +01:00
7ed9ac9304 Fix CGAL import with shared boost 2019-12-10 15:10:39 +01:00
8169db37e2 Add the sandbox example for cgal dependent mesh boolean 2019-12-09 15:34:48 +01:00
5aab1e83ca Simple openvdb conversion test. 2019-10-29 16:27:53 +01:00
6fb9f06c66 Fix openvdb dependency in libslic3r 2019-10-25 15:48:01 +02:00
29024d2b69 Add OpenVDB to dependencies
* Add Linux openvdb integration
* Add Mac openvdb integration and enable in ALL
* Create openvdb sandbox to test integration.
* Additional fixes in the patches
* Remove slabasebed sandbox as it has no relevance now
* Provide FindOpenVDB module and fix build issues
2019-10-25 13:15:21 +02:00
20b86bbe8f Reworked pad creation algorithm with new parameters:
* brim size
* force pad around object everywhere
2019-10-01 14:58:37 +02:00
a02a929b17 more clang warnings enabled, performance measuring
Succesfull build on mingw-w64


fix sandboxes


Mingw fixes and full parallel support tree gen.
2019-08-16 16:17:37 +02:00