commit 350a04539173f8bbf8c55be363f83c3111613c0c
parent 1151ed7ba9e3030d89f4dd7361e9b5f03c59da3e
Author: Benjamin Piaud <benjamin.piaud@meso-star.com>
Date: Mon, 28 Nov 2022 10:24:59 +0100
Minor fix in get normal function
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/scad_geometry.c b/src/scad_geometry.c
@@ -1655,7 +1655,8 @@ scad_geometry_normal
ERR(check_device(FUNC_NAME));
if (geom->gmsh_dimTags[0] == 2) {
- surface = geom;
+ ERR(scad_geometry_copy(geom, NULL, &surface));
+ ERR(scad_synchronize());
} else if (geom->gmsh_dimTags[0] == 3) {
ERR(scad_geometry_boundary(NULL, &geom, 1, &surface));
} else {