遇到一个问题,请大家帮个忙,谢谢
我想画一个三维空间的线框,类似长方体的12条边组成的一个空间盒子,现在我已知该盒子的8个顶点坐标,请问操作才能画出该空间盒子,请大家指点,谢谢 <p>简单的写一下.取其中一个面的四点,厚度取四点以外的点到这个平面距离</p><p>AcDbObjectId AddEntity(AcDbEntity * pEnt)<br/>{<br/> AcDbBlockTable *pBlockTable = NULL;<br/> acdbHostApplicationServices()->workingDatabase()<br/> ->getSymbolTable(pBlockTable, AcDb::kForRead);<br/> assert(pBlockTable);<br/> AcDbBlockTableRecord *pBlockTableRecord = NULL;<br/> pBlockTable->getAt(ACDB_MODEL_SPACE, pBlockTableRecord,<br/> AcDb::kForWrite);<br/> assert(pBlockTableRecord);<br/> pBlockTable->close();</p><p> AcDbObjectId lineId;<br/> pBlockTableRecord->appendAcDbEntity(lineId, pEnt);</p><p> pBlockTableRecord->close();<br/> return lineId;<br/>}</p><p>void test()<br/>{<br/> AcGePoint3d pt1(0,0,0);<br/> AcGePoint3d pt2(100,0,0);<br/> AcGePoint3d pt3(0,100,0);<br/> AcGePoint3d pt4(100,100,0);</p><p> AcDbSolid *sold = new AcDbSolid(pt1,pt2,pt3,pt4);<br/> sold->setThickness(100);<br/> AddEntity(sold);<br/> sold->close(); <br/>}</p> <p>谢谢,楼上,我再研究研究</p>
页:
[1]