查看单个帖子
旧 2009-05-07, 05:28 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】urning A Drawing Right Side Up

turning a drawing right side up
turning a drawing right side up
i am trying to take the points that i get from the various entities in a database flip them right side up so that the drawing appears right side up. when i just take the data as is in wcs the drawing appears upside down. i thought the odgematrix3d::mirroring would work, but it seems to have no affect. i am taking the data out of the database, flipping it, and storing it in another format for drawing, because of this i can't just flip the drawing as a whole. i need to transform each of the positions of the points i get from the database. using the dd methods for drawing is not an option right now.
thanks,
dan

it is easy to check if odgematrix3d::mirroring works - need to see matrix members in debugger.
oddbentity inheritants can be transformed by matrix using transformby() member.
btw, depending on kind of other format it may be better to use vectorization for your task. for example, our dwf and svg exports (that are samples) are implemented using vectorization engine.
sincerely yours,
george udov
more info
i have since realized the mirroring function will mirror (it just flipped the objects in place) the objects, but is there an equivalent method for the whole drawing or database? would it make sense to recalculate the points by hand?
dan

i think there are no such method. because it is not clear what is should to do. should it flip modelspace only? should it flip layouts? or it shouldn't flip database data, but should change viewing matrix to display drawing flipped?
sincerely yours,
george udov
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)