Search found 3 matches

by qpad
Thu Nov 22, 2012 9:09 pm
Forum: Programming
Topic: Segments and rectangle recognition
Replies: 3
Views: 2124

Re: Segments and rectangle recognition

Hello,

Continuing my own little thread...

In case someone has a similar problem, I found a solution to my above question : just use the rotate(angle,center_x,center_y) SVG transform.
Inkscape interprets it perfectly.

I attach a revised version of this extension. Less bugs, better details...
by qpad
Mon Nov 19, 2012 1:40 am
Forum: Programming
Topic: Segments and rectangle recognition
Replies: 3
Views: 2124

Re: Segments and rectangle recognition

Hi ! My positioning of rotated rectangle in the above script is wrong. It seems I get the correct rotation matrix, but I can't understand how to set 'x' and 'y' attributes. Their meaning is obvious for non rotated rectangles (it is simply rect_center_x-width/2 and rect_center_y-height/2), but what i...
by qpad
Fri Nov 16, 2012 8:39 am
Forum: Programming
Topic: Segments and rectangle recognition
Replies: 3
Views: 2124

Segments and rectangle recognition

Hello everyone, I have coded a little python extension which aims to regularize hand drawn paths by recognizing basic shapes such as segments and rectangles. See it in action here : http://s11.postimage.org/a1ur6rspu/demo.jpg It is currently far from being polished. Not even yet finished, for exampl...

Go to advanced search