Difference between revisions of "Vertex Class"

From Derivative
Jump to navigation Jump to search
m
Tags: 2018.28070 2021.10000
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{TDClassSummary|label=Vertex|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.}}
 
<section begin=HELPBODY />
 
<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
Line 10: Line 15:
 
     |type=OP
 
     |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
 
     |type=td.Point
 
     |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
Line 24: Line 27:
 
     |type=td.Prim
 
     |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.}}
}}
 
{{ClassMember
 
    |class=Vertex
 
    |name=index
 
    |type=int
 
    |set=0
 
    |text=The vertex position in its 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: