MKI_CalcBezier (Calculation) Changed in Version 2021.0

www.CAD6.com

C++ Syntax

__int32

MKI_CalcBezier(

 MKI_CONST_GEO_OBJECT_REF f_rGeoObj,

 MKI_POINTDATA_PTR f_pResults );

 

Converts a given standard object into a sequence of Bézier curves, if possible.

 

Parameters

GeoObj

[MKI_CONST_GEO_OBJECT_REF] Standard object which shall be converted into a sequence of Bézier curves. Following standard object types are supported (see MKI_OBJ_*):

 

MKI_OBJ_CIRCLE

MKI_OBJ_ARC

MKI_OBJ_SECTOR

MKI_OBJ_SEGMENT

MKI_OBJ_ELLIPSE

MKI_OBJ_EARC

MKI_OBJ_ESECTOR

MKI_OBJ_ESEGMENT

MKI_OBJ_GEOCIRCLE

MKI_OBJ_GEOARC

MKI_OBJ_GEOSECTOR

MKI_OBJ_GEOSEGMENT

MKI_OBJ_GEOELLIPSE

MKI_OBJ_GEOEARC

MKI_OBJ_GEOESECTOR

MKI_OBJ_GEOESEGMENT

Results

[MKI_POINTDATA_PTR] Address of point buffer to receive the point coordinates. One start point plus three points per calculated Bézier curve. Point coordinates and types will be initialised, the other values not. Allow at least 32 points.

 

Return Value

Returns the number of created points (1, 4, 7, 10, 13, ..., 25) if successful. Otherwise, 0 is returned.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH