Functions | |
int | mdlArc_extract (DPoint3dP startEndPts, double *start, double *sweep, double *axis1, double *axis2, RotMatrixP rotMatrix, DPoint3dP center, MSElementCP in) |
Extracts information from a MicroStation arc or ellipse element, in. More... | |
int | mdlCone_extract (double *topRadius, double *bottomRadius, DPoint3dP topCenter, DPoint3dP bottomCenter, RotMatrixP rotMatrix, MSElementCP in) |
Extracts the information from a cone element, cone. More... | |
int | mdlCone_extractDEllipse3ds (DEllipse3d *pTop, DEllipse3d *pBottom, MSElementP pElement) |
Extracts ellipse elements that represent the top and bottom of the specified cone element. More... | |
int | mdlLinear_extract (DPoint3dP points, int *numVerts, MSElementCP linearElm, DgnModelRefP modelRef) |
Extracts an array of coordinates from a linear element. More... | |
int | mdlLinear_getPointCount (MSElementCP linearElm) |
Gets the number of vertices in the specified element. More... | |
int | mdlLinear_getClosestSegment (DSegment3d *segment, DPoint3dP point, MSElementP linearElm) |
Gets the closest line segment in the given linear element. More... | |
int mdlArc_extract | ( | DPoint3dP | startEndPts, |
double * | start, | ||
double * | sweep, | ||
double * | axis1, | ||
double * | axis2, | ||
RotMatrixP | rotMatrix, | ||
DPoint3dP | center, | ||
MSElementCP | in | ||
) |
Extracts information from a MicroStation arc or
ellipse element, in.
The coordinates and rotation matrix are transformed into the current coordinate system.
[out] | startEndPts | points to an array of two Dpoint3ds to receive the coordinates of the arc's starting and ending points. If in is an ellipse, the two coordinates are the same. If these coordinates are not needed, pass NULL for startEndPts. |
[out] | start | points to a double to receive the sweep angle in radians. |
[out] | sweep | points to a double to receive the sweep angle in radians. The sweep will be 2*PI for ellipses. |
[out] | axis1 | points to a double to receive the arc or ellipse's primary axis |
[out] | axis2 | points to a double to receive the arc or ellipse's secondary axis |
[out] | rotMatrix | points to a rotation matrix describing the arc or ellipse's rotation. |
[out] | center | points to a DPoint3d structure to receive the coordinates of the arc or ellipse's center. |
[in] | in | the arc element to extract. |
int mdlCone_extract | ( | double * | topRadius, |
double * | bottomRadius, | ||
DPoint3dP | topCenter, | ||
DPoint3dP | bottomCenter, | ||
RotMatrixP | rotMatrix, | ||
MSElementCP | in | ||
) |
Extracts the information from a cone element, cone.
If any parameters are NULL, this function does not attempt to fill them in.
[out] | topRadius | the radius for the cone's top |
[out] | bottomRadius | the radius for the cone's bottom |
[out] | topCenter | the cone's top center coordinates |
[out] | bottomCenter | the cone's bottom center coordinates |
[out] | rotMatrix | is the orientation of the cone's top and bottom. |
[in] | in | the cone element to extract. |
int mdlCone_extractDEllipse3ds | ( | DEllipse3d * | pTop, |
DEllipse3d * | pBottom, | ||
MSElementP | pElement | ||
) |
Extracts ellipse elements that represent the top and bottom of the specified cone element.
[out] | pTop | a pointer to the ellipse at the top of the cone element |
[out] | pBottom | a pointer to the ellipse at the bottom of the cone element |
[in] | pElement | the cone element to extract the ellipses from |
int mdlLinear_extract | ( | DPoint3dP | points, |
int * | numVerts, | ||
MSElementCP | linearElm, | ||
DgnModelRefP | modelRef | ||
) |
Extracts an array of coordinates from a linear element.
The coordinates are transformed into the current coordinate system if one exists.
[out] | points | vertices, NULL can be passed to return only the vertex count. |
[out] | numVerts | the number of vertices in points. Sufficient memory should be allocated in points to receive MAX_VERTICES vertices. |
[in] | linearElm | linear element |
[in] | modelRef | source modelRef for the element. |
int mdlLinear_getClosestSegment | ( | DSegment3d * | segment, |
DPoint3dP | point, | ||
MSElementP | linearElm | ||
) |
Gets the closest line segment in the given linear element.
[out] | segment | endpoints of segment closest to point |
[in,out] | point | on input, point to test. On output, the closest point. |
[in] | linearElm | linear element |
int mdlLinear_getPointCount | ( | MSElementCP | linearElm | ) |
Gets the number of vertices in the specified element.
[in] | linearElm | linear element |