Hi Thomas:
This sounds _very_ good! But just to clarify the conversion
from elliptical arc to cubic does carry some small loss of precision
(not that anyone would notice as they are almost always rendered by
cubics).
The conversion is done using ExtendedGeneralPath.computeArc method, so
the result will match what Batik is rendering on screen.
I can take a look, but since right now Batik doesn't do SMIL
animation I think most of the 'Animated' interfaces are implemented
essentially the same as the unanimated.
In this Patch, the animated versions of the methods were left untouched.
BTW did you implement any tests of these interfaces? ideally
it would be a javascript based test that might use the interface
to construct 'clone' geometry and ensure that it matches the
original geometry (like a narrow gold stroke over a wider 'grey'
stroke). This would make it easy to plug into the Batik testing
framework.
I have attached a simple SVG-javascript test file in the bugzilla
demonstrating the use and results.
I used the latest SVN version to test it and it works as it should.
Regards,
Andres.
On Jul 19, 2005, at 7:59 AM, Thomas DeWeese wrote:
Hi,
Sorry silly math typo:
Thomas DeWeese wrote:
Quadradic = (1-t)^2*Pq1 + 2*t(1-t)*Pq2 + t^2Pq3
Cubic = (1-t)^3*Pc1 + 3*t(1-t)^2*Pc2 + 3*t^2*(1-t)Pc3 + t^3Pc4
Pc1 = Pq1
Pc2 =(Pq1 + 2*(Pq2-Pq1)/3)
Pc3 =(Pq3 + 2*(Pq2-Pq3)/2)
^ should be '3':
Pc3 =(Pq3 + 2*(Pq2-Pq3)/3)
Pc4 = Pq3
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]