Box-pleating designing program

General discussion about Origami, Papers, Diagramming, ...
Post Reply
Kicker
Newbie
Posts: 45
Joined: July 26th, 2013, 1:34 pm

Box-pleating designing program

Post by Kicker »

I've been working on this for a week now.

The features I want to implement are :
- square packing
- cp generation
- advanced BP techniques (level shifters, pythagorean stretches, combs, ...)
- folded base visualization
- hex pleating

For the moment, only the square packing works, and it has a few bugs I'm still trying to fix.
But I've had positive feedbacks on it, so I think it's worth giving a link for it already :)

http://h3md.free.fr/travaux/BPMaker/index.html
It should be easy to use.
You have a button to draw a new grid, whith an input for the size.
You can add polygons the same way you make a rectangle with Paint.
You can extend the edges by drag n' dropping them, and thus make pretty much any shape.
You can move the circles inside the polygon (useless for the moment, will serve for CP generation), you can also increase its size by clicking it, or decrease its size by clicking while holding the shift key.
You can add rivers like you would draw a line in Paint.
There's also an input for the width.
You can extend the rivers by drag n' dropping the green parts after selecting them.
You can delete stuff with the Delete key.

Don't hesitate to share any feedback/criticism/suggestion.
phillipcurl
Moderator
Posts: 1657
Joined: October 25th, 2011, 2:51 pm
Location: Senoia, GA
Contact:

Re: Box-pleating designing program

Post by phillipcurl »

Dude. This is an awesome idea! I have been thinking of writing a program like this for a while, I just haven't found the time. What are you using to write it?
flickr gallery
Youtube channel
Phillip
Kicker
Newbie
Posts: 45
Joined: July 26th, 2013, 1:34 pm

Re: Box-pleating designing program

Post by Kicker »

Flash
I'm a Facebook game developer, so I'm very confortable with it :)
User avatar
JamesOrigami490
Super Member
Posts: 131
Joined: August 21st, 2013, 12:18 am
Location: Athens, Greece
Contact:

Re: Box-pleating designing program

Post by JamesOrigami490 »

Wow, thanks! I'll definitely bookmark this! It's amazing!
Unfortunately, I have no experience with making BP-Cp's. I'll have to read that chapter in ODS2 again. This will make my life so much easier!
One question--How do you delete a rectangle?
Hi! I'm James, in 7th grade, and an avid paperfolder/writer.
My imgur
My Website
Rickygami
Newbie
Posts: 32
Joined: June 26th, 2012, 10:20 am
Location: England

Re: Box-pleating designing program

Post by Rickygami »

I really like this! If the other features you suggest are implemented it could be awesome! I think it would be nice if the tool you just used was still selected after being used (after drawing a box you must select the circle thing on the left again to make a new one) I would prefer it if you kept the tool and could stop using it with escape. Also perhaps if there was an option to draw out a river which follows your cursor? I think this could speed up box pleated design quite a lot :)
Kicker
Newbie
Posts: 45
Joined: July 26th, 2013, 1:34 pm

Re: Box-pleating designing program

Post by Kicker »

Thanks for your support, it really encourages me to keep up :)
I uploaded a new version today which fixes many bugs.
I'm currently working on the CP generation.
JamesOrigami490 wrote:One question--How do you delete a rectangle?
Select it, then press the DEL key :)
Rickygami wrote:I think it would be nice if the tool you just used was still selected after being used
I'll do something about it, thanks for pointing it out.
Rickygami wrote:Also perhaps if there was an option to draw out a river which follows your cursor?
For several reasons I'm not going to detail, this is actually a bad idea.
But feel free to continue making any suggestion that may come to your mind :)
User avatar
JamesOrigami490
Super Member
Posts: 131
Joined: August 21st, 2013, 12:18 am
Location: Athens, Greece
Contact:

Re: Box-pleating designing program

Post by JamesOrigami490 »

Thanks Kicker! I tried that, and it turned out that the problem is that Mac's equivalent to the PC "Delete" key is "fn+delete", not just "delete".
Hi! I'm James, in 7th grade, and an avid paperfolder/writer.
My imgur
My Website
Kicker
Newbie
Posts: 45
Joined: July 26th, 2013, 1:34 pm

Re: Box-pleating designing program

Post by Kicker »

http://h3md.free.fr/travaux/BPMaker/index.html

I uploaded a new version which fixes a few remaining bugs, improves the zone selection and dragging, and allows to creates several polygons in a row, by holding the shift key (as requested by Rickygami).
The CP generation is still work in progress (though it's well on the way).
This is mainly because tracing the straight skeleton for any non-convex polygon is not trivial :P

It also occured to me that with my way of making corners, some rivers of constant width are impossible to trace (at least not easily); a fix for this will come along with the CP generation feature.
Kicker
Newbie
Posts: 45
Joined: July 26th, 2013, 1:34 pm

Re: Box-pleating designing program

Post by Kicker »

Here's a glimpse of what the next feature currently looks like :
Image
It only works for very simple polygons, though.
It's still very glitchy, and when I try crazy shapes, it fails miserably... :?
I'm far from finished, but it already looks pretty cool :)

Also, shorter URL : http://ho.io/BPMaker
Kicker
Newbie
Posts: 45
Joined: July 26th, 2013, 1:34 pm

Re: Box-pleating designing program

Post by Kicker »

I won't be able to work on the software this weekend, so I uploaded an early version of the CP generator.
For the moment, only hinge and ridge creases are visible, and this :
Image
...doesn't work... yet :?

I'll need to do something to make it easier to shove polygons in corners and edges... right now, it's a pain is the ass :?
Kicker
Newbie
Posts: 45
Joined: July 26th, 2013, 1:34 pm

Re: Box-pleating designing program

Post by Kicker »

Ok, I'm currently working on the axial lines, and I have a problem :

I'm not sure what should happen in this case :
Image
Should I do this :
Image
Or this ? :
Image
(I'm more confident with this one)

ODS doesn't say anything about this case, but it looks a lot like the Y case...
I know it can happen, but I'm not sure what to do.
I also need to treat this similar case :
Image
Again, my guts are telling me to do this :
Image
But I'm not sure...

Thanks in advance to anyone who can help me.
Kicker
Newbie
Posts: 45
Joined: July 26th, 2013, 1:34 pm

Re: Box-pleating designing program

Post by Kicker »

http://ho.io/BPMaker

The CP generation is out and working !
The level lines are still missing but will come very soon.
I've barely had the time to test it though, so please let me know if you find any bugs.

Enjoy ! :)

edit : I added a useful option : when you hold the ctrl key, the selection rectangle, the square you clicked is not considered a corner of the selection, but the center of it.
Thus, you can know create polygons directly in a corner or an edge, instead of having to create them inside the grid, and then move their center to the corner (or the edge).
Kicker
Newbie
Posts: 45
Joined: July 26th, 2013, 1:34 pm

Re: Box-pleating designing program

Post by Kicker »

New version online, with lots of fixes for lots of stuff, including CP generation for ridge and axial creases (non-axial contour lines coming soon).
Here's an example of what can be done :
Image
User avatar
Razzmatazz
Forum Sensei
Posts: 892
Joined: March 20th, 2009, 6:25 pm
Location: Canada

Re: Box-pleating designing program

Post by Razzmatazz »

Pretty chill.
Glad to see someone is working on something like this. Of course there will be a point where complexity breaks past possibility, but you seem to have the basics down and I don't doubt you can expand very much.

Great job.
User avatar
Foldtastic
Junior Member
Posts: 99
Joined: October 8th, 2014, 5:34 pm
Location: New York, NY
Contact:

Re: Box-pleating designing program

Post by Foldtastic »

This is awesome!
Post Reply