![]() |
Extended Object 32 "Bézier Curves, Polyline" (Entity Type "Extended Object") |
www.CAD6.com |
The extended object "Bézier Curves, Polyline" is defined by CAD6studio and CAD6industrie.
Creation of this extended object is not supported in CAD6starter and CAD6engine Eco! If already created, it can be displayed and modified generally, but not modified parametrically.
Data Block SequenceData Block 1000( Waviness ) Data Block 1001( Endstyle ) Data Block 001( Start )
For each segmentData Block 002( End )
ParametersWaviness [double] Waviness of the spline. Allowed value are 0 <= Waviness <= 1.0. A value of 0.0 results in a straight polyline, a value of 1.0 results in a very curvy spline. Endstyle [__int32] Determines how the curve shall approach its end points. Possible values are:
0 The curve will approach its ends tangentially, i.e. the first and last pivot point will be on the respective connection of end point and adjacent point.
1 The curve will approach its ends symmetrically, i.e. the first and the last pivot point will be symmetrical to the respective other pivot point of that segment.
2 The curve will approach its ends linear, i.e. the first and the last pivot point will be on the respective end point. Start [MKI_POINT] Start point of the first Bézier curve segment. End [MKI_POINT] End point of one Bézier curve segment.
Interface Command SequenceMKI_ExtOpen, OwnerID = MKI_DB_OWNER_MK, Type = MKI_OBJ_EXT_BEZIER_POLY, Flag = MKI_EXTFLAG_CURVE MKI_ExtAddDouble, Type = 1000 MKI_ExtAddInt32, Type = 1001 MKI_ExtAddPoint, Type = MKI_DB_POINT_START
For each segment: MKI_ExtAddPoint, Type = MKI_DB_POINT_END
Use code like the following to parse the data blocks of this entity in memory:
MKI_BLOCK_ENUM b1000( f_pExt ), b1001( f_pExt ), b1( f_pExt ); b1001.SetNext( b1000 ); b1.SetNext( b1001 );
Followed by a loop running through all data blocks and copying the points into an array.
|
CAD6interface 2025.1 - Copyright 2025 Malz++Kassner® GmbH