<commit_before>require 'rcad'


base = box(10.cm, 10.cm, 3.cm)
    .move(-5.cm, -5.cm, 0)

pedestal = add do
  ~base
  ~cylinder(8.cm, 7.cm).move_z(3.cm)
  ~base.move_z(3.cm + 7.cm)
end

~pedestal.rot_z(45)<commit_msg>Rewrite pedestal example with new features. (Also, fix use of radians.)<commit_after>require 'rcad'

pedetal = add do
  box = box(10.cm, 10.cm, 3.cm)
    .align(:xcenter, :ycenter, I)


  base = ~box

  c = ~cylinder(d: 7.cm, h: 8.cm)
    .align(:bottom, base.top)

  ~box.align(:bottom, c.top)
end


~pedestal.rot_z(45.deg_to_rad)
{'fraction_non_alphanumeric': 0.18214936247723132, 'fraction_numerical': 0.04371584699453552, 'mean_word_length': 3.3307086614173227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1315652', 'n_tokens_mistral': 280, 'n_tokens_neox': 253, 'n_words': 53}