查看单个帖子
旧 2009-05-06, 07:19 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】oddb3dsolid and the vectorization framework

oddb3dsolid and the vectorization framework
oddb3dsolid and the vectorization framework
i am trying to use the vectorization framework to break acis entities into primatives using the vectorization framework...draw gets called for these entities but none of the primative procs (triangleout, poly, etc) are being called. is there some mechanism that i am missing to do this?
thanks,
tyler edwards
correct you are... but now a different issue
my solids are now being vectorized. however i'd like to shade them in a fashion similar to what the opengl renderer does... as well as do correct occusion for the object... any ideas?
hi,
i'm also having the same problem with my 3dsolids not being drawn by the draw function. my app is statically linked. i took a look at the sample file (odvectorizeex.cpp), but i'm not sure exactly what i need to do with the macros. could someone explain what needs to be done to get this to work.
thanks,
dave
some functionality which is not required in all dd based applications like processing acis, raster files etc. is moved to separate modules. module which is responsible for some functionality can be excluded from client application or replaced with another implementation.
in ddl build it's very simple: dwgdirect simply searchs for <modulename>.drx file which is actually a dll.
to emulate this process in static build a set of macros is provided. to include acis stuff in your statically linked application insert in your code (like in odvectorizeex.cpp):
code:
#if !defined(_toolkit_in_dll_)
odrx_declare_static_module_entry_point(modelermodule);
odrx_begin_static_module_map()
odrx_define_static_application("modelergeometry", modelermodule)
odrx_end_static_module_map()
#endif
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)