| Sign In/My Account | View Cart |
| Article: |
Introduction to Cocoa Graphics, Part 2 | |
| Subject: | what is this thing called triangle? | |
| Date: | 2001-11-19 20:47:37 | |
| From: | psheldon | |
|
Response to: got a great doubt
|
||
|
Embarrassment made me doubt doubt. ;-) Bezier class includes methods such as lineto and moveto that will not match tangents and this sets a precident for this other sort of thing getting into the class. I'm also recalling that it makes sense it be in the class without bugs because I recall that there was an option for rounding the corners of a border, so that Apple coders would have gotten the bugs out from that concept, though it is not precisely the same problem, plausibly a similar one. So now I must try to code not so much fearing that I will spend a long time while it doesn't work fearing that Apple might be wrong. The game's afoot! |
||
Showing messages 1 through 12 of 12.
;-)
Info (in subject line), as defined by AI guys is surprise (for me sometimes extreme confusion).
Commented out line with method curveToPoint to put in your investigated method, appendBezierPathWithArcFromPoint. I checked on radius, not an integer but rather a float, which with hindsight makes sense on a raster because a hypotenuse is irrational and I might like to turn that triangle with Bezier bent bottom into an Apple pie (forgive the pun).
I didn't figure the hypothenuse of 200 and 100 right triangle, but grew impatient and made a radius 200.0 to type match, taking no chances to find this alleged bug.
I got a triangle not a pie. Oh, maybe your method didn't do anything and closePath did.
I commented out closePath.
I lost the red and green strokes on bottom but got a triangle fill. Plausibly fills should spill all over if they are to open objects, that's the way quickdraw opcodes work.
Now, I doubt Apple again. Which way is this float pointing? Was the pie to curve in or out? Tried with and without closePath and got a straight triangle fill.
Note:
My search space is doubling because I don't have one bit facts:
1.What is this closePath doing when the triangle fill is straight, do we have a triangle or don't we.
2. What difference, if any, does sign of radius float make. How do I specify which way the arc curves to make an Apple pie or Apple dent.
When my puzzlement increases like this, I need to give things a rest to get a heuristic in the search, otherwise I keep doubling up things to try and fill up my "chess board" with more than the grains of wheat or sand in the world, however that story goes.
A heuristic comes to me in a morning vision when thinking out of the box.
Gotta get a good nights sleep and then back at it!
Sorry, that's the way my brain works and I am quite happily unemployed. So far it looks like appendBezierPathWithArcFromPoint is also not working.
;-)