From 563ed545e8be72142eb48993bc3ac4e42b8aed48 Mon Sep 17 00:00:00 2001 From: Julius Nehring-Wirxel <julius.nehring-wirxel@rwth-aachen.de> Date: Fri, 28 Feb 2020 11:09:59 +0100 Subject: [PATCH] Ignore face colors. --- src/polymesh/formats/off.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/polymesh/formats/off.cc b/src/polymesh/formats/off.cc index 7ffe8c4..0e450e2 100644 --- a/src/polymesh/formats/off.cc +++ b/src/polymesh/formats/off.cc @@ -82,6 +82,9 @@ bool read_off(std::istream& input, Mesh& mesh, vertex_attribute<std::array<Scala vs[vi] = mesh[vertex_index(v)]; } + // ignore face colors + input.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); + if (!mesh.faces().can_add(vs)) { ++non_manifold; -- GitLab