Category: Help Offered
From: Adeluc
Date: 21 Oct 2002
Time: 10:51:04
When you add a polygon, DecoTech keeps it in memory as a rectangular container that includes any shape (diamond, circle, …). The top/left and bottom/right coordinates of the rectangular container are stored as a distance from fixed positions on the surface. These fixed positions are calculated as a percentage of the surface’s width and height. So when you resize the surface, all the polygons can adapt themselves.
Below “Points Relative to:”, the Left/Top/Right/Bottom fields refer to the sides of the rectangular container. The value at right indicates a percentage (ex.: 0 = 0%, 0.25 = 25%, 1 = 100%) of the surface width (for Left/Right) or height (for Top/Bottom).
Example:

- Left side of the rectangular container will always be at a fixed distance from the right side of the surface because (1.0 x Surface’s Width) = position of the right side of the surface.
- Top side of the rectangular container will always be at a fixed distance from the top side of the surface because (0.0 x Surface’s Height) = position of the top side of the surface.
- Right side of the rectangular container will always be at a fixed distance from the right side of the surface because (1.0 x Surface’s Width) = position of the right side of the surface.
- Bottom side of the rectangular container will always be at a fixed distance from the top side of the surface because (0.0 x Surface’s Height) = position of the top side of the surface.
The horizontal and vertical arrows are selected to enable horizontal and vertical toggling of the polygon when the target surface is toggled horizontally and /or vertically, like in the case of a right door or an upper door. So when doing a door style, always assume that the door on which you are drawing is a lower-left door (the handle must be in top/right).
Finally, in your case, if you want to put a round handle of 2x4 inches (width x height) at 3 inches from top and 1 inch from the right of the door and want a fixed handle size whatever if the door size changes, set everything like the screenshot.
Adjust the Starting Point (button in column #1, row #3) to top/right so the (0,0) will be at top/right. Put the first click at (x=1,y=3) and the second click at (x=2,y=4). If you question the handle (button in column #2, row #2) you will see the Offsets (OffsetX1/OffsetY1 for Left/Top and OffsetX2/OffsetY2 for Right/Bottom) of the rectangular container.
So for a 24x36 inches lower-left door, the coordinates of the rectangular container will be
:
(1.0 x 24.0 – 3.0, 0.0 x 36.0 + 3.0) and
(1.0 x 24.0 – 1.0, 0.0 x 36.0 + 7) equal
(21.0, 3.0) and (23.0, 7.0).
| Last changed: March 28, 2008 |