Uranium
Application Framework
 All Classes Namespaces Files Functions Variables Pages
UM.Mesh.Vertex.Vertex Class Reference

A vertex with a position and a normal. More...

Inherits object.

Public Member Functions

def __init__
 Construct a vertex. More...
 
def position
 Get the position the vertex. More...
 
def normal
 Get the normal the vertex. More...
 
def hasNormal
 
def toString
 Convert the vertex into a string, which is required for parsing over sockets / streams It's kinda hackish to do it this way, but it would take to much effort to implement myself. More...
 

Detailed Description

A vertex with a position and a normal.

Constructor & Destructor Documentation

def UM.Mesh.Vertex.Vertex.__init__ (   self,
  args,
  kwargs 
)

Construct a vertex.

Possible keyword parameters:

  • position: Vector with the vertex' position.
  • normal: Vector with the vertex' normal

Unnamed arguments:

  • x, y, z passed as numbers.

Member Function Documentation

def UM.Mesh.Vertex.Vertex.normal (   self)

Get the normal the vertex.

Returns
normal Vector
def UM.Mesh.Vertex.Vertex.position (   self)

Get the position the vertex.

Returns
position Vector
def UM.Mesh.Vertex.Vertex.toString (   self)

Convert the vertex into a string, which is required for parsing over sockets / streams It's kinda hackish to do it this way, but it would take to much effort to implement myself.


The documentation for this class was generated from the following file: