Commit Graph

67 Commits

Author SHA1 Message Date
Connor Slade
d170554746 Cleanup intersection resolving 2025-02-10 16:53:02 -05:00
Connor Slade
6a8a9ccfda Recompute normals without cloning faces / verts 2025-02-10 11:43:18 -05:00
Connor Slade
5edbc23c2b Add buttons to recompute / flip model normals 2025-02-10 11:11:27 -05:00
Connor Slade
738a22bce5 Elide lifetimes 2025-02-08 13:33:22 -05:00
Connor Slade
903f8b8876 Add lifetime to SliceLayerElement 2024-11-23 18:45:32 -05:00
Connor Slade
3a15f4cbeb Create iter_mut_layers method for post processing plugins 2024-11-22 19:44:50 -05:00
Connor Slade
a0f5ee5303 Abstraction over format 2024-11-02 13:52:05 -04:00
Connor Slade
2637915517 Use imageproc erode 2024-08-30 21:33:37 -04:00
Connor Slade
e44dc465af Cleanup slice preview 2024-08-29 15:12:49 -04:00
Connor Slade
ec141250f9 Upload build artifacts on actions run 2024-08-16 14:37:51 -04:00
Connor Slade
5b7cbcbb92 Cleanup supports config ui 2024-08-08 15:06:18 -04:00
Connor Slade
34cde7c569 Cleanup / fix clippy lints 2024-08-07 20:24:14 -04:00
Connor Slade
2e818d4f4f Mesh builder and line support generation 2024-08-07 19:00:29 -04:00
Connor Slade
3f7a8fe9bf Decent overhang detection 2024-08-07 18:09:27 -04:00
Connor Slade
b3910dc672 Working ray-triangle intersections with barycentric coords 2024-08-07 15:12:12 -04:00
Connor Slade
8b77e99931 Ray-triangle intersection test 2024-08-05 16:35:36 -04:00
Connor Slade
c7c8cf0e2e Cleanup line supports 2024-08-03 22:15:34 -04:00
Connor Slade
1b72a6ea52 Correctly detect overhang faces 2024-08-03 18:35:10 -04:00
Connor Slade
05e119dfc1 Linier support visualisation 2024-07-31 21:09:49 -04:00
Connor Slade
478d99a9d1 Hold shift for more accurate camera moement 2024-07-31 14:56:44 -04:00
Connor Slade
48e0b32da9 Correctly detect overhang points 2024-07-31 11:21:51 -04:00
Connor Slade
1e5b303729 Support generation progress 2024-07-31 01:53:58 -04:00
Connor Slade
7473139106 Start on support generation 2024-07-30 20:28:54 -04:00
Connor Slade
80959dece7 Cleanup 2024-07-26 11:53:55 -04:00
Connor Slade
dd45005c3e Fixed mesh self intersection issue
omg this has been such a long standing issue im actually crying rn
2024-07-26 01:12:45 -04:00
Connor Slade
85d1e9ab7a Load normals from model files
literly how did i not know stl files had normals
2024-07-25 21:34:51 -04:00
Connor Slade
f7bf27ce7d Define all crate versions in workspace toml 2024-07-25 00:27:24 -04:00
Connor Slade
1bb875c972 Revamp model lighting 2024-07-24 15:20:07 -04:00
Connor Slade
0e5043d8a3 Fix logger 2024-07-24 00:09:31 -04:00
Connor Slade
60cb5ff1ff Fix reintroduced issue with incomplete layer run encodings 2024-07-23 01:06:41 -04:00
Connor Slade
35e530beee Random fixes 2024-07-22 17:47:41 -04:00
Connor Slade
070f1eb293 Document slicer crate 2024-07-14 18:04:24 -04:00
Connor Slade
ef0c7c0200 Re-use transformed points for face intersections 2024-07-13 22:51:08 -04:00
Connor Slade
389fee3a4d Remove old bvh
you will be missed
2024-07-13 21:53:10 -04:00
Connor Slade
5bb2a256f5 Split into segments parallel to slicing axis 2024-07-13 21:45:38 -04:00
Connor Slade
60871ce750 Slicing benchmarks 2024-07-10 18:40:50 -04:00
Connor Slade
67acf90a82 Arena allocation for bvh nodes 2024-07-10 11:36:22 -04:00
Connor Slade
8c7860532d Cleanup bvh code 2024-07-10 10:51:41 -04:00
Connor Slade
7f5744aded Actually working BVH 2024-07-10 10:40:53 -04:00
Connor Slade
4a528b16b2 Start on BVH for accelerated slicing 2024-07-09 19:52:28 -04:00
Connor Slade
4bf40c7979 Fix slicing rotated objects
Previously vertices were scaled before being rotated, which caused some problems for some reason.
2024-07-06 20:03:12 -04:00
Connor Slade
145f395ea4 Use reference counted pointers on mesh vertex/index data 2024-07-06 19:01:12 -04:00
Connor Slade
27b581af62 Optimize slicer 2024-07-06 17:46:35 -04:00
Connor Slade
726d65516e Allow slicing multiple models at once 2024-07-05 21:37:47 -04:00
Connor Slade
79a2a34517 Cleanup cargo configs 2024-07-05 21:09:18 -04:00
Connor Slade
0d53e46c36 Image runs iterator
Adds an iterator through the runs in an Image. This is faster than collecting all runs into a vector and looping through that.
2024-07-03 16:27:25 -04:00
Connor Slade
3fae064c63 Make the slicer generic allowing slicing into different formats 2024-07-03 12:59:59 -04:00
Connor Slade
5fdf616fbe Slice into generic image buffer
While it does compile, as all images are stored before being encoded, slicing a 600 layer model would use about 25 gb of memory.
I'll fix that in the next commit.
2024-07-02 19:09:15 -04:00
Connor Slade
bf59ed8f25 Support loading .obj and .mtl files 2024-07-02 10:39:20 -04:00
Connor Slade
5cff6c16d7 Better camera movement
Allows you to orbit a point when dragging with left click and move the point and the camera when dragging with right click. Scroll to change distance from target point.
2024-07-01 19:39:50 -04:00