<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5574360829957681344.post5644732142656730575..comments</id><updated>2011-03-30T05:12:55.257+09:00</updated><category term='Python'/><category term='MTM04'/><category term='takano32'/><category term='IQTest'/><category term='QUMA'/><category term='Culture'/><category term='Sri-Lanka'/><category term='devfest_jp'/><category term='MTM05'/><category term='Math'/><category term='Art'/><category term='BF'/><category term='Google App Engine'/><category term='CG'/><category term='Haskell'/><category term='LOVEPLUS'/><category term='Django-nonrel'/><category term='iPhone'/><category term='Blender'/><category term='git'/><category term='NISHIO'/><category term='Django'/><category term='Kay'/><category term='japanese culture'/><category term='ITOYANAGI'/><category term='Muroto'/><category term='iPad'/><category term='google'/><category term='LISP'/><category term='Quiz'/><title type='text'>Comments on Hacker's Cafe Blog: How to calculate Bezier curves' bounding box</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.hackers-cafe.net/feeds/5644732142656730575/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5574360829957681344/5644732142656730575/comments/default'/><link rel='alternate' type='text/html' href='http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html'/><author><name>akio0911</name><uri>http://www.blogger.com/profile/15337840931928412034</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_W0p2UZSkynE/SVdMHMz93FI/AAAAAAAAAHw/tKek2LpNjG8/S220/akio0911_p.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5574360829957681344.post-1740364889169380220</id><published>2011-03-30T05:12:55.257+09:00</published><updated>2011-03-30T05:12:55.257+09:00</updated><title type='text'>Thank you very much for this algorithm, it helped ...</title><content type='html'>Thank you very much for this algorithm, it helped me a lot!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5574360829957681344/5644732142656730575/comments/default/1740364889169380220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5574360829957681344/5644732142656730575/comments/default/1740364889169380220'/><link rel='alternate' type='text/html' href='http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html?showComment=1301429575257#c1740364889169380220' title=''/><author><name>jan</name><uri>http://www.blogger.com/profile/04648427721057392570</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html' ref='tag:blogger.com,1999:blog-5574360829957681344.post-5644732142656730575' source='http://www.blogger.com/feeds/5574360829957681344/posts/default/5644732142656730575' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-294242663'/></entry><entry><id>tag:blogger.com,1999:blog-5574360829957681344.post-1941000999554726208</id><published>2011-02-23T00:52:15.956+09:00</published><updated>2011-02-23T00:52:15.956+09:00</updated><title type='text'>This works fine for me when you have only one curv...</title><content type='html'>This works fine for me when you have only one curve.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private List FindPointsForBounds(Point P0, Point P1, Point P2, Point P3)&lt;br /&gt;        {&lt;br /&gt;            List toReturn = new List();&lt;br /&gt;&lt;br /&gt;            int A = P3.X - 3 * P2.X + 3 * P1.X - P0.X;&lt;br /&gt;            int B = 3 * P2.X - 6 * P1.X + 3 * P0.X;&lt;br /&gt;            int C = 3 * P1.X - 3 * P0.X;&lt;br /&gt;            int D = P0.X;&lt;br /&gt;&lt;br /&gt;            int E = P3.Y - 3 * P2.Y + 3 * P1.Y - P0.Y;&lt;br /&gt;            int F = 3 * P2.Y - 6 * P1.Y + 3 * P0.Y;&lt;br /&gt;            int G = 3 * P1.Y - 3 * P0.Y;&lt;br /&gt;            int H = P0.Y;&lt;br /&gt;&lt;br /&gt;            float x, y;&lt;br /&gt;            float xMin = int.MaxValue;&lt;br /&gt;            float yMin = int.MaxValue;&lt;br /&gt;            float xMax = 0;&lt;br /&gt;            float yMax = 0;&lt;br /&gt;&lt;br /&gt;            for (float t = 0.0f; t &amp;lt;= 1.0f; t += 0.01f)&lt;br /&gt;            {&lt;br /&gt;                x = A * t * t * t + B * t * t + C * t + D;&lt;br /&gt;                if (x &amp;lt; xMin)&lt;br /&gt;                    xMin = x;&lt;br /&gt;                if (x &amp;gt; xMax)&lt;br /&gt;                    xMax = x;&lt;br /&gt;                y = E * t * t * t + F * t * t + G * t + H;&lt;br /&gt;                if (y &amp;lt; yMin)&lt;br /&gt;                    yMin = y;&lt;br /&gt;                if (y &amp;gt; yMax)&lt;br /&gt;                    yMax = y;               &lt;br /&gt;            }&lt;br /&gt;            toReturn.Add(new Point((int)xMin, (int)yMin));&lt;br /&gt;            toReturn.Add(new Point((int)xMax, (int)yMax));&lt;br /&gt;            return toReturn;&lt;br /&gt;        }</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5574360829957681344/5644732142656730575/comments/default/1941000999554726208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5574360829957681344/5644732142656730575/comments/default/1941000999554726208'/><link rel='alternate' type='text/html' href='http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html?showComment=1298389935956#c1941000999554726208' title=''/><author><name>ivek</name><uri>http://www.blogger.com/profile/07521692150863970466</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html' ref='tag:blogger.com,1999:blog-5574360829957681344.post-5644732142656730575' source='http://www.blogger.com/feeds/5574360829957681344/posts/default/5644732142656730575' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-974079785'/></entry><entry><id>tag:blogger.com,1999:blog-5574360829957681344.post-3498534070856579666</id><published>2010-07-28T17:48:00.674+09:00</published><updated>2010-07-28T17:48:00.674+09:00</updated><title type='text'>sorry
s/point/vertex/g</title><content type='html'>sorry&lt;br /&gt;s/point/vertex/g</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5574360829957681344/5644732142656730575/comments/default/3498534070856579666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5574360829957681344/5644732142656730575/comments/default/3498534070856579666'/><link rel='alternate' type='text/html' href='http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html?showComment=1280306880674#c3498534070856579666' title=''/><author><name>NISHIO Hirokazu</name><uri>http://www.blogger.com/profile/12818351128711176434</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00782340597675277418'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html' ref='tag:blogger.com,1999:blog-5574360829957681344.post-5644732142656730575' source='http://www.blogger.com/feeds/5574360829957681344/posts/default/5644732142656730575' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-112969860'/></entry><entry><id>tag:blogger.com,1999:blog-5574360829957681344.post-6837319346348682611</id><published>2010-07-28T17:46:31.507+09:00</published><updated>2010-07-28T17:46:31.507+09:00</updated><title type='text'>Almost same:

    for c in curves:
        P1, P2,...</title><content type='html'>Almost same:&lt;br /&gt;&lt;br /&gt;    for c in curves:&lt;br /&gt;        P1, P2, P3 = (&lt;br /&gt;            (c[0], c[1]), &lt;br /&gt;            (c[2], c[3]), &lt;br /&gt;            (c[4], c[5]))&lt;br /&gt;&lt;br /&gt;here, any c in curves are [handler, handler, point]&lt;br /&gt;P0 and P3 are terminal points of each bezier curves.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5574360829957681344/5644732142656730575/comments/default/6837319346348682611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5574360829957681344/5644732142656730575/comments/default/6837319346348682611'/><link rel='alternate' type='text/html' href='http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html?showComment=1280306791507#c6837319346348682611' title=''/><author><name>NISHIO Hirokazu</name><uri>http://www.blogger.com/profile/12818351128711176434</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00782340597675277418'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html' ref='tag:blogger.com,1999:blog-5574360829957681344.post-5644732142656730575' source='http://www.blogger.com/feeds/5574360829957681344/posts/default/5644732142656730575' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-112969860'/></entry><entry><id>tag:blogger.com,1999:blog-5574360829957681344.post-6527667735123962093</id><published>2010-07-24T02:53:19.933+09:00</published><updated>2010-07-24T02:53:19.933+09:00</updated><title type='text'>i couldn&amp;#39;t understand the source code , could ...</title><content type='html'>i couldn&amp;#39;t understand the source code , could you please comment it ? , &lt;br /&gt;or give some explanation of the mathematical solution,&lt;br /&gt;i&amp;#39;m making graphics application using python and i need this&lt;br /&gt;&lt;br /&gt;my curve has the structure : [point,point,point....]&lt;br /&gt;&lt;br /&gt;point = [handler,vertex,handler]&lt;br /&gt;handler,vertex = (x,y)&lt;br /&gt;&lt;br /&gt;could you help me ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5574360829957681344/5644732142656730575/comments/default/6527667735123962093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5574360829957681344/5644732142656730575/comments/default/6527667735123962093'/><link rel='alternate' type='text/html' href='http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html?showComment=1279907599933#c6527667735123962093' title=''/><author><name>Blaze Boy</name><uri>http://www.blogger.com/profile/09701909069021876991</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_xpa7gblHmgk/SIYNLsTAKvI/AAAAAAAAARM/ne14LrgR1pA/S220/MyAvatar.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html' ref='tag:blogger.com,1999:blog-5574360829957681344.post-5644732142656730575' source='http://www.blogger.com/feeds/5574360829957681344/posts/default/5644732142656730575' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-353054694'/></entry></feed>
