查看单个帖子
旧 2009-05-06, 02:36 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】how to export polygons with holes in dwg

how to export polygons with holes in dwg ?
how to export polygons with holes in dwg ?
i have to export polygons with holes to a dwg file, using dwg direct 2.2.
my mesh description can contains polygons with holes, which can be described as an odgeshell object easily. but i cannot find an equivalent entity to perform the export.
is there an entity i missed that i could use to describe polygons with holes ?
thank you in advance for your help.
i think you can use oddbhatch entity. see attach example.
attached files (25.8 kb, 8 views)

thank you rabera, but i am not sure hatch entity is really suitable.
here is a full description of what i need: i need to export a 3d polygon mesh:
- which has several 3d polygons,
- each polygon can contain holes,
- and the polygons must be described using indices on vertices: a whole array of vertices for all the mesh, and only vertex indices for each loop.
i cannot see in the hatch how to describe the loop as indices.
can you trasform your mesh (i think is oddbpolygonmesh) into a trimesh (oddbpolyfacemesh).see attach again
attached files (21.4 kb, 5 views)

thank you again,
this is the solution i use at this time, after having triangulated all my mesh.
but i would have had a better quality export if i was able to directly export polygons with n vertices and holes.
maybe it should be possible using odbsolid3d ?
but i don't know how to fill such an entity (except by reading a sat file, which i do not speak fluently :-)
oddb3dsolid has a number of methods for creating simple objects (createbox(), createsphere(), ...) but i think there is not methods for boolean operation.
i think with trimesh you don't lose quality.
may be you can use oddbregion for it.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)