diff --git a/environment.yml b/environment.yml deleted file mode 100644 index 03a75a78..00000000 --- a/environment.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: compas_slicer -channels: - - conda-forge - -dependencies: - - python - - pip - - compas>=1.0.0 - - networkx - - numpy - - progressbar2>=3.53 - - pyclipper>=1.2.0 - - rdp>=0.8 - - igl diff --git a/examples/2_curved_slicing/ex2_curved_slicing.py b/examples/2_curved_slicing/ex2_curved_slicing.py index bf959be7..f8fcba46 100644 --- a/examples/2_curved_slicing/ex2_curved_slicing.py +++ b/examples/2_curved_slicing/ex2_curved_slicing.py @@ -33,7 +33,7 @@ def main(): high_boundary_vs = utils.load_from_json(DATA_PATH, 'boundaryHIGH.json') create_mesh_boundary_attributes(mesh, low_boundary_vs, high_boundary_vs) - avg_layer_height = 3.0 + avg_layer_height = 2.0 parameters = { 'avg_layer_height': avg_layer_height, # controls number of curves that will be generated @@ -50,8 +50,8 @@ def main(): slicer = InterpolationSlicer(mesh, preprocessor, parameters) slicer.slice_model() # compute_norm_of_gradient contours - simplify_paths_rdp_igl(slicer, threshold=0.5) - seams_smooth(slicer, smooth_distance=4) + simplify_paths_rdp_igl(slicer, threshold=0.25) + seams_smooth(slicer, smooth_distance=3) slicer.printout_info() utils.save_to_json(slicer.to_data(), OUTPUT_PATH, 'curved_slicer.json') diff --git a/requirements.txt b/requirements.txt index 5c5a74c8..22607f11 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,5 @@ networkx>=2.5 numpy progressbar2>=3.53 pyclipper>=1.2.0 -rdp>=0.8 \ No newline at end of file +rdp>=0.8 +libigl>=2.4.1 \ No newline at end of file