高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】related to mesh -- decomposeforsave90
related to mesh -- decomposeforsave()
related to mesh -- decomposeforsave()
i am using this api to generate polyface meshes out of solids..
i observed one thing is that this api generates one new block and puts together
all polyface meshes of that solid in that block..
but in case of sphere, it does not generate block, instead generates only one polyface mesh.. is this expected behavior?
also could anyone let me know about the stability of this api for meshing?
thank u..
hi,
it is ok. it is decomposeforsave behaviour. it returns block if output is more that one entity, or pointer to single entity else. decomposeforsave is common functionality - used not only for mesh generation.
thank u for ur response..
is there any other api to generate mesh??
hi,
you can call worlddraw method with your own gicontext, set shaded mode and collect shell calls.
hi,
you can call worlddraw method with your own gicontext, set shaded mode and collect shell calls. decompose just convert shell calls to polyfacemesh entities also.
so which is more reliable method for mesh?
even i am interested in this discussion.
i'm not sure what do you mean by "more reliable".
decomposeforsave for 3dsolids works via worlddraw. it creates odgiworlddraw-derived object and calls worlddraw. shell() primitives are converted to oddbpolyfacemesh entities.
so if you call worlddraw and extract geometry from shell primitives yourself - it would be more efficient. but it would require more programming.
i mean, if i want to get polyface meshes only from solid, then decomposeforsave() should work, right?
one more question..
is it possible to mesh surfaces also with this api or any other way??
|