|
高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】problem with 3dsolid
problem with 3dsolid
problem with 3dsolid
hello,
attached is drawing containing problematic 3dsolid object. somehow holes in the 3dsolid object are not shown correctly.
i have tried to use two different options while handling this object:
option #1:
...
oddb3dsolidptr psolid;
psolid = pent; // pent is oddbentityptr*
// explode to 3d polyface mesh
odrxobjectptrarray objectarray;
psolid->explodegeometry(objectarray);
...
option #2:
...
odgicontextdumper ctx(pent->database());
// odgiworlddrawdumper is inherited from odstaticrxobject<odgiworlddraw>
odgiworlddrawdumper gd(pdwgmanager, pent, psymbol);
gd.setcontext(&ctx);
pent->worlddraw(&gd);
...
do you have any ideas what might be wrong?
regards,
antti
attached files
hi,
it is limitaton of acis renderer. renderer sometimes skip holes. you can change normaltolerance parameter of triangulation params to 1. (default 15), it will fix problem in mfcapp.
|