Graphic primitive

from Wikipedia, the free encyclopedia
Vector graphics are made up of graphic primitives such as lines, circles and polygons.

The term (graphic) primitive ( das , Pl. Primitive ) is used in computer graphics . It denotes elementary one, two or three-dimensional geometric shapes that are part of exchange formats (e.g. DXF , PCL or SVG ). From these simple primitives more complicated forms can be put together. The terms basic object, graphic basic form or spatial reference basic form (see also ISO 19107 ) are also used synonymously .

Examples and Applications

Which forms belong to the basic graphic forms depends on the program used or the description language. In 2D computer graphics, points , segments , polygons , circles and ellipses are common. Triangles or polygons are the most common primitives in 3D computer graphics , although point clouds and other shapes are also common.

Basic shapes are used in vector graphics editing software and 3-D modeling tools. In 2D computer graphics there are algorithms for rasterization for basic shapes ; in 3D computer graphics they are used by renderers .

Graphic primitives in OpenGL
GeometricPrimitiveTypes.png
  • GL_POINTS
  • GL_LINES
  • GL_LINE_STRIP
  • GL_LINE_LOOP
  • GL_POLYGON
  • GL_TRIANGLES
  • GL_TRIANGLE_STRIP
  • GL_TRIANGLE_FAN
  • GL_QUADS
  • GL_QUAD_STRIPS

literature

Individual evidence

  1. https://www.opengl.org/wiki/Primitive