17 INLINE SheetNode::CData::
20 _use_vertex_color =
false;
28 INLINE SheetNode::CData::
29 CData(
const SheetNode::CData ©) :
30 _surface(copy._surface),
31 _use_vertex_color(copy._use_vertex_color),
32 _num_u_subdiv(copy._num_u_subdiv),
33 _num_v_subdiv(copy._num_v_subdiv)
43 cdata->_surface = surface;
52 return cdata->_surface;
64 cdata->_use_vertex_color = flag;
73 return cdata->_use_vertex_color;
83 nassertv(num_u_subdiv >= 0);
85 cdata->_num_u_subdiv = num_u_subdiv;
95 return cdata->_num_u_subdiv;
105 nassertv(num_v_subdiv >= 0);
107 cdata->_num_v_subdiv = num_v_subdiv;
117 return cdata->_num_v_subdiv;
void set_num_v_subdiv(int num_v_subdiv)
Specifies the number of subdivisions per cubic segment (that is, per unique knot value) to draw in a ...
int get_num_u_subdiv() const
Returns the number of subdivisions per cubic segment to draw in the U direction.
NurbsSurfaceEvaluator * get_surface() const
Returns the surface represented by the SheetNode.
This class is an abstraction for evaluating NURBS surfaces.
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
void set_surface(NurbsSurfaceEvaluator *surface)
Sets the particular surface represented by the SheetNode.
void set_num_u_subdiv(int num_u_subdiv)
Specifies the number of subdivisions per cubic segment (that is, per unique knot value) to draw in a ...
void set_use_vertex_color(bool flag)
Sets the "use vertex color" flag.
int get_num_v_subdiv() const
Returns the number of subdivisions per cubic segment to draw in the V direction.
bool get_use_vertex_color() const
Returns the "use vertex color" flag.