FEM: fix mixed line endings in VP FemMesh
This commit is contained in:
parent
49b002beaf
commit
d37ac54c8e
|
@ -594,19 +594,19 @@ void ViewProviderFemMesh::setDisplacementByNodeIdHelper(const std::vector<Base::
|
|||
applyDisplacementToNodes(1.0);
|
||||
|
||||
}
|
||||
|
||||
|
||||
void ViewProviderFemMesh::resetDisplacementByNodeId(void)
|
||||
{
|
||||
applyDisplacementToNodes(0.0);
|
||||
DisplacementVector.clear();
|
||||
}
|
||||
/// reaply the node displacement with a certain factor and do a redraw
|
||||
void ViewProviderFemMesh::applyDisplacementToNodes(double factor)
|
||||
{
|
||||
if(DisplacementVector.size() == 0)
|
||||
return;
|
||||
|
||||
float x,y,z;
|
||||
}
|
||||
/// reaply the node displacement with a certain factor and do a redraw
|
||||
void ViewProviderFemMesh::applyDisplacementToNodes(double factor)
|
||||
{
|
||||
if(DisplacementVector.size() == 0)
|
||||
return;
|
||||
|
||||
float x,y,z;
|
||||
// set the point coordinates
|
||||
long sz = pcCoords->point.getNum();
|
||||
SbVec3f* verts = pcCoords->point.startEditing();
|
||||
|
@ -626,9 +626,9 @@ void ViewProviderFemMesh::applyDisplacementToNodes(double factor)
|
|||
verts[i].setValue(x,y,z);
|
||||
}
|
||||
pcCoords->point.finishEditing();
|
||||
|
||||
DisplacementFactor = factor;
|
||||
}
|
||||
|
||||
DisplacementFactor = factor;
|
||||
}
|
||||
|
||||
void ViewProviderFemMesh::setColorByElementId(const std::map<long,App::Color> &ElementColorMap)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user