Re: How to a path from a table of segments and arcs

Andrew Martchenko <[email protected]> Thu, 24 Nov 2016 12:38:54 +1100
Newsgroups gmane.comp.graphics.ipe.general
Message-ID <[email protected]>
Hi All,
I figured out how to create the necessary path. Here is my code.

     local shape =  { type="curve", closed=false;
              {type="segment", p1,p2};
              {type="arc", p2, p3, arc=ipe.Arc(ipe.Matrix(r, 0, 0, r, 
c.x, c.y)) };
              { .... and so forth}}
   local path = ipe.Path(model.attributes, { shape } )

Regards,
Andrew M.