Class: SolidRuby::CSGModelling::Difference

Inherits:
CSGModelling show all
Defined in:
lib/solidruby/csg_modelling/difference.rb

Instance Attribute Summary

Attributes inherited from SolidRubyObject

#attributes, #children, #siblings, #transformations

Instance Method Summary collapse

Methods inherited from CSGModelling

#get_point_on, #initialize, #to_rubyscad

Methods inherited from SolidRubyObject

#&, alias_attr, #debug, #debug?, #initialize, #mirror, #place, #rotate, #rotate_around, #save, #scale, #to_rubyscad, #translate, #union, #walk_tree, #walk_tree_classes

Constructor Details

This class inherits a constructor from SolidRuby::CSGModelling::CSGModelling

Instance Method Details

#chamfer(args) ⇒ Object



27
28
29
30
31
32
33
34
# File 'lib/solidruby/csg_modelling/difference.rb', line 27

def chamfer(args)
  if @children.first.respond_to? :chamfer
    @children << @children.first.chamfer(args.merge(exclude_self: true))
    self
  else
    Helpers::chamfer(args)
  end
end

#fillet(args) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/solidruby/csg_modelling/difference.rb', line 18

def fillet(args)
  if @children.first.respond_to? :fillet
    @children << @children.first.fillet(args.merge(exclude_self: true))
    self
  else
    Helpers::fillet(args)
  end
end