[REBOL] Re: VID Problem: not enough memory
From: carl:cybercraft at: 31-Oct-2002 7:06
On 31-Oct-02, Robert M. Muench wrote:
> Hi, I have a strange problem I can't solve. Please try the following
> code:
> rebol []
> arrows: [
> pen 200.200.200
> fill-pen red
> line -15x-45 15x-15
> polygon 15x-15 7x-18 11x-22
>
> line 15x-15 15x45
> polygon 15x45 12x37 18x37
> line -15x-45 -75x60
> polygon -75x60 -73x51 -68x54
> line -15x-45 -45x-15
> polygon -45x-15 -41x-22 -37x-18
> ]
> view make face probe compose/deep [
> size: 300x300 effect: [draw [(arrows)]]
> ]
> Any idea what the problem is? Is it a problem that I have negative
> coordinates? Robert
It would seem View doesn't like polygons when both the points are all
outside the face and some of them are negative. The first three
examples here work but the last one gives the out-of-memory error...
; all points in face
arrows: [
pen 200.200.200
fill-pen red
polygon 15x45 12x37 18x37
]
view make face probe compose/deep [
size: 300x300 effect: [draw [(arrows)]]
]
; 2 out of 3 points negative, 1 inside face
arrows: [
pen 200.200.200
fill-pen red
polygon -15x-45 -12x-37 18x37
]
view make face probe compose/deep [
size: 300x300 effect: [draw [(arrows)]]
]
; all points outside face, but all positive
arrows: [
pen 200.200.200
fill-pen red
polygon 415x445 412x437 418x437
]
view make face probe compose/deep [
size: 300x300 effect: [draw [(arrows)]]
]
; all points have one negative value (this one fails)
arrows: [
pen 200.200.200
fill-pen red
polygon -15x45 -12x37 -18x37
]
view make face probe compose/deep [
size: 300x300 effect: [draw [(arrows)]]
]
Is this problem also in the beta Views?
--
Carl Read