From 4a91fbe05cda3f0b135ddd59a2b1833c30f17c7b Mon Sep 17 00:00:00 2001 From: Nick Ufer Date: Sun, 1 Dec 2024 13:54:27 +0100 Subject: [PATCH] fix: change manifold_calculate_normals min_sharp_angle type to double --- bindings/c/include/manifold/manifoldc.h | 2 +- bindings/c/manifoldc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/c/include/manifold/manifoldc.h b/bindings/c/include/manifold/manifoldc.h index 054f353a9..580b098dc 100644 --- a/bindings/c/include/manifold/manifoldc.h +++ b/bindings/c/include/manifold/manifoldc.h @@ -215,7 +215,7 @@ double manifold_min_gap(ManifoldManifold *m, ManifoldManifold *other, double searchLength); ManifoldManifold *manifold_calculate_normals(void *mem, ManifoldManifold *m, int normal_idx, - int min_sharp_angle); + double min_sharp_angle); // CrossSection Shapes/Constructors ManifoldCrossSection *manifold_cross_section_empty(void *mem); diff --git a/bindings/c/manifoldc.cpp b/bindings/c/manifoldc.cpp index d4dbe3bff..ca40b344b 100644 --- a/bindings/c/manifoldc.cpp +++ b/bindings/c/manifoldc.cpp @@ -680,7 +680,7 @@ double manifold_min_gap(ManifoldManifold *m, ManifoldManifold *other, ManifoldManifold *manifold_calculate_normals(void *mem, ManifoldManifold *m, int normal_idx, - int min_sharp_angle) { + double min_sharp_angle) { auto man = from_c(m)->CalculateNormals(normal_idx, min_sharp_angle); return to_c(new (mem) Manifold(man)); }