Uranium
Application Framework
UM.Mesh.Vertex.Vertex Class Reference

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

Inherits object.

Public Member Functions

def __init__ (self, *args, **kwargs)
 Construct a vertex. More...
 
def position (self)
 Get the position the vertex. More...
 
def normal (self)
 Get the normal the vertex. More...
 
def hasNormal (self)
 
def 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. More...
 

Detailed Description

A vertex with a position and a normal.

Constructor & Destructor Documentation

◆ __init__()

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

◆ normal()

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

Get the normal the vertex.

Returns
normal Vector

◆ position()

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

Get the position the vertex.

Returns
position Vector

◆ toString()

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: