Dynamic-Book / drgeo

GNU Dr. Geo, a Dynamic Knowledge Model on geometry
https://www.gnu.org/s/dr-geo
GNU General Public License v3.0
18 stars 1 forks source link

Error when filled arc #29

Closed hilaire closed 6 months ago

hilaire commented 6 months ago

p filled raise an error:

| f  p |
f := DrGeoSketch new.
p := f arc: 1@0  to: 0@0 to: 0@1.
p filled.

The alternative does not work very well either:

| f  p |
f := DrGeoSketch new.
p := f arc: 1@0  to: 0@0 to: 0@1.
p style fill:true

because DrArcStyle>>fill: boolean needs to be removed in the Cuis port.

Then use the #finializeFilledCurve: in both arc method of DrGeoSketch so the user can directly send the #filled message to the arc reference in her code.