查看单个帖子
旧 2009-05-05, 09:57 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)