Difference between revisions of "Vertex Class"

From Derivative
Jump to navigation Jump to search
(Vertex Class Auto Create)
m
Tags: 2018.28070 2021.10000
 
(8 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.}}
{{HelpbodyBegin}}
+
<section begin=HELPBODY />
 
{{ClassMemberSection|empty=
 
{{ClassMemberSection|empty=
 
|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
 
     |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
 
    |text=The prim to which the vertex belongs.
 
}}
 
{{ClassMember
 
    |class=Vertex
 
    |name=index
 
    |returns=
 
 
     |set=0
 
     |set=0
     |text=The vertex position in its primitive.
+
     |text=The [[Prim Class|prim]] to which the vertex belongs.}}
 +
{{SubSection
 +
    |title=Attributes
 +
    |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: <syntaxhighlight lang=python inline>Vertex.uv</syntaxhighlight>
 +
 
 +
See: [[Attribute Class]] for more information.
 
}}}}
 
}}}}
 
{{ClassMethodSection|empty=True
 
{{ClassMethodSection|empty=True
Line 37: Line 40:
 
|items=
 
|items=
 
}}
 
}}
{{HelpbodyEnd}}
+
<section end=HELPBODY />
 
{{History}}
 
{{History}}
 
{{#invoke:Category|list|Python Reference}}
 
{{#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: