Skip to content
Discussion options

You must be logged in to vote

Yes, you are likely using to small path and because of that getting weird results.

Working example:

from cadquery.func import *

def create_faces(outer_size = 14.5): 
    # Ring profile: outer ring + inner ring (half size, same thickness)
    
    inner_size = outer_size * 0.90  # outer ring hole 90% the size of the outer
    thickness = outer_size - inner_size

    # Inner ring: half the size of outer, same thickness
    inner_ring_outer_r = outer_size / 2
    inner_ring_inner_r = inner_ring_outer_r - thickness

    # Outer ring
    outer_full = face(circle(outer_size))
    outer = outer_full - face(circle(inner_size))

    # Inner ring
    inner = face(circle(inner_ring_outer_r))
    
    

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by adam-urbanczyk
Comment options

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

@jimcortez
Comment options

@adam-urbanczyk
Comment options

@jimcortez
Comment options

@adam-urbanczyk
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
3 participants