Vertex Class

From TouchDesigner Documentation
Jump to: navigation, search

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


Members[edit]

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.

Attributes[edit]

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.

Methods[edit]

No operator specific methods.


TouchDesigner Build:

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 optional are normals (N), texture coordinates (uv), color (Cd), etc.