cnc_gcode_generation / utils / Utility scripts_cad_operations.py
jithenderchoudary's picture
Update utils/ Utility scripts_cad_operations.py
840208a verified
raw
history blame contribute delete
366 Bytes
import FreeCAD
import Part
def create_cad_model(length, width, height, material):
"""
Create a basic 3D box based on user input (dimensions, material).
In a real-world scenario, this function can be extended to handle more complex geometry.
"""
# Creating a 3D box
box = Part.makeBox(length, width, height)
Part.show(box)
return box