#1101 Compute surface normals

This commit is contained in:
Magne Sjaastad
2017-01-11 08:02:23 +01:00
parent 866fb92d5f
commit 6dd3db4d97

View File

@@ -128,6 +128,7 @@ cvf::ref<cvf::DrawableGeo> RivWellFracturesPartMgr::createGeo(const std::vector<
geo->setVertexArray(vertices.p()); geo->setVertexArray(vertices.p());
geo->addPrimitiveSet(new cvf::PrimitiveSetIndexedUInt(cvf::PT_TRIANGLES, indices.p())); geo->addPrimitiveSet(new cvf::PrimitiveSetIndexedUInt(cvf::PT_TRIANGLES, indices.p()));
geo->computeNormals();
return geo; return geo;
} }