Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

(Ruby) Pen alignment fails ?

For general discussion related FlowStone

(Ruby) Pen alignment fails ?

Postby unkargherth » Sat Nov 24, 2012 9:03 pm

It seems that it works for the example in the manual ( page 170) but fails for other shapes, an arc in the example below
PenAlignment.fsm
(442 Bytes) Downloaded 1004 times
Free your memory, .. with a free(). Like a pointer
Cast a pointer into an integer and it becomes the integer...
Cast a pointer into a struct and it becomes the struct...
A pointer can overflow... or can crash...
Be a pointer my friend
unkargherth
 
Posts: 29
Joined: Fri Apr 08, 2005 9:46 pm

Re: (Ruby) Pen alignment fails ?

Postby trogluddite » Sat Nov 24, 2012 10:53 pm

I would guess that is probably only works for closed shapes (i.e ones that you can fill with colour).
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: (Ruby) Pen alignment fails ?

Postby Nubeat7 » Sat Nov 24, 2012 11:20 pm

yes, i tried rect, round rect ellipse and pie - these are working but i didn`t check polygon and closed curve...
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: (Ruby) Pen alignment fails ?

Postby Nubeat7 » Sat Nov 24, 2012 11:39 pm

you could do a GraphicsPath - when you addArc it dont works but when you do close it with closeFigure it works!
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: (Ruby) Pen alignment fails ?

Postby unkargherth » Sun Nov 25, 2012 12:57 am

Probably my initial guest/understanding on what means "inside" was mistaken. I supposed that Inside meant "within the limits of the area/rectangle defined, not in relation to a closed "DRAWN" shape

I was expecting this "inside" feature free's me to do again and again the boring "Area resize" that we got in SM for years

My mistake... I admit
Free your memory, .. with a free(). Like a pointer
Cast a pointer into an integer and it becomes the integer...
Cast a pointer into a struct and it becomes the struct...
A pointer can overflow... or can crash...
Be a pointer my friend
unkargherth
 
Posts: 29
Joined: Fri Apr 08, 2005 9:46 pm


Return to General

Who is online

Users browsing this forum: No registered users and 80 guests