[FEM] [skip ci] fine-tune FEM function filter
- just for consistency use always the form "x.0"
This commit is contained in:
@@ -111,8 +111,8 @@ FemPostPlaneFunction::FemPostPlaneFunction() : FemPostFunction() {
|
||||
m_plane = vtkSmartPointer<vtkPlane>::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<vtkSphere>::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() {
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user