本文整理汇总了C++中ControlPointList::begin方法的典型用法代码示例。如果您正苦于以下问题:C++ ControlPointList::begin方法的具体用法?C++ ControlPointList::begin怎么用?C++ ControlPointList::begin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ControlPointList
的用法示例。
在下文中一共展示了ControlPointList::begin方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//------------------------------------------------------------------------------
int main(int argc, char** argv)
{
//lineTest();
//circleTest();
//sineTest();
//immelmannTest();
//dblimmelmannTest();
compressedsineandsineTest();
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB |GLUT_DEPTH);
glutInitWindowSize (600, 600);
glutInitWindowPosition (100, 100);
glutCreateWindow ( title.c_str() );
catmullrom_s = CubicSpline::linearly_interpolate_arclength( CUBIC_SPLINE_CATMULLROM, cplist );
catmullrom_M = CubicSpline::basisCatmullRom();
catmullrom_arclength_map = CubicSpline::map_spline( CUBIC_SPLINE_CATMULLROM, cplist );
std::cout << "catmullrom arclength s:" << catmullrom_s << std::endl;
bspline_s = CubicSpline::linearly_interpolate_arclength( CUBIC_SPLINE_B, cplist );
bspline_M = CubicSpline::basisUniformNonrationalBSpline();
bspline_arclength_map = CubicSpline::map_spline( CUBIC_SPLINE_B, cplist );
std::cout << "bspline arclength s:" << bspline_s << std::endl;
ControlPointList::iterator it = cplist.begin()+1;
actor_position = Vector3( it->position );
actor_transform.identity();
camera.project();
init ();
glutDisplayFunc(display);
glutReshapeFunc(reshape);
glutKeyboardFunc(keyboard);
glutIdleFunc(idle);
glutMainLoop();
return 0;
}