Vector Curve Designer (RAD Tool)

Share your advanced PureBasic knowledge/code with the community.
wombats
Enthusiast
Enthusiast
Posts: 662
Joined: Thu Dec 29, 2011 5:03 pm

Re: Vector Curve Designer (RAD Tool)

Post by wombats »

netmaestro wrote:I didn't even notice I was breaking cross-platform with that, but there it is right there, an API call. I've surrounded all relevant code parts with CompilerIf directives so the button and procedure only show on Windows for now but I'll ask if anyone can show how to do it on Mac and Linux so all can have the functionality. Thanks for the heads-up!
Also, I found a bug. If you create a new source in the PB IDE after launching the tool and then try to insert the vector code, the IDE will crash.

Edited to remove incorrect information.
Last edited by wombats on Sun May 24, 2020 1:00 pm, edited 2 times in total.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8422
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Vector Curve Designer (RAD Tool)

Post by netmaestro »

wombats wrote:Also, I found a bug. If you create a new source in the PB IDE after launching the tool and then try to insert the vector code, the IDE will crash.
Thanks, that's an important find. Fixed, code updated in first post.
BERESHEIT
Fred
Administrator
Administrator
Posts: 16581
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Vector Curve Designer (RAD Tool)

Post by Fred »

That's a very cool tool !
wombats
Enthusiast
Enthusiast
Posts: 662
Joined: Thu Dec 29, 2011 5:03 pm

Re: Vector Curve Designer (RAD Tool)

Post by wombats »

Minor issue, but Protected icoInf.ICONINFO in CreateCursor() should be moved to within the CompilerIf for Windows as ICONINFO isn't defined on macOS.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8422
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Vector Curve Designer (RAD Tool)

Post by netmaestro »

@wombats, thanks for the headsup on that, it's changed and code in first post is updated

Thanks to all for the kind words, I enjoyed making this very much. I made a whole chess set the hard way before it dawned on me that something like this was needed. A few bug reports now, some fixes and it'll be good to go.

I wish Trond was still around, then we'd see some bug reports :shock:
BERESHEIT
dige
Addict
Addict
Posts: 1240
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: Vector Curve Designer (RAD Tool)

Post by dige »

@Netmaestro: thx for that great tool!
It would be great if you could add the subsequent selection and editing to your code, provided by Michael Vogel.

Kind regards

Dige
"Daddy, I'll run faster, then it is not so far..."
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 617
Joined: Mon May 09, 2011 9:36 am

Re: Vector Curve Designer (RAD Tool)

Post by VB6_to_PBx »

netmaestro ... awesome Vector Curve Designer !!!

could you add this feature :
a lite-colored [optional] Grid overlay , which would help to align Vector start and end points
Grid square sizes could be set to User's choice, would also be great , even just a fixed Grid square size is OK
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Vector Curve Designer (RAD Tool)

Post by Kuron »

@Lloyd: This is one of those tools, that now that you have it, you do not know how you lived without it. This is extremely useful and a must-have for anybody's toolbox.

Excellent job and very well done!

Above and beyond all else, Thank You for all of your hard work on this.
ludoke
Enthusiast
Enthusiast
Posts: 153
Joined: Fri Jul 08, 2016 5:35 pm
Location: Essen (Belgium)

Re: Vector Curve Designer (RAD Tool)

Post by ludoke »

fantastic, very interesting code for me, it is now easy to make gcode so that you can mill it with a router
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: Vector Curve Designer (RAD Tool)

Post by Lunasole »

Really nice idea 8) Thanks
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8422
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Vector Curve Designer (RAD Tool)

Post by netmaestro »

Thank you all for the nice responses. Unfortunately I am unable to reply. Fred said it was a cool tool and right then and there I died and went to heaven.
BERESHEIT
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4622
Joined: Sun Apr 12, 2009 6:27 am

Re: Vector Curve Designer (RAD Tool)

Post by RASHAD »

That is not excuse NM :mrgreen:
Egypt my love
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8422
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Vector Curve Designer (RAD Tool)

Post by netmaestro »

Just kidding of course. But I do appreciate that people are getting some use out of it.
BERESHEIT
Mindphazer
Enthusiast
Enthusiast
Posts: 340
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Vector Curve Designer (RAD Tool)

Post by Mindphazer »

RASHAD wrote:That is not excuse NM :mrgreen:
Indeed !
I can't believe there is no computer with PB installed in heaven :mrgreen:
MacBook Pro 14" M1 Pro - 16 Gb - MacOS 14 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
Amundo
Enthusiast
Enthusiast
Posts: 191
Joined: Thu Feb 16, 2006 1:41 am
Location: New Zealand

Re: Vector Curve Designer (RAD Tool)

Post by Amundo »

Sorry for the necro post, but just have to say "Thank You" for this!
Win8.1, PB5.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes
Post Reply