Monday, October 22, 2012

Non Uniform Scale

When I say non uniform scale I am not referring to the different axes having different scale factors, I mean scaling along a single axis non uniformly.  Towards that end I have added to my definition of an element (door, window, etc.) optional anchor points.  Given a target value, anything before the lower anchor point on a given axis is left in place, anything after is translated so that the furthest point (bounding box maximum) reaches the target, and anything in the middle gets LERPed along.
These elements have kept their original thin frames but have still grown to fill the target spaces defined by floor height and given (or default) widths.  However, not all of these are supposed to be of the full floor height according to the configuration file (unchanged since last post).  The next step is to let them rest at the base of the floor and move only the points within epsilon error of the top bounding box up to fill the remaining height.
Here windows with locked aspect ratios remain square as modeled and their top points fill in vertically.  The next mini-feature will be justification.  I want to be able to lift elements off of the floor baseline and then fill downwards as needed.

No comments:

Post a Comment