几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】problem with extrude function (http://www.dimcax.com/hust/showthread.php?t=18120)

yang686526 2009-05-06 11:17 PM

【转帖】problem with extrude function
 
problem with extrude function
problem with extrude function
hello!
i'm trying to create a solid 3d and i'm using extrude function. but if i call createfromcurves function then function return enointerface result. this is my code:
oddb3dsolidptr p3dsolid;
oddbcircleptr circle;
odrxobjectptrarray curvesegments;
odrxobjectptrarray regions;
odresult result;
p3dsolid = oddb3dsolid::createobject();
p3dsolid->setdatabasedefaults(database);
database->appendoddbentity(p3dsolid);
circle = oddbcircle::createobject();
circle->setdatabasedefaults(base_de_datos);
circle->setcenter(odgepoint3d(x, y, z));
circle->setradius(radius);
curvesegments.push_back((odrxobjectptr)circle.get( ));
result = oddbregion::createfromcurves(curvesegments, regions);
// here result is enointerface.
p3dsolid->extrude((oddbregionptr)regions[0], longitud);
these are the libraries linked.
dd_vc6md_alloc.lib
dd_vc6md_br.lib
dd_vc6md_gs.lib
dd_vc6md_ge.lib
dd_vc6md_gi.lib
dd_vc6md_acisbulder.lib
dd_vc6md_db.lib
dd_vc6md_root.lib
dd_vc6md_spatialindex.lib
dd_vc6md_dwf7import.lib
dwftoolkit.lib
dwfcore.lib
whiptk.lib
w3dtk.lib
dd_vc6md_zip.lib
dd_vc6md_zlib.lib
what's my problem?
thank you.
you should load modelergeometry.drx too.


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