Spaces:
Sleeping
Sleeping
Delete utils/cnc_utils.py
Browse files- utils/cnc_utils.py +0 -13
utils/cnc_utils.py
DELETED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
def generate_gcode(cad_file):
|
| 2 |
-
"""
|
| 3 |
-
Generates G-Code from the provided CAD file.
|
| 4 |
-
Returns the file path of the generated G-Code file.
|
| 5 |
-
"""
|
| 6 |
-
try:
|
| 7 |
-
# Example mock-up for G-Code generation
|
| 8 |
-
gcode_file = "/mnt/data/generated_gcode.nc"
|
| 9 |
-
with open(gcode_file, 'w') as f:
|
| 10 |
-
f.write(f"G-Code for CAD file: {cad_file}")
|
| 11 |
-
return gcode_file
|
| 12 |
-
except Exception as e:
|
| 13 |
-
return f"Error in G-Code generation: {e}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|