EggVertexUV¶
-
class EggVertexUV¶
Bases:
EggNamedObjectThe 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=""]; }- EggVertexUV.__init__()¶
- EggVertexUV.assign()¶
- EggVertexUV.clear_binormal()¶
- EggVertexUV.clear_tangent()¶
- EggVertexUV.compare_to()¶
An ordering operator to compare two vertices for sorting order. This imposes an arbitrary ordering useful to identify unique vertices.
- static EggVertexUV.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.
- EggVertexUV.get_binormal()¶
- static EggVertexUV.get_class_type()¶
- EggVertexUV.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).
- EggVertexUV.get_tangent()¶
- EggVertexUV.get_tangent4()¶
- EggVertexUV.get_uv()¶
Returns the texture coordinate pair, if
get_num_dimensions()is 2.
- EggVertexUV.get_uvw()¶
Returns the texture coordinate triple, if
get_num_dimensions()is 3. This is also legal to call ifget_num_dimensions()is 2 (but the last dimension will be zero).
- EggVertexUV.has_binormal()¶
- EggVertexUV.has_tangent()¶
- EggVertexUV.has_tangent4()¶
- EggVertexUV.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 EggVertexUV.make_average()¶
Creates a new
EggVertexUVthat contains the averaged values of the two given objects. It is an error if they don’t have the same name.
- EggVertexUV.set_binormal()¶
- EggVertexUV.set_name()¶
- EggVertexUV.set_tangent()¶
- EggVertexUV.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.
- EggVertexUV.set_uv()¶
Sets the texture coordinate pair. This makes the texture coordinate a 2-d texture coordinate, which is the usual case.
- EggVertexUV.set_uvw()¶
Sets the texture coordinate triple. This makes the texture coordinate a 3-d texture coordinate.
- EggVertexUV.transform()¶
Applies the indicated transformation matrix to the UV’s tangent and/or binormal. This does nothing if there is no tangent or binormal.
- EggVertexUV.write()¶