Vertex Class

From TouchDesigner Documentation
Jump to: navigation, search

A Vertex describes an instance to a single geometry vertex, contained within a Prim object.


indexint (Read Only):

The vertex position in its primitive.

ownerOP (Read Only):

The OP to which this object belongs.

pointtd.Point :

Get or set the point to which the vertex refers.

primtd.Prim (Read Only):

The prim to which the vertex belongs.


In addition to the above members, all attributes are members as well.

For example, if the Vertex contains texture coordinates, they may be accessed with: Vertex.uv

See: Attribute Class for more information.


No operator specific methods.

TouchDesigner Build:

A sequence of vertices form a Polygon in a SOP. Each vertex is an integer index into the Point List, and each Point holds an XYZ position and attributes like Normals and Texture Coordinates.

Any of the procedural data operators. OPs do all the work in TouchDesigner. They "cook" and output data to other OPs, which ultimately result in new images, data and audio being generated. See Node.

Each SOP has a list of Points. Each point has an XYZ 3D position value plus other optional attributes. Each polygon Primitive is defined by a vertex list, which is list of point numbers.

Information associated with SOP geometry. Points and primitives (polygons, NURBS, etc.) can have any number of attributes - position (P) is standard, and built-in optional attributes are normals (N), texture coordinates (uv), color (Cd), etc.