17 INLINE
const std::string &QtessSurface::
19 return _egg_surface->get_name();
27 return (_nurbs !=
nullptr);
36 _importance = sqrt(importance2);
37 _importance2 = importance2;
52 _match_u_to_u = match_u_to_u;
67 _match_v_to_v = match_v_to_v;
96 return _num_u * _num_v * _importance2;
105 return _tess_u * _tess_v * 2;
112 INLINE
int QtessSurface::
113 get_joint_membership_index(
EggGroup *joint) {
114 JointTable::iterator jti = _joint_table.find(joint);
115 if (jti != _joint_table.end()) {
116 return (*jti).second;
120 _joint_table[joint] = d;
128 INLINE
int QtessSurface::
129 get_dxyz_index(
const std::string &morph_name) {
130 MorphTable::iterator mti = _dxyz_table.find(morph_name);
131 if (mti != _dxyz_table.end()) {
132 return (*mti).second;
136 _dxyz_table[morph_name] = d;
144 INLINE
int QtessSurface::
145 get_drgba_index(
const std::string &morph_name) {
146 MorphTable::iterator mti = _drgba_table.find(morph_name);
147 if (mti != _drgba_table.end()) {
148 return (*mti).second;
152 _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.
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.