Spaces:
Build error
Build error
| 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 | |