21 INLINE SheetNode::CData::
24 _use_vertex_color =
false;
34 INLINE SheetNode::CData::
35 CData(
const SheetNode::CData ©) :
36 _surface(copy._surface),
37 _use_vertex_color(copy._use_vertex_color),
38 _num_u_subdiv(copy._num_u_subdiv),
39 _num_v_subdiv(copy._num_v_subdiv)
52 cdata->_surface = surface;
63 return cdata->_surface;
79 cdata->_use_vertex_color = flag;
91 return cdata->_use_vertex_color;
104 nassertv(num_u_subdiv >= 0);
106 cdata->_num_u_subdiv = num_u_subdiv;
118 return cdata->_num_u_subdiv;
131 nassertv(num_v_subdiv >= 0);
133 cdata->_num_v_subdiv = num_v_subdiv;
145 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.