Skip to content

Commit 86cce1a

Browse files
committed
Change examples for geomerativegem version 1.1.0
1 parent f87dc7b commit 86cce1a

File tree

4 files changed

+4
-47
lines changed

4 files changed

+4
-47
lines changed

external_library/gem/geomerative/library/boundary/boundary.rb

Lines changed: 0 additions & 24 deletions
This file was deleted.

external_library/gem/geomerative/library/boundary_shape/boundary_shape.rb

Lines changed: 0 additions & 18 deletions
This file was deleted.

external_library/gem/geomerative/rectangle_boundary_test.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require 'geomerative'
2-
load_library :boundary
32

43
attr_reader :bounds, :my_rect
54

@@ -11,7 +10,7 @@ def setup
1110
sketch_title 'Geomerative Boundary Test'
1211
RG.init(self)
1312
RG.set_polygonizer(RG.ADAPTATIVE)
14-
@bounds = Boundary.create_bounding_rectangle(100, 100, 100, 50)
13+
@bounds = RShape.create_rectangle(100, 100, 100, 50)
1514
end
1615

1716
def draw
@@ -23,7 +22,7 @@ def draw
2322
end
2423

2524
def draw_my_rect
26-
if bounds.inside(my_rect)
25+
if bounds.contains_shape(my_rect)
2726
no_stroke
2827
fill 255, 0, 0
2928
else

external_library/gem/geomerative/shape_boundary_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def setup
1313
RG.set_polygonizer(RG.ADAPTATIVE)
1414
circle = RShape.createCircle(100, 100, 100);
1515
rectangle = RShape.createRectangle(100, 100, 100, 50);
16-
@bounds = Boundary.create_bounding_shape(circle.union(rectangle))
16+
@bounds = RShape.new(circle.union(rectangle))
1717
end
1818

1919
def draw
@@ -25,7 +25,7 @@ def draw
2525
end
2626

2727
def draw_my_rect
28-
if bounds.inside(my_rect)
28+
if bounds.contains_shape(my_rect)
2929
no_stroke
3030
fill 255, 0, 0
3131
else

0 commit comments

Comments
 (0)