from panda3d.egg import EggVertexUV
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.
getter for EggMorphTexCoordList EggVertexUV::_duvs;
compareTo(other: EggVertexUV) → int¶
An ordering operator to compare two vertices for sorting order. This imposes an arbitrary ordering useful to identify unique vertices.
filterName(name: str) → str¶
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.
getNumDimensions() → int¶
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).
getUvw() → panda3d.core.LTexCoord3d¶
hasW() → bool¶
Returns true if the texture coordinate has a third, w component, false if it is just a normal 2-d texture coordinate.
makeAverage(first: EggVertexUV, second: EggVertexUV) → EggVertexUV¶
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.
setTangent4(tangent: panda3d.core.LVecBase4d) → None¶
Sets the tangent vector, along with a fourth parameter that is multiplied with the result of cross(normal, tangent) when computing the binormal.
setUv(texCoord: panda3d.core.LTexCoordd) → None¶
Sets the texture coordinate pair. This makes the texture coordinate a 2-d texture coordinate, which is the usual case.
setUvw(texCoord: panda3d.core.LTexCoord3d) → None¶
Sets the texture coordinate triple. This makes the texture coordinate a 3-d texture coordinate.
transform(mat: panda3d.core.LMatrix4d) → None¶
Applies the indicated transformation matrix to the UV’s tangent and/or binormal. This does nothing if there is no tangent or binormal.