- UID
- 239519
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2005-4-7
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
// Create a single face based on the imput points
AcDbObjectId CEUFUtility::CreateFace(
AcDbBlockTableRecord *pBlockTableRecord,
const AcGePoint3d pt0,
const AcGePoint3d pt1,
const AcGePoint3d pt2,
const AcGePoint3d pt3)
{
//AcDbBlockTable *pBlockTable;
//acdbHostApplicationServices()->workingDatabase()->getSymbolTable(pBlockTable, AcDb::kForRead);
//
//AcDbBlockTableRecord *pBlockTableRecord;
//pBlockTable->getAt(ACDB_MODEL_SPACE, pBlockTableRecord,AcDb::kForWrite);
//pBlockTable->close();
// define the point
//AcGePoint3d pt1 = AcGePoint3d(0,0,0);
//AcGePoint3d pt2 = AcGePoint3d(1,0,0);
//AcGePoint3d pt3 = AcGePoint3d(1,1,0);
//AcGePoint3d pt4 = AcGePoint3d(0,1,0);
//// create the face
AcDbFace *pFace = new AcDbFace(pt0,pt1,pt2,pt3);
// append the entity to the database
AcDbObjectId IdFace;
pBlockTableRecord->appendAcDbEntity(IdFace, pFace);
pFace->setColorIndex (1);
//pBlockTableRecord->close();
pFace->close();
//
return IdFace;
} |
|