Added examples 16 and 17.
This commit is contained in:
@ -17,11 +17,12 @@
|
||||
#You can get a more information on this example at http://parametricparts.com/docs/examples.html#an-extruded-prismatic-solid
|
||||
|
||||
import cadquery
|
||||
from cadquery import Vector
|
||||
import Part
|
||||
|
||||
#Create a rotated workplane and put holes in each corner of a rectangle on that workplane, producing angled holes in the face
|
||||
result = cadquery.Workplane("front").box(4.0,4.0,0.25).faces(">Z").workplane() \
|
||||
.transformed(offset=cad.Vector(0,-1.5,1.0),rotate=cad.Vector(60,0,0)) \
|
||||
.transformed(offset=Vector(0,-1.5,1.0),rotate=Vector(60,0,0)) \
|
||||
.rect(1.5,1.5,forConstruction=True).vertices().hole(0.25)
|
||||
|
||||
#Get a cadquery solid object
|
||||
|
Reference in New Issue
Block a user