Exemplo n.º 1
0
rotationGizmo::rotationGizmo()
{
    origin          = vcg::Point3f( 0.0, 0.0, 0.0 );
    radius          = 0.5;
    visibility      = false;
    selected_axis   = 0;
    colors      [0]= buildColor(0);
    colors      [1]= buildColor(1);
    colors      [2]= buildColor(2);
    frame       [0]= vcg::Point3f( 1.0, 0.0, 0.0 );
    frame       [1]= vcg::Point3f( 0.0, 1.0, 0.0 );
    frame       [2]= vcg::Point3f( 0.0, 0.0, 1.0 );

    XYZ         [0]= vcg::Point3f( 1.0, 0.0, 0.0 );
    XYZ         [1]= vcg::Point3f( 0.0, 1.0, 0.0 );
    XYZ         [2]= vcg::Point3f( 0.0, 0.0, 1.0 );

    frame       [0]= XYZ[0];
    frame       [1]= XYZ[1];
    frame       [2]= XYZ[2];

    cube_id        = -1;
}
Exemplo n.º 2
0
Color::Color(const std::string& colorStr) : color(buildColor(colorStr))
{ }