Difference between revisions of "Vertex Class"

From Derivative
Jump to navigation Jump to search
(Vertex Class Auto Create)
m
Tags: 2018.28070 2021.10000
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TDClassSummary|summary=A Vertex describes an instance to a single geometry vertex, contained within a Prim object.}}
+
{{TDClassSummary|label=Vertex|summary=A Vertex describes an instance to a single geometry vertex, contained within a [[Prim Class|Prim]] object.}}
{{ClassMemberSection|empty=}}
+
<section begin=HELPBODY />
 +
{{ClassMemberSection|empty=
 +
|Sectionsummary=
 +
|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
 
     |name=owner
 
     |name=owner
     |returns=
+
     |type=OP
 
     |set=0
 
     |set=0
     |text=The OP to which this object belongs.
+
     |text=The [[OP Class|OP]] to which this object belongs.}}
}}
 
 
{{ClassMember
 
{{ClassMember
 
     |class=Vertex
 
     |class=Vertex
 
     |name=point
 
     |name=point
     |returns=
+
     |type=td.Point
     |set=0
+
     |set=1
     |text=The point to which the vertex refers.
+
     |text=Get or set the [[Point Class|point]] to which the vertex refers.}}
}}
 
 
{{ClassMember
 
{{ClassMember
 
     |class=Vertex
 
     |class=Vertex
 
     |name=prim
 
     |name=prim
     |returns=
+
     |type=td.Prim
 
     |set=0
 
     |set=0
     |text=The prim to which the vertex belongs.
+
     |text=The [[Prim Class|prim]] to which the vertex belongs.}}
}}
+
{{SubSection
{{ClassMember
+
     |title=Attributes
    |class=Vertex
+
     |text=In addition to the above members, all attributes are members as well.
    |name=index
+
 
    |returns=
+
For example, if the Vertex contains texture coordinates, they may be accessed with: <syntaxhighlight lang=python inline>Vertex.uv</syntaxhighlight>  
     |set=0
 
     |text=The vertex position in its primitive.
 
}}
 
{{ClassMethodSection|empty=True}}
 
<taggedhistory/>
 
  
{{{{#invoke:Category|list|Python Reference}}}}
+
See: [[Attribute Class]] for more information.
 +
}}}}
 +
{{ClassMethodSection|empty=True
 +
|Sectionsummary=
 +
|items=
 +
}}
 +
<section end=HELPBODY />
 +
{{History}}
 +
{{#invoke:Category|list|Python Reference}}

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: