SE_shape_generate_rectangle |
Generates a polygon shape in the form of a rectangle, based on the supplied lower-left and upper-right points.
LONG SE_shape_generate_rectangle (SE_ENVELOPE *rect, SE_SHAPE tgt_shape);
rect | A pointer to an SE_ENVELOPE structure defining the rectangle for the new shape |
tgt_shape | A handle to an active shape object, returned as the new shape |
Generates a polygon shape in the form of a rectangle, based on the supplied lower-left and upper-right points.
typedef struct {
LFLOAT minx;
LFLOAT miny;
LFLOAT maxx;
LFLOAT maxy;
} SE_ENVELOPE;
SE_SUCCESS
SE_COORD_OUT_OF_BOUNDS
SE_INVALID_ENVELOPE
SE_INVALID_POINTER
SE_INVALID_SHAPE
SE_INVALID_SHAPE_OBJECT
SE_OUT_OF_CLMEM
• Ignores any CAD data in the source shape, and removes any CAD data in the target shape.