Brian wrote:
> >
> > //long, dazed and confused rambling by me (jose).
> >
> All of this is exactly what I had in mind, with an additional
> call that took points in absolute canvas coords and then converted
> them to object coords (at the current location/rotation/scaling).
> The use case I had in mind for such a function would be to add
> points based on mouse input. It would basically just do
>
> px,py = canvas_coords_to_polygon_coords(cx, cy)
> polygon_point_add(px,py)
>
> So, maybe we would just need the functions that map between the two
> coordinate spaces :)
>
Yes, either absolute rel to canvas coords or absolute rel
to an (untransformed) obj coord system would be fine, and one could
convert between the two.. you could also have api funcs for both.
Note though that "rel to the obj's coord system" won't always be
the same as "rel to the obj's current canvas position" if one allows
for the points to determine the object's pos (as they get added),
unless the min of the vertex coords are exactly (0,0).
I don't think "rel to the obj's current canvas pos" is good
though.. filled with confusion if we're letting the vertex posns
determine the obj's as they get added.
From prior snafus, I still think it would be a *really* good
idea to try adding this (and/or lines) to edje, just as far as the
edc description, and see what problems might seem to arise.
jose.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel