[求助]用程序怎么画样条曲线???
用程序怎么画样条曲线???谢谢·· 急急!! AcDbSplineint order = 3;<BR>pSrc = new AcDbSpline(arr, order);<BR>if (!pSrc)<BR>throw Acad::eOutOfMemory;<BR>assert(pSrc->degree() == order-1);<BR> 版主,能否给个例子?谢谢!! 上面不是给出了一小段程序么?其他你对者SDK应该没什么问题吧?
建议你自己先尝试看看. 行,谢谢,版主,]
<BR> EntMakeDbox::makeSpline()<BR>{<BR> acutPrintf(_T("\nTesting make of AcDbSpline..."));
AcGePoint3dArray vertices;<BR> int ptCount;
if (getPointArray(vertices, ptCount) != Acad::eOk)<BR> return;
AcDbSpline* spline = new AcDbSpline(vertices);<BR> spline->setDatabaseDefaults();<BR> ArxDbgUtils::transformToWcs(spline, acdbHostApplicationServices()->workingDatabase());<BR> ArxDbgUtils::addToCurrentSpaceAndClose(spline);<BR>}
我是我找到的一段程序
页:
[1]