Difference between revisions of "Vertex Class"

From Derivative
Jump to navigation Jump to search
(Vertex Class Auto Create)
Line 8: Line 8:
 
     |class=Vertex
 
     |class=Vertex
 
     |name=owner
 
     |name=owner
     |type=
+
     |type=OP
 
     |set=0
 
     |set=0
 
     |text=The OP to which this object belongs.
 
     |text=The OP to which this object belongs.
Line 15: Line 15:
 
     |class=Vertex
 
     |class=Vertex
 
     |name=point
 
     |name=point
     |type=
+
     |type=td.Point
 
     |set=0
 
     |set=0
 
     |text=The point to which the vertex refers.
 
     |text=The point to which the vertex refers.
Line 22: Line 22:
 
     |class=Vertex
 
     |class=Vertex
 
     |name=prim
 
     |name=prim
     |type=
+
     |type=td.Prim
 
     |set=0
 
     |set=0
 
     |text=The prim to which the vertex belongs.
 
     |text=The prim to which the vertex belongs.
Line 29: Line 29:
 
     |class=Vertex
 
     |class=Vertex
 
     |name=index
 
     |name=index
     |type=
+
     |type=int
 
     |set=0
 
     |set=0
 
     |text=The vertex position in its primitive.
 
     |text=The vertex position in its primitive.
 +
}}
 +
{{SubSection
 +
    |title=Attributes
 +
    |text=
 
}}}}
 
}}}}
 
{{ClassMethodSection|empty=True
 
{{ClassMethodSection|empty=True
 
|Sectionsummary=
 
|Sectionsummary=
|items=
+
|items=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:<code>Vertex.uv</code>
 +
See: Attribute Class for more information.
 
}}
 
}}
 
<section end=HELPBODY />
 
<section end=HELPBODY />
 
{{History}}
 
{{History}}
 
{{#invoke:Category|list|Python Reference}}
 
{{#invoke:Category|list|Python Reference}}

Revision as of 15:59, 29 September 2017

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


Members[edit]

ownerOP (Read Only):

The OP to which this object belongs.

pointtd.Point (Read Only):

The point to which the vertex refers.

primtd.Prim (Read Only):

The prim to which the vertex belongs.

indexint (Read Only):

The vertex position in its primitive.

Attributes[edit]

Methods[edit]

No operator specific methods. 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.

TouchDesigner Build: