I'm working on XFig import (finally!), and while the simple objects like
boxes and ellipses are easy enough, the polygon is not.  If I were to only
use the external interface to Standard - Polygon, I can't add extra
corners.  If I also use the functions from the middle mouse menu, I can add
corners, but with little control over how the corners are ordered (since it
picks the closest segment always).  So I'm this >< close to adding a new
standard function, basic_create(Point[], int), that will create the object
directly rather than using handles.  The function takes an array of points
that the object is created from, and the number of points in the array.
Exactly how the points are use is defined by the object.  Anyone have
problems with this?

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause) | Hårdgrim of Numenor
"I do not agree with a word that you say, but I    | Retainer of Sir Kegg
will defend to the death your right to say it."    |   of Westfield
    --Evelyn Beatrice Hall paraphrasing Voltaire   | Chaos Berserker of Khorne

Reply via email to