|
AcDbPolyline *pPolyline=...;
double elevation = pPolyline->elevation();
AcGeVector3d zAxis = pPolyline::normal();
AcGeVector3d xAxis = zAxis.perpVector();
AcGeVector3d yAxis = (zAxis.crossProduct(xAxis)).normalize();
AcGePoint3d origin = AcGePoint3d::kOrigin + elevation * zAxis:
AcGeMatrix3d trans;
trans.setCoordSystem(origin, xAxis, yAxis, zAxis); |
|