21 INLINE
const string &QtessSurface::
23 return _egg_surface->get_name();
45 _importance = sqrt(importance2);
46 _importance2 = importance2;
66 _match_u_to_u = match_u_to_u;
86 _match_v_to_v = match_v_to_v;
122 return _num_u * _num_v * _importance2;
133 return _tess_u * _tess_v * 2;
143 INLINE
int QtessSurface::
144 get_joint_membership_index(
EggGroup *joint) {
145 JointTable::iterator jti = _joint_table.find(joint);
146 if (jti != _joint_table.end()) {
147 return (*jti).second;
151 _joint_table[joint] = d;
161 INLINE
int QtessSurface::
162 get_dxyz_index(
const string &morph_name) {
163 MorphTable::iterator mti = _dxyz_table.find(morph_name);
164 if (mti != _dxyz_table.end()) {
165 return (*mti).second;
169 _dxyz_table[morph_name] = d;
179 INLINE
int QtessSurface::
180 get_drgba_index(
const string &morph_name) {
181 MorphTable::iterator mti = _drgba_table.find(morph_name);
182 if (mti != _drgba_table.end()) {
183 return (*mti).second;
187 _drgba_table[morph_name] = d;
A reference to an EggNurbsSurface in the egg file, and its parameters as set by the user input file a...
int count_tris() const
Returns the number of triangles that will be generated by the current tesselation parameters...
void set_importance(double importance2)
Sets the importance of the surface, as a ratio in proportion to the square of its size...
void set_match_v(QtessSurface **match_v, bool match_v_to_v)
Indicates the surface to which this surface must match in its V direction.
This class is an abstraction for evaluating NURBS surfaces.
void set_match_u(QtessSurface **match_u, bool match_u_to_u)
Indicates the surface to which this surface must match in its U direction.
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
void set_min_v(int min_v)
Specifies the absolute minimum number of segments allowed in the V direction.
bool is_valid() const
Returns true if the defined surface is valid, false otherwise.
void set_min_u(int min_u)
Specifies the absolute minimum number of segments allowed in the U direction.
double count_patches() const
Returns the number of patches the NURBS contains.