查看单个帖子
旧 2009-05-07, 06:27 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】vectorizing To 3d Display File

vectorizing to 3d display file
vectorizing to 3d display file
i want to export a dwg file to a 3d world coordinate display file. the concept of "device", "device coordinates", eye projections etc are meaningless in this context. essentially, i would only need to catch the geometry by overriding odgigeometrysimplifier. but it seems entangeled with odgsbasevectorizeview and the need to call odgsbasevectorizeview::update().
can i process a dwg block directly onto odgigeometrysimplifier or do i have to squize it through odgsbasevectorizeview::update() no matter what?
-rune jorgensen
www.dds.no
hi,
you can just call odgibasevectorizer::draw() passing in block pointer. use odgibasevectorizer:dgiconveyoroutput& output() method and returned interface to specify your target object that implements odgiconveyorgeometry interface (e.g. odgigeometrysimplifier).
quote:
originally posted by dmitry a. novikov
hi,
you can just call odgibasevectorizer::draw() passing in block pointer. use odgibasevectorizer:dgiconveyoroutput& output() method and returned interface to specify your target object that implements odgiconveyorgeometry interface (e.g. odgigeometrysimplifier).
hi
i've been trying to do something similar to this. when i call odgibasevectoriser::draw() i get a consistent crash in odgigeometrysimplifier::fillmode(). i have the source code for odgigeometrysimplifier (i got it from walt lounsbury) but i can't see any reason why this is happening. do you have a working example of this?
regards
andy manessis
hi,
most of our conveyor nodes require to be initialized with "draw context" (odgigeometrysimplifier::setdrawcontext()) before passing any geometry. you can obtain it via odgibasevectoriser::drawcontext().
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)