commit c604a8ab9dbb502fa893bcfb457cd64d8a5a8427
parent b06bb9c2f717c3c1f52a84f3d2e47fcba0ef4d76
Author: Benjamin Piaud <benjamin.piaud@meso-star.com>
Date: Sun, 14 Aug 2022 15:55:02 +0200
Modify name of step import function
Diffstat:
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/src/scad.h b/src/scad.h
@@ -285,7 +285,7 @@ scad_geometry_rotate
const double dir[3],
const double angle);
- /* Extrude the geometry `geom' using a translation along (`dx', `dy',
+/* Extrude the geometry `geom' using a translation along (`dx', `dy',
* `dz').*/
SCAD_API res_T
scad_geometry_extrude
@@ -294,6 +294,15 @@ scad_geometry_extrude
const double dxdydz[3],
struct scad_geometry** out_geometry);
+/* Import a step model (`filename'). The imported geometries are recorded in
+ * `out_geometry' handler. */
+SCAD_API res_T
+scad_scene_step_import
+ (struct scad_scene* scene,
+ const char* filename,
+ struct scad_geometry*** out_geometry,
+ size_t* out_geometry_n);
+
/* Export the geometry `geom' to an STL file.
* If `prefix' is provided it is used to name the file (just adding .stl),
* otherwise the geometry name is used instead (and it is an error if neither
@@ -311,12 +320,6 @@ scad_stl_export_split
const char* prefix, /* Can be NULL if geometry was named: use geometry name */
const int binary); /* File format */
-SCAD_API res_T
-scad_step_import
- (struct scad_scene* scene,
- const char* filename,
- struct scad_geometry*** out_geometry,
- size_t* out_geometry_n);
SCAD_API res_T /* FIXME remove this */
scad_run_ui
diff --git a/src/scad_geometry.c b/src/scad_geometry.c
@@ -990,7 +990,7 @@ error:
}
SCAD_API res_T
-scad_step_import
+scad_scene_step_import
(struct scad_scene* scene,
const char* filename,
struct scad_geometry*** out_geometry,