CadAddPolygon
Closed, colour-filled polygon from the vertex buffer (Vecad CadAddPolygon).
YuHandle CadAddPolygon (
YuHandle hDwg,
std::int32_t Color,
std::int32_t bBorder
);
Parameters
- hDwg (YuHandle)
- Handle to the drawing, as returned by
CadCreate. - Color (std::int32_t)
- Colour value (see the function description: ACI palette index 1-255, or a
COLORREF0x00BBGGRR). - bBorder (std::int32_t)
- Boolean flag: nonzero = true / enabled, 0 = false / disabled.
Return Value
Nonzero (TRUE) on success, 0 (FALSE) on failure.
Remarks
The explicit Color wins over the document's current colour, so this adds inline rather than through add_and_register_ (which would stamp cur_color).