Alloc (class MKI_BUFFER) New in Version 2019.1

www.CAD6.com

C++ Syntax

bool

MKI_BUFFER::Alloc(

 __int32 f_nSize,

 bool f_fClosedOnly );

 

Allocates a buffer used for hatching purposes or the point-in-area test.

 

Parameters

Size

[__int32] Desired size of the buffer. If Size is positive, it determines the number of elements the buffer can store. If Size is negative, it determines multiples of the internal buffer standard size. In most cases, Size can be set to either -1 (allocating the standard buffer size) or to -2 (if an extremely large buffer is required).

ClosedOnly

[bool] If set to true, the buffer will only accept "closed" objects, i.e. objects that have a closed outline like circles, ellipses, surfaces, etc.

 

Return Value

Returns true if the buffer was allocated successfully, else false.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH