高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】verticesfaces Limit In Polyfacemesh
vertices/faces limit in polyfacemesh
vertices/faces limit in polyfacemesh
is there a limit in the number of vertices, or faces allowed in a polyface mesh for directdwg. i am experiencing some strange behavior/crashing the in libs sometimes with complicated meshes. it seems to be crashing when i try to create the odwrfilebuf.
thanks,
quincy
last edited by qjones; 29th april 2004 at 05:57 pmfff">.
polyface mesh vertex and face counts are stored in dwg as int16. so the limit is 65535 or 32767. i don't know how autocad treats them (as signed or unsigned).
i have no idea how the number of vertices/faces may be related to crash while creating odwrfilebuf.
i'll try to look into the problem if i'm able to reproduce it on my computer. is it possible to reproduce the crash in one of our samples?
sergey slezkin
quote:
originally posted by qjones
is there a limit in the number of vertices, or faces allowed in a polyface mesh for directdwg. i am experiencing some strange behavior/crashing the in libs sometimes with complicated meshes. it seems to be crashing when i try to create the odwrfilebuf.
thanks,
quincy
from the autocad dxf reference:
the vertex indexes that define the mesh are given by 71, 72, 73, and 74 group codes, the values of which specify one of the previously defined vertexes by index. if the index is negative, the edge that begins with that vertex is invisible. the first 0 vertex marks the end of the vertices of the face.
this implies that the range of a vertex index is ±32767, and the vertex numbers range from 1-32767
quote:
originally posted by sergey slezkin
polyface mesh vertex and face counts are stored in dwg as int16. so the limit is 65535 or 32767. i don't know how autocad treats them (as signed or unsigned).
i have no idea how the number of vertices/faces may be related to crash while creating odwrfilebuf.
i'll try to look into the problem if i'm able to reproduce it on my computer. is it possible to reproduce the crash in one of our samples?
no i don't believe that any of the samples have caused this error. again it could be something i was doing, but it crashes in a spot that i really cannot tell what is going on. also if i try to zoom extents it will crash here also. but on on certain messhes. this only seems to happen about 1% of the time, so it is hard to catch.
thanks,
quincy
|