Added examples 16 and 17.

This commit is contained in:
Jeremy Wright
2014-07-07 23:00:25 -04:00
parent 3faadb8b2e
commit 795708fe7f
3 changed files with 65 additions and 1 deletions

View File

@ -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