implement fast mesh rendering for Qt5 port (7x faster)

This commit is contained in:
wmayer
2018-07-28 11:08:03 +02:00
parent db4f47cf28
commit 039e972a4b
8 changed files with 565 additions and 122 deletions

View File

@@ -1823,6 +1823,14 @@ void ViewProviderMesh::deleteSelection()
}
}
bool ViewProviderMesh::hasSelection() const
{
std::vector<unsigned long> indices;
Mesh::PropertyMeshKernel& meshProp = static_cast<Mesh::Feature*>(pcObject)->Mesh;
const Mesh::MeshObject& rMesh = meshProp.getValue();
return rMesh.hasSelectedFacets();
}
void ViewProviderMesh::selectArea(short x, short y, short w, short h,
const SbViewportRegion& region,
SoCamera* camera)