几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】use Odbrbrepfacetraverser (http://www.dimcax.com/hust/showthread.php?t=18932)

yang686526 2009-05-07 05:58 PM

【转帖】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.


所有的时间均为北京时间。 现在的时间是 10:30 AM.