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

yang686526 2009-05-05 10:15 AM

【转帖】exploding 3d solids
 
exploding 3d solids
exploding 3d solids
i'm trying to find a way to explode a 3d solid into a set of simpler entities (polyfacemesh would do). i've been looking at a thread from march 2007 which suggested using decomposeforsave, but i have also run into the problem that my database is open purely for read so this function fails.
the solution that was given in that thread showed code which immediately drew the object, but given that i want to process the entities without drawing them i don't think this approach will help.
has anyone got any suggestions as to a simple way to do this?
tia
ian johnson.
you can use
p3dsolid->explodegeometry() (defined in oddbentity class).
it will create a set of non-database resident entities.
sergey slezkin
thanks for the reply however, using explodegeometry i get the odresult "ecannotexplodeentity" - is it possible this is not a general problem but something specific to this particular 3dsolid?
please, attach a file with 3dsolid. i'll check.
drawing file attached.
the solid from your file can be exploded in odamfcapp:
edit/registered commands/oda example commands/exexplodegeometry.
most probably modelergeometry module is missing in your application. it's responsible for operations with acis objects.
sergey slezkin


所有的时间均为北京时间。 现在的时间是 06:13 PM.