Difference between revisions of "Vertex Class"

From Derivative
Jump to navigation Jump to search
(cleaning)
m
Tags: 2018.28070 2021.10000
 
Line 4: Line 4:
 
|Sectionsummary=
 
|Sectionsummary=
 
|items=
 
|items=
+
{{ClassMember
 +
    |class=Vertex
 +
    |name=index
 +
    |type=int
 +
    |set=0
 +
    |text=The vertex position in its [[Prim Class|primitive]].}}
 
{{ClassMember
 
{{ClassMember
 
     |class=Vertex
 
     |class=Vertex
Line 23: Line 28:
 
     |set=0
 
     |set=0
 
     |text=The [[Prim Class|prim]] to which the vertex belongs.}}
 
     |text=The [[Prim Class|prim]] to which the vertex belongs.}}
{{ClassMember
 
    |class=Vertex
 
    |name=index
 
    |type=int
 
    |set=0
 
    |text=The vertex position in its [[Prim Class|primitive]].}}
 
 
{{SubSection
 
{{SubSection
 
     |title=Attributes
 
     |title=Attributes
 
     |text=In addition to the above members, all attributes are members as well.
 
     |text=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>  
+
For example, if the Vertex contains texture coordinates, they may be accessed with: <syntaxhighlight lang=python inline>Vertex.uv</syntaxhighlight>  
  
See: Attribute Class for more information.
+
See: [[Attribute Class]] for more information.
 
}}}}
 
}}}}
 
{{ClassMethodSection|empty=True
 
{{ClassMethodSection|empty=True

Latest revision as of 14:00, 11 January 2019

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: