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

yang686526 2009-05-07 06:07 PM

【转帖】using Region Boolean Operators
 
using region boolean operators
using region boolean operators
hi,
when attempting to use the boolean operator for the oddbregion class i seem to get an "undefined" odresult from the operation. here is an example of the code i'm attempting to execute:
code:
pregion->upgradeopen();
psubtractregion->upgradeopen();
pregion->booleanoper(oddb::kboolsubtract, (oddbregion*)psubtractregion.get());
psubtractregion->downgradeopen();
pregion->downgradeopen();i'm assuming the function might be unimplemented, but hoping that i have just forgotten to load a required module.
i'm currently using dwgdirect v2.4.2 but can move to newer versions if necessary.
boolean operations are not implemented. they are available only with spamodeler module. you should have spatial library and licence to use it.
where are 2 implementations of modelergeometry module responsible for supporting acis objects: "home made" and based on native spatial library.
boolean operations are implemented only in spatial modeler which requires spatial license.
but non-spatial modeler implementation should return enotimplemented.
sergey slezkin


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