27 if (name ==
"default") {
38 INLINE
void EggVertexUV::
39 set_name(
const string &name) {
52 return has_w() ? 3 : 2;
64 return (_flags & F_has_w) != 0;
101 _uvw.set(uv[0], uv[1], 0.0);
122 INLINE
bool EggVertexUV::
123 has_tangent()
const {
124 return (_flags & F_has_tangent) != 0;
132 INLINE
const LNormald &EggVertexUV::
133 get_tangent()
const {
134 nassertr(has_tangent(), _tangent);
143 INLINE
void EggVertexUV::
144 set_tangent(
const LNormald &tangent) {
146 _flags |= F_has_tangent;
154 INLINE
void EggVertexUV::
156 _flags &= ~F_has_tangent;
164 INLINE
bool EggVertexUV::
165 has_binormal()
const {
166 return (_flags & F_has_binormal) != 0;
174 INLINE
const LNormald &EggVertexUV::
175 get_binormal()
const {
176 nassertr(has_binormal(), _binormal);
185 INLINE
void EggVertexUV::
186 set_binormal(
const LNormald &binormal) {
187 _binormal = binormal;
188 _flags |= F_has_binormal;
196 INLINE
void EggVertexUV::
198 _flags &= ~F_has_binormal;
static const LPoint2d & zero()
Returns a zero-length point.
int get_num_dimensions() const
Returns the number of components of the texture coordinate set.
static string filter_name(const string &name)
Returns the actual name that should be set for a given name string.
This is a two-component point in space.
LTexCoordd get_uv() const
Returns the texture coordinate pair, if get_num_dimensions() is 2.
bool has_w() const
Returns true if the texture coordinate has a third, w component, false if it is just a normal 2-d tex...
const LTexCoord3d & get_uvw() const
Returns the texture coordinate triple, if get_num_dimensions() is 3.
void set_uv(const LTexCoordd &texCoord)
Sets the texture coordinate pair.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
void set_uvw(const LTexCoord3d &texCoord)
Sets the texture coordinate triple.