几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】exception exporting table with normal -1,0,0 (http://www.dimcax.com/hust/showthread.php?t=16142)

yang686526 2009-05-05 09:57 AM

【转帖】exception exporting table with normal -1,0,0
 
exception exporting table with normal <-1,0,0>
exception exporting table with normal <-1,0,0>
hi
cannot properly save my drawing to dwg, problem is with table drawn in left side view (normal = <-1,0,0>.
problem is near line 2599 in dbtable.cpp (oddbtable::recomputetableblock() function).
problem is with crossproducts of zero vector.
regards,
james higgs
hello james,
i suppose normal is not perpendicular to table direction in your case. we will try to support this situation correctly in next release of dwgdirect. thank you for report.
best regards,
sergey z.
workaround
i have managed to get the table export working by setting the table "direction" vector correctly.
before, i just assumed that setting the normal, and setting the rotation would be enough.
perhaps in future release, setting the normal will also set up an appropriate direction vector (based on arbitrary axis algorithm).
thanks for your reply.
- james


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