Road Maker 5

If you have a cool piece of software to share, but you are not hosting it officially yet, please dump it in here. If you have code snippets that are useful, please donate!
beneficii
Earned some good credits
Earned some good credits
Posts: 107
Joined: Fri Nov 27, 2009 2:49 am

Road Maker 5

Postby beneficii » Wed Aug 13, 2014 2:29 am

This creates a cross-section/pattern of road and puts it in SVG format, which you can then do things like Generate Pattern from Path in Inkscape to create results like the below:

Image

Compiled with wxWidgets 3.0.1.

If anyone wants a guide on how to use it, just ask.

Also, for the output, copy the contents (except the document node, the one that starts with the !) to the SVG file open in a word file. You should get everything between <g ...> ... </g> and nothing else.
Attachments
roadmaker5.zip
Source. Edited with the latest wxFormBuilder (v. 3.5.0-beta). Requires XML library to link.
(18.41 KiB) Downloaded 119 times

beneficii
Earned some good credits
Earned some good credits
Posts: 107
Joined: Fri Nov 27, 2009 2:49 am

Re: Road Maker 5

Postby beneficii » Wed Aug 13, 2014 2:54 am

TODO: Making the periodicity, width, and length options be >= 0.

Just make sure not to use negative numbers for periodicity, width (actually, that might be OK), and length.

Manolo
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 579
Joined: Mon Apr 30, 2012 11:07 pm

Re: Road Maker 5

Postby Manolo » Wed Aug 13, 2014 4:40 pm

Hi beneficii
You call your app "roadmaker". Wich is your mind for this app? Ambitious? Something simple or very complex? Where do you think it should be profitable?

beneficii
Earned some good credits
Earned some good credits
Posts: 107
Joined: Fri Nov 27, 2009 2:49 am

Re: Road Maker 5

Postby beneficii » Wed Aug 13, 2014 5:46 pm

Manolo wrote:Hi beneficii
You call your app "roadmaker". Wich is your mind for this app? Ambitious? Something simple or very complex? Where do you think it should be profitable?


Something simple, just to create cross-sections/patterns that can be used in apps like Inkscape. I've always wanted to design my own road systems, but I suck at drawing (both on the computer and on paper), and I wanted to make sure to keep precise things like lane width as I designed the cross-patterns, so I made this program.

It's for my own special interest, basically. (I'm Autistic.)

beneficii
Earned some good credits
Earned some good credits
Posts: 107
Joined: Fri Nov 27, 2009 2:49 am

Re: Road Maker 5

Postby beneficii » Wed Aug 27, 2014 9:01 pm

I want to be able to create paths that can take the cross-sections easily. Like the below. I want to be able to set up the paths just right, so that when I set up each of the cross-sections, for the main road, when the road exists, the cloverleaf, everything. Here is an example interchange I wanted to work on:

Image

But this task is proving more daunting than I had thought, because I am so clumsy with drawing the paths, and of course the paths will need to be the correct distance from each other, so that when, say, the cloverleaf connects with the freeway, it doesn't look all jacked up.


Return to “The Code Dump”

Who is online

Users browsing this forum: No registered users and 1 guest