Class: SolidRuby::CSGModelling::Difference

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

Instance Method Summary collapse

Methods included from SolidRuby::CSGModelling

#*, #+, #-, #hull, #minkowski, #optimize_difference, #optimize_union

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