13 lines
355 B
Python
13 lines
355 B
Python
#This example is meant to be used from within the CadQuery module of FreeCAD.
|
|
import cadquery
|
|
import Part
|
|
|
|
#Make a basic prism
|
|
result = cadquery.Workplane("front").box(2,3,0.5)
|
|
|
|
#Find the top-most face and make a hole
|
|
result = result.faces(">Z").workplane().hole(0.5)
|
|
|
|
#Boiler plate code to render our solid in FreeCAD's GUI
|
|
Part.show(result.toFreecad())
|