fix bug on highlighting invisibel nodes
This commit is contained in:
parent
1bc6df8eac
commit
10ff1e579d
|
@ -415,10 +415,14 @@ std::string ViewProviderFemMesh::getElement(const SoDetail* detail) const
|
|||
// int edge = line_detail->getLineIndex() + 1;
|
||||
// str << "Edge" << edge;
|
||||
//}
|
||||
else if (detail->getTypeId() == SoPointDetail::getClassTypeId()) {
|
||||
const SoPointDetail* point_detail = static_cast<const SoPointDetail*>(detail);
|
||||
int vertex = vNodeElementIdx[point_detail->getCoordinateIndex()];
|
||||
str << "Node" << vertex;
|
||||
else if (detail->getTypeId() == SoPointDetail::getClassTypeId()) {
|
||||
const SoPointDetail* point_detail = static_cast<const SoPointDetail*>(detail);
|
||||
auto idx = point_detail->getCoordinateIndex();
|
||||
if (idx < vNodeElementIdx.size()) {
|
||||
int vertex = vNodeElementIdx[point_detail->getCoordinateIndex()];
|
||||
str << "Node" << vertex;
|
||||
}else
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user