天气与日历 切换到窄版

 找回密码
 立即注册
中国膜结构网
十大进口膜材评选 十大国产膜材评选 十大膜结构设计评选 十大膜结构公司评选
查看: 71|回复: 0

arx拷贝并炸开分解

[复制链接]

该用户从未签到

主题

0

回帖

2912

积分

管理员

积分
2912
发表于 2024-6-22 09:46:18 | 显示全部楼层 |阅读模式
Adesk::Boolean CHollowcore::worldDraw (AcGiWorldDraw *mode)
{
assertReadEnabled () ;

AcGeMatrix3d mMove;
mMove.setTranslation(m_ptOrigin.asVector());

AcGeMatrix3d mRotation;
mRotation.setToRotation(m_dRotation, AcGeVector3d(0,0,1), AcGePoint3d(0,0,0));

AcGeScale3d mScaling(m_vScaling.x, m_vScaling.y, m_vScaling.z);
AcGeMatrix3d matScaling;
mScaling.getMatrix(matScaling);

mode->geometry().pushModelTransform(mMove);
mode->geometry().pushModelTransform(mRotation);
mode->geometry().pushModelTransform(matScaling);

AcDbVoidPtrArray edges;
if(m_rgnBody.explode(edges) == Acad::eOk)
{
while(edges.length() > 0)
{
AcDbObject* pObj = static_cast(edges.at(0));
if(pObj->isKindOf(AcDbLine::desc()))
{
AcDbLine* pLine = static_cast(pObj);
pLine->worldDraw(mode);
}
else if(pObj->isKindOf(AcDbCircle::desc()))
{
AcDbCircle* pCircle = static_cast(pObj);
pCircle->worldDraw(mode);
}
else if(pObj->isKindOf(AcDbArc::desc()))
{
AcDbArc* pArc = static_cast(pObj);
pArc->worldDraw(mode);
}

delete pObj;
edges.removeAt(0);
}

if(m_bShowCores)
DrawCores(mode);
}

mode->geometry().popModelTransform();
mode->geometry().popModelTransform();
mode->geometry().popModelTransform();

return Acad::eOk;
//(AcDbEntity::worldDraw (mode)) ;
}

 

 

 

 

arx拷贝并炸开分解
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|中国膜结构网|中国膜结构协会|进口膜材|国产膜材|ETFE|PVDF|PTFE|设计|施工|安装|车棚|看台|污水池|中国膜结构网_中国空间膜结构协会

GMT+8, 2024-11-1 09:23 , Processed in 0.141600 second(s), 26 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表