![]() |
Object 15 "Ellipse" (Entity Type "Object") Changed in Version 2021.0 |
www.CAD6.com |
Having the center-point C and the two vectors V1 and V2 (vector from the center-point to the respective vector end-point), the points P on such an ellipse are determined by the following equation:
Point = Center + Vector1 × sin( ß ) + Vector2 × cos( ß ) (0 <= ß < 2pi)
The resulting ellipse can be any type of ellipse, rectangular as well as arbitrary.
The drawing orientation of the ellipse is determined by the position of the vectors relative to each other.
Data Block SequenceData Block 003( Center ) Data Block 006( Vector1 ) Data Block 006( Vector2 )
ParametersCenter [MKI_POINT] Center point of the spiral. Vector1 [MKI_POINT] First vector of the ellipse. Vector2 [MKI_POINT] Second vector of the ellipse.
Attributes New in Version 2021.0An ellipse may contain attribute data blocks (see MKI_BLOCK_ATTRIBUTE) of types "local", "outline", and "point". Their position in the list of data blocks must be as follows:
The total number of attributes of each type (local, outline, point) per respective element (entity, outline, and point) is limited to MKI_ATTRIBS_PER_OBJECT.
Interface Command SequenceMKI_ObjectOpen, Type = MKI_OBJ_ELLIPSE MKI_ObjectAddPoint, Type = MKI_DB_POINT_CENTER MKI_ObjectAddPoint, Type = MKI_DB_POINT_VECTOR MKI_ObjectAddPoint, Type = MKI_DB_POINT_VECTOR
Use the MKI_PARSE_OBJ_ELLIPSE class to parse the data blocks of such an object in memory.
|
CAD6interface 2025.1 - Copyright 2025 Malz++Kassner® GmbH