models/parts/chris_desk.rb
#This isn't parametric yet
This isn't parametric yet
This isn ' t parametric yet
def make_pockets!
      t = thickness
      pockets = []
      c5 = [bounding_c1.x + back_foot_width + back_cross_bar_back_offset,
            bounding_c1.y - length + t + back_cross_bar_top_offset + 3 * t,
            bounding_c1.z]
      c6 = [c5.x + t, c5.y, c5.z]
      c7 = [c6.x, c5.y - 3 * t, c5.z]
      c8 = [c5.x, c7.y, c5.z]
      points = [c5, c6, c7, c8]
      WikiHouse::Fillet.pocket_by_points(points)
      pocket_lines = Sk.draw_all_points(points)
      pocket_lines.each { |e| mark_inside_edge!(e) }
      pockets << pocket_lines
      pockets
    end
def make_pockets! t = thickness pockets = [ ] c5 = [ bounding_c1 . x + back_foot_width + back_cross_bar_back_offset , bounding_c1 . y - length + t + back_cross_bar_top_offset + 3 * t , bounding_c1 . z ] c6 = [ c5 . x + t , c5 . y , c5 . z ] c7 = [ c6 . x , c5 . y - 3 * t , c5 . z ] c8 = [ c5 . x , c7 . y , c5 . z ] points = [ c5 , c6 , c7 , c8 ] WikiHouse :: Fillet . pocket_by_points ( points ) pocket_lines = Sk . draw_all_points ( points ) pocket_lines . each { | e | mark_inside_edge! ( e ) } pockets << pocket_lines pockets end
This isn't parametric yet
This isn ' t parametric yet
#back cross bar pocket #