Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Mesh.Vertex.Vertex Class Reference

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

Inherits object.

Public Member Functions

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

Protected Attributes

 _position
 
 _normal
 

Detailed Description

A vertex with a position and a normal.

Constructor & Destructor Documentation

◆ __init__()

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()

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

Get the normal the vertex.

Returns
normal Vector

◆ position()

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

Get the position the vertex.

Returns
position Vector

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