Skip to content

Commit

Permalink
FEM: fix mixed line endings in VP FemMesh
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and yorikvanhavre committed Nov 16, 2015
1 parent 49b002b commit d37ac54
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Mod/Fem/Gui/ViewProviderFemMesh.cpp
Expand Up @@ -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();
Expand All @@ -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)
{
Expand Down

0 comments on commit d37ac54

Please sign in to comment.