AddEntity (class MKI_BUFFER) New in Version 2019.1

www.CAD6.com

C++ Syntax

bool

MKI_BUFFER::AddEntity(

 MKI_CONST_ENTITY_PTR f_pEntity,

 __int32 f_nEnumMode );

 

Adds a single object to a buffer used for hatching purposes or the point-in-area test.

 

Parameters

Entity

[MKI_CONST_ENTITY_PTR] Address of the entity to be added to the buffer.

EnumMode

[__int32] This value determines the way that entities are enumerates. It indicates what types of geometrical data the plug-in can handle. It can be a bit-wise OR combination of the following flags:

 

MKI_ENUM_LINES

The plug-in can only handle polylines / polygons. This is the basic mode which can be combined with one or more of the following modes to allow more complex geometric data.

 

MKI_ENUM_ARCS

The plug-in can handle circular arcs in polylines / polygons.

 

MKI_ENUM_BEZIERS

The plug-in can handle Bézier curves in polylines / polygons.

 

Return Value

Returns true if the object was added successfully, else false.

 

Comment

If you have finished adding objects to the buffer call the command MKI_BUFFER::Prepare which prepares the data stored in this buffer for further calculation.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH