Closed Objects.-
The relation of closed objects in Metagraf is not a short one. In what follows, all of them will be mentioned. As a basis, the closed objects do not accept arrows.
Rectangle. The rectangle in Metagraf is a standard one. Drawn using the two extreme points defining it, the "philosophy" of Mg5 is to maintain it as a rectangle in any position, after rotation and scaling (although this is not totally true).
Roundrectangle. Just a rectangle with rounded corners. There is a default radius for this "rounding" that can be modified very simply.
Ellipse. It is defined in the same way as the rectangle, being the width and the height of the rectangle, the principal axis of the ellipse. Nothing special should be mentioned.
Polygon. This object is the equivalent to the polyline, but closing it trough the union of the first and last point. Any kind of polygon can be draw although to draw a perfect regular, not common polygon can be tricky, For that reason, in Mg5 it has been added the
Regular polygon. This object permits to draw any regular polygon with any number of sides. Usually defined by two points, the others are obtained according to its definition at drawing time.
Sector. Same as the angle object closing the arc trough the drawing of the two delimiter radius.
Arch. Same as before but closing the arc drawing a line between his extreme points.
Circle. Just a circle defined by two points but with one peculiarity: The object Circle cannot change its "circle condition". No horizontal-only scale or vertical-only only scale of this object is allowed. It is possible always to draw a circle with the Ellipse object that will accept this kind of transformation.
Closed Bezier. A bezier curve that closes itself taking as end point the first one. If drawn with an even number of points before closing, it will maintain the continuity on the tangents. If with an odd number, it will appear a corner at the closure point.
Closed Spline. For closing the standard open object mentioned before and maintain the curvature continuity, the last three points should be the same as the three first. This is what is done in Mg5.
Closed Nurb. Similar to the bezier but with much more difficulties to include in Mg5, it should be closed only if there are 4, 8, 12.... number of points created. So, multiples of four.
Madrid, January 2006 |
|