@@ -26,7 +26,7 @@ The first step is to import the required functions:
2626 from compas_slicer.slicers import PlanarSlicer
2727 from compas_slicer.post_processing import generate_brim
2828 from compas_slicer.post_processing import generate_raft
29- from compas_slicer.post_processing import simplify_paths_rdp
29+ from compas_slicer.post_processing import simplify_paths_rdp_igl
3030 from compas_slicer.post_processing import seams_smooth
3131 from compas_slicer.print_organization import PlanarPrintOrganizer
3232 from compas_slicer.print_organization import set_extruder_toggle
@@ -106,14 +106,14 @@ that are offset from the bottom layer, to improve adhesion to the build plate
106106 raft_layers = 1 )
107107
108108 Depending on the amount of faces that your input mesh has, a very large amount of
109- points can be generated. ``simplify_paths_rdp `` is a function that removes points
109+ points can be generated. ``simplify_paths_rdp `` or `` simplify_paths_rdp_igl `` are functions that remove points
110110that do not have a high impact on the final shape of the polyline. Increase the
111111threshold value to remove more points, decrease it to remove less. For more
112112information on how the algorithm works see: `Ramer–Douglas–Peucker algorithm <https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm >`_
113113
114114.. code-block :: python
115115
116- simplify_paths_rdp (slicer, threshold = 0.6 )
116+ simplify_paths_rdp_igl (slicer, threshold = 0.6 )
117117
118118 Currently the 'seam' between different layers of our shape is a 'hard seam',
119119the printer would move up almost vertically to move to the next layer.
@@ -213,7 +213,7 @@ The completed final script can be found below:
213213 from compas_slicer.slicers import PlanarSlicer
214214 from compas_slicer.post_processing import generate_brim
215215 from compas_slicer.post_processing import generate_raft
216- from compas_slicer.post_processing import simplify_paths_rdp
216+ from compas_slicer.post_processing import simplify_paths_rdp_igl
217217 from compas_slicer.post_processing import seams_smooth
218218 from compas_slicer.print_organization import PlanarPrintOrganizer
219219 from compas_slicer.print_organization import set_extruder_toggle
@@ -277,7 +277,7 @@ The completed final script can be found below:
277277 # Simplify the paths by removing points with a certain threshold
278278 # change the threshold value to remove more or less points
279279 # ==========================================================================
280- simplify_paths_rdp (slicer, threshold = 0.6 )
280+ simplify_paths_rdp_igl (slicer, threshold = 0.6 )
281281
282282 # ==========================================================================
283283 # Smooth the seams between layers
0 commit comments