Print at Jan 21, 2026, 12:44:36 AM

Posted by nathanjshaffer at Aug 1, 2022, 4:14:12 PM
Patch submission
I'm not sure where is the best place to submit a patch. I have been working on a modification that I think will be useful. This program would benefit greatly from a constraint solver. This would allow for things like locking walls to a certain length/angle or having dimensions that are attached to walls and grow with the wall.

To work towards this, I have made a pretty deep rewrite that does a couple things in this patch.

1. float arrays have been replaced by a Vector2D class. This allows for simpler code and puts a lot of the point math into a library. This will also be important for implementing a constraint solver as the algorithm should deal with points, not lines.

2. walls ends are connected to a wallpoint instead of directly to a wall. Moving a point, moves the connected walls. This allows more than 2 walls to be joined at a point.

3. I made the dimension help lines appear during dragging a wall. This helps with better placement based on wall length

This patch allowed me to learn how the code was laid out and to simplify a lot of things.. I don't see an file upload, so I will just add it as a post.