From baf5a51e1aae5efd4ec2604377dcd905e5d58217 Mon Sep 17 00:00:00 2001 From: Uwe Date: Thu, 9 Mar 2023 02:22:47 +0100 Subject: [PATCH] [FEM] [skip ci] fine-tune FEM function filter - just for consistency use always the form "x.0" --- src/Mod/Fem/App/FemPostFunction.cpp | 10 +++++----- src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Mod/Fem/App/FemPostFunction.cpp b/src/Mod/Fem/App/FemPostFunction.cpp index 2581302099..7008cd3bf7 100644 --- a/src/Mod/Fem/App/FemPostFunction.cpp +++ b/src/Mod/Fem/App/FemPostFunction.cpp @@ -111,8 +111,8 @@ FemPostPlaneFunction::FemPostPlaneFunction() : FemPostFunction() { m_plane = vtkSmartPointer::New(); m_implicit = m_plane; - m_plane->SetOrigin(0., 0., 0.); - m_plane->SetNormal(0., 0., 1.); + m_plane->SetOrigin(0.0, 0.0, 0.0); + m_plane->SetNormal(0.0, 0.0, 1.0); } FemPostPlaneFunction::~FemPostPlaneFunction() { @@ -145,14 +145,14 @@ PROPERTY_SOURCE(Fem::FemPostSphereFunction, Fem::FemPostFunction) FemPostSphereFunction::FemPostSphereFunction() : FemPostFunction() { - ADD_PROPERTY(Radius, (5)); + ADD_PROPERTY(Radius, (5.0)); ADD_PROPERTY(Center, (Base::Vector3d(1.0, 0.0, 0.0))); m_sphere = vtkSmartPointer::New(); m_implicit = m_sphere; - m_sphere->SetCenter(0., 0., 0.); - m_sphere->SetRadius(5); + m_sphere->SetCenter(0.0, 0.0, 0.0); + m_sphere->SetRadius(5.0); } FemPostSphereFunction::~FemPostSphereFunction() { diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp b/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp index 0fb84f3d7e..b7d9a7b41d 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp @@ -920,7 +920,7 @@ SoGroup* postCylinder() SoLineSet* line = new SoLineSet(); SoGroup* group = new SoGroup(); - line->numVertices.setValues(0,nSide + 2, vert); + line->numVertices.setValues(0, nSide + 2, vert); group->addChild(points); group->addChild(line); @@ -932,11 +932,11 @@ SoGroup* postPlane() { SoCoordinate3* points = new SoCoordinate3(); points->point.setNum(4); - points->point.set1Value(0, -0.5, -0.5, 0); - points->point.set1Value(1, -0.5, 0.5, 0); - points->point.set1Value(2, 0.5, 0.5, 0); - points->point.set1Value(3, 0.5, -0.5, 0); - points->point.set1Value(4, -0.5, -0.5, 0); + points->point.set1Value(0, -0.5, -0.5, 0.0); + points->point.set1Value(1, -0.5, 0.5, 0.0); + points->point.set1Value(2, 0.5, 0.5, 0.0); + points->point.set1Value(3, 0.5, -0.5, 0.0); + points->point.set1Value(4, -0.5, -0.5, 0.0); SoGroup* group = new SoGroup(); SoLineSet* line = new SoLineSet();