models/parts/chris_desk.rb
#This isn't parametric yet
This isn't parametric yet
This isn ' t parametric yet
def make_dowels!
      return [] if WikiHouse.machine.bit_radius == 0
      t = thickness
      dowel_points = []
      dowel_x_gap = 0.6
      dowel_y_gap = 4.0
      d1 = [bounding_c1.x + 1.5, bounding_c1.y - 1, bounding_c1.z]
      dowel_points << d1
      6.times do |i|
        dowel_points << [d1.x + (i + 1) * dowel_x_gap, d1.y - (i + 1) * dowel_y_gap, d1.z]
      end
      dowel_x_gap = 1.25
      dowel_y_gap = 4.0
      d1 = [bounding_c1.x + 24.25, bounding_c1.y - 1, bounding_c1.z]
      dowel_points << d1
      6.times do |i|
        dowel_points << [d1.x - (i + 1) * dowel_x_gap, d1.y - (i + 1) * dowel_y_gap, d1.z]
      end
      dowel_points << [bounding_c1.x + 10, bounding_c1.y - 25.5, bounding_c1.z]
      dowel_points << [bounding_c1.x + 10, bounding_c1.y - 28, bounding_c1.z]
      dowels = []
      dowel_points.each { |d| dowels << Sk.draw_circle(center_point: d, radius: WikiHouse.machine.bit_radius) }
      dowels.each { |d| d.each { |e| mark_inside_edge!(e) } }
      dowels
    end
def make_dowels! return [ ] if WikiHouse . machine . bit_radius == 0 t = thickness dowel_points = [ ] dowel_x_gap = 0.6 dowel_y_gap = 4.0 d1 = [ bounding_c1 . x + 1.5 , bounding_c1 . y - 1 , bounding_c1 . z ] dowel_points << d1 6 . times do | i | dowel_points << [ d1 . x + ( i + 1 ) * dowel_x_gap , d1 . y - ( i + 1 ) * dowel_y_gap , d1 . z ] end dowel_x_gap = 1.25 dowel_y_gap = 4.0 d1 = [ bounding_c1 . x + 24.25 , bounding_c1 . y - 1 , bounding_c1 . z ] dowel_points << d1 6 . times do | i | dowel_points << [ d1 . x - ( i + 1 ) * dowel_x_gap , d1 . y - ( i + 1 ) * dowel_y_gap , d1 . z ] end dowel_points << [ bounding_c1 . x + 10 , bounding_c1 . y - 25.5 , bounding_c1 . z ] dowel_points << [ bounding_c1 . x + 10 , bounding_c1 . y - 28 , bounding_c1 . z ] dowels = [ ] dowel_points . each { | d | dowels << Sk . draw_circle ( center_point : d , radius : WikiHouse . machine . bit_radius ) } dowels . each { | d | d . each { | e | mark_inside_edge! ( e ) } } dowels end
This isn't parametric yet
This isn ' t parametric yet
#Back Leg Dowels #ftont leg dowels # Mid