mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1101 Compute surface normals
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user