![]() |
【转帖】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. |
所有的时间均为北京时间。 现在的时间是 12:56 PM. |