mruby-siren
mruby-siren copied to clipboard
FACE 特異メソッド split の挙動
次の shell1 と shell2 を作ると,shell2 は切り取った2つの FACE を保持していますが,shell1 は一方しか保持していません.少し気持ち悪い感じがします.
> include Siren
=> [Siren]
> myplane = plane [0, 0, 0], [0, 0, 1], [1, 0, 0], -2, 2, -2, 2
=> #<Shape:0x14fbec0 @type=FACE>
> wire1 = polyline [[-2, 0, 0], [2, 0, 0], [2, 2, 0], [-2, 2, 0], [-2, 0, 0]]
=> #<Shape:0x14fbbc0 @type=WIRE>
> shell1 = myplane.split wire1
=> #<Shape:0x14fba70 @type=FACE>
> wire2 = polyline [[0, 0, 0], [1, 0, 0], [1, 2, 0], [0, 2, 0], [0, 0, 0]]
=> #<Shape:0x14fb770 @type=WIRE>
> shell2 = myplane.split wire2
=> #<Shape:0x14fb620 @type=SHELL>