几何尺寸与公差论坛------致力于产品几何量公差标准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 inserting a dwg containing 3d solids (http://www.dimcax.com/hust/showthread.php?t=18042)

yang686526 2009-05-06 10:50 PM

【转帖】problem inserting a dwg containing 3d solids
 
problem inserting a dwg containing 3d solids
problem inserting a dwg containing 3d solids
i.e.
after inserting an existing dwg into a new one:
oddbdatabaseptr ndb;
ndb = svcs->readfile(fname);
odgematrix3d xform;
xform.settranslation(myvector);
pdb->insert(xform, ndb);
the transformation (translation or scaling) does not apply to all 3d solids.
but, it applies to all other entities.
3d solids remain at their original positions and their original size (if xform->settoscaling is used)
thanks for the replies..
3dsolids can be transformed only by uni-scaled and ortho matrix.
sergey slezkin
quote:
originally posted by sergey slezkin
3dsolids can be transformed only by uni-scaled and ortho matrix.
thank you,
i was only trying to do a translation, i.e. (10,0,0).
the problem was that i had to use modelergeometry...


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