EggVertexUV

from acron.egg import EggVertexUV
class EggVertexUV

Bases:

Bases: EggNamedObject

The set of UV’s that may or may not be assigned to a vertex. To support multitexturing, there may be multiple sets of UV’s on a particular vertex, each with its own name.

Inheritance diagram

digraph inheritance7078b4efb6 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "EggNamedObject" [URL="acron.egg.EggNamedObject.html#acron.egg.EggNamedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "EggObject" -> "EggNamedObject" [arrowsize=0.75,style=""]; "Namable" -> "EggNamedObject" [arrowsize=0.75,style=""]; "EggObject" [URL="acron.egg.EggObject.html#acron.egg.EggObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedReferenceCount" -> "EggObject" [arrowsize=0.75,style=""]; "EggVertexUV" [URL="acron.egg.EggVertexUV.html#acron.egg.EggVertexUV",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "EggNamedObject" -> "EggVertexUV" [arrowsize=0.75,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "Namable" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedReferenceCount" [URL="acron.core.TypedReferenceCount.html#acron.core.TypedReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; }
__init__()
property _duvs → EggMorphTexCoordList

getter for EggMorphTexCoordList EggVertexUV::_duvs;

assign()
clear_binormal()
clear_tangent()
compare_to()

An ordering operator to compare two vertices for sorting order. This imposes an arbitrary ordering useful to identify unique vertices.

static filter_name()

Returns the actual name that should be set for a given name string. Usually this is the same string that is input, but for historical reasons the texture coordinate name “default” is mapped to the empty string.

get_binormal()
static get_class_type()
get_num_dimensions()

Returns the number of components of the texture coordinate set. This is either 2 (the normal case) or 3 (for a 3-d texture coordinate).

get_tangent()
get_tangent4()
get_uv()

Returns the texture coordinate pair, if get_num_dimensions() is 2.

get_uvw()

Returns the texture coordinate triple, if get_num_dimensions() is 3. This is also legal to call if get_num_dimensions() is 2 (but the last dimension will be zero).

has_binormal()
has_tangent()
has_tangent4()
has_w()

Returns true if the texture coordinate has a third, w component, false if it is just a normal 2-d texture coordinate.

static make_average()

Creates a new EggVertexUV that contains the averaged values of the two given objects. It is an error if they don’t have the same name.

set_binormal()
set_name()
set_tangent()
set_tangent4()

Sets the tangent vector, along with a fourth parameter that is multiplied with the result of cross(normal, tangent) when computing the binormal.

set_uv()

Sets the texture coordinate pair. This makes the texture coordinate a 2-d texture coordinate, which is the usual case.

set_uvw()

Sets the texture coordinate triple. This makes the texture coordinate a 3-d texture coordinate.

transform()

Applies the indicated transformation matrix to the UV’s tangent and/or binormal. This does nothing if there is no tangent or binormal.

write()