Vertex

From ZDoom Wiki
(Redirected from VERTEXES)
Jump to navigation Jump to search
DoomWiki.org
For more information on this article, visit the Vertex page on the Doom Wiki.

Vertices are used by the LINEDEFS and SEGS lumps in the Doom and Hexen map formats.

Vertices are numbered by the order in which they are listed. Since linedefs and segments use unsigned shorts to represent which vertex they are referencing, a map in a binary format reaches its limit at 65535 vertices. However, unless using ZDBSP extended nodes, the actual limit is reached sooner than a map editor's built-in statistics tool could let one think. Node building will create additional vertices to split existing lines into segments. These extra vertices are trimmed down silently when loading a map in a map editor, and recreated when saving again. It is difficult to estimate how many additional vertices will be created during nodebuilding, as that depends on the map geometry and the approach used by the node builder to split it into a BSP tree.

Specification

Bytes Data type Description
0-1 Signed short X position
2-3 Signed short Y position