void parse_vn_statement() { Vector3d n; m_lexer.eat_blanks(); n.x = m_lexer.accept_double(); m_lexer.eat_blanks(); n.y = m_lexer.accept_double(); m_lexer.eat_blanks(); n.z = m_lexer.accept_double(); m_normals.push_back(n); }
void parse_vt_statement() { Vector2d v; m_lexer.eat_blanks(); v.x = m_lexer.accept_double(); m_lexer.eat_blanks(); v.y = m_lexer.accept_double(); m_lexer.eat_blanks(); if (!m_lexer.is_eol()) m_lexer.accept_double(); m_tex_coords.push_back(v); }
void parse_v_statement() { Vector3d v; m_lexer.eat_blanks(); v.x = m_lexer.accept_double(); m_lexer.eat_blanks(); v.y = m_lexer.accept_double(); m_lexer.eat_blanks(); v.z = m_lexer.accept_double(); m_lexer.eat_blanks(); if (!m_lexer.is_eol()) m_lexer.accept_double(); m_vertices.push_back(v); }