[Ipe-discuss] How to a path from a table of segments and arcs

Andrew Martchenko andrew.martchenko at gmail.com
Thu Nov 24 02:38:54 CET 2016

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 } )

Andrew M.

More information about the Ipe-discuss mailing list