Vertex Class

From Derivative
Jump to: navigation, search

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



Members

Vertex.ownerOP (Read Only):

The OP to which this object belongs.

Vertex.pointtd.Point :

Get or set the point to which the vertex refers.

Vertex.primtd.Prim (Read Only):

The prim to which the vertex belongs.

Vertex.indexint (Read Only):

The vertex position in its primitive.

Attributes

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

No operator specific methods.


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.