查看单个帖子
旧 2009-05-07, 05:58 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】use Odbrbrepfacetraverser

use odbrbrepfacetraverser
use odbrbrepfacetraverser
void import::createentity( oddb3dsolid* pent )
{
odbrbrep brep;
pent->brep( brep );fff">
odbrbrepfacetraverser bft( brep );
while( !bft.done() )
{
odbrface face = bft.getface();
bool boldir = face.getorienttosurface();
}
}
build time has error, why ?
error: cannot convert from 'odbrbrep' to 'const odbrbrepfacetraverser &'
last edited by skunkworks; 10th july 2007 at 05:05 pmfff">.
odbrbrepfacetraverser hasn't constructor with inout parameter odbrbrep, but it has odbrerrorstatus setbrep(const odbrbrep& brep); try it.
thanks.
i has finded odbrerrorstatus setbrep(const odbrbrep& brep),
but after pent->brep( brep )fff"> , brep.isnull() is true, and brep.isvalid() is falsefff">,why?
attached files (87.1 kb, 3 views)

hi,
mfcapp has 3dsolid rendering module. it uses odbr classes inside. so first test is file rendering in mfcapp.
if you have your own application and problem isn't inside mfcapp, try to check return value of
toolkit_export odrxclassptr odrxgetmodelergeometrycreatorservice() ;
odrxclassptr pservice = odrxgetmodelergeometrycreatorservice();
pservice should not be null (it loads modelergeometry.drx). the most popular defect in users application is missing or unloaded modelergeometry.drx.
thanks.
there is not modelergeometry.drx in my application, can create?
if can,how create?
if cannot ,obtains from where?
how use it?
now i am using visual studio2005(c++).
thanks.
release zip includes modelergeometry.drx in the exe folder.
for example,
modelergeometry_2.03_7.drx
dd_acisbuilder_2.03_7.dll
dd_acisrenderer_2.03_7.dll
dd_br_2.03_7.dll
also, please, read next post
thank you very much.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)