Skip to content
Discussion options

You must be logged in to vote

Could you define your use case concisely, preferably with a single (formatted) minimal example?

In the meantime, AFAICT you want to add a shape on multiple locations. The canonical way (using the Workplane API) of doing so would be more or less this:

import cadquery as cq
from cadquery.vis import show

canon = (
    cq.Workplane()
    .box(2,2,2, centered=(1,1,0))
    .faces('>X').workplane(centerOption='CenterOfMass')
    .box(1,1,1, centered=(1,1,0))
)
    
result = (
    cq.Workplane()
    .box(10,10,0.5)
    .faces('>Z').workplane()
    .pushPoints([(0, 0), (3, 2)])
    .eachpoint(canon, combine=True)
)

show(result)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ervandarnell
Comment options

@adam-urbanczyk
Comment options

@ervandarnell
Comment options

@adam-urbanczyk
Comment options

Answer selected by ervandarnell
@ervandarnell
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants