hello everyone,

as of r51503 i've added functions to librt/primitives/sketch_tess.cpp to 
enable approximation of bezier curves by a set of circular arcs using 
the algorithm discussed here: http://itc.ktu.lt/itc354/Riskus354.pdf

I'd like some feedback on the new functions, in particular 
bezier_inflection() and approx_bezier(), which both use an iterative 
method to walk the curve.

currently, bezier_inflection() returns the first point where the 
curvature vector evaluated at that point has greater magnitude than the 
curvature vector evaluated one half interval forwards, which doesn't 
seem very elegant or precise. Is there a better way to find a point of 
inflection on the curve?

similarly, approx_bezier() walks the curve in intervals, and computes 
the minimum distance from the approximating circular arc to the bezier 
curve evaluated at the interval. Is there a better way to determine when 
the two curves diverge by more than a given tolerance?

of course, any comments on any other areas would be appreciated as well.

thanks,
chris

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to