models/parts/chris_desk.rb
#This isn't parametric yet
This isn't parametric yet
This isn ' t parametric yet
def draw!
      points = make_points
      lines = Sk.draw_all_points(points)
      if WikiHouse.machine.bit_radius != 0
        dowels = make_dowels!
      else
        dowels = []
      end
      pockets = make_pockets!
      face = Sk.add_face(lines)
      set_material(face)
      dowels.each do |sp|
        dowel_face = Sk.add_face(sp)
        dowel_face.erase!
      end
      pockets.each do |sp|
        pocket_face = Sk.add_face(sp)
        pocket_face.erase!
      end
      make_part_right_thickness(face)
      Sk.add_face(lines)
      set_group(face.all_connected)
      mark_primary_face!(face)
    end
def draw! points = make_points lines = Sk . draw_all_points ( points ) if WikiHouse . machine . bit_radius != 0 dowels = make_dowels! else dowels = [ ] end pockets = make_pockets! face = Sk . add_face ( lines ) set_material ( face ) dowels . each do | sp | dowel_face = Sk . add_face ( sp ) dowel_face . erase! end pockets . each do | sp | pocket_face = Sk . add_face ( sp ) pocket_face . erase! end make_part_right_thickness ( face ) Sk . add_face ( lines ) set_group ( face . all_connected ) mark_primary_face! ( face ) end
This isn't parametric yet
This isn ' t parametric yet