U,d line representation
Closed this issue · 1 comments
Lang writes in Origami Constructions the benefits for using U,d to store lines where U is the normal vector of the line (not the line's vector), and d is a scalar that is the minimum distance of the line to the origin.
I just did some sketches involving thousands of Axiom constructions and realizing that the current system is so slow with this type of work that I would even consider re-writing the current system, which would be a lot of work, to structure lines in the way Lang describes.
before this is attempted, let's sketch out the changes needed in this thread.
update: {vector, origin}
form is still plenty useful, for example it allows for 3D lines and 2D rays and segments. porting the entire library away from this form was decided against.
U,d parameterization (called "normal-distance" now) was added 2 years ago and has been working great. Origami library uses normal-distance when possible but it's still mostly only in the axiom calculations. pretty much the entire library still uses vector origin form.