whitespace improvements

This commit is contained in:
wmayer 2016-08-04 17:26:12 +02:00
parent 02b84bd2e1
commit 1c89c566c9
7 changed files with 220 additions and 221 deletions

View File

@ -133,7 +133,7 @@ void ViewProviderFemConstraintContact::updateData(const App::Property* prop)
//first move to correct postion
SoTranslation* trans = new SoTranslation();
SbVec3f newPos=base+scaledheight*dir*0.12;
SbVec3f newPos=base+scaledheight*dir*0.12f;
trans->translation.setValue(newPos);
sep->addChild(trans);
@ -159,7 +159,6 @@ void ViewProviderFemConstraintContact::updateData(const App::Property* prop)
trans2->translation.setValue(SbVec3f(0,0,0));
sep->addChild(trans2);
pShapeSep->addChild(sep);
n++;
}

View File

@ -133,7 +133,7 @@ void ViewProviderFemConstraintHeatflux::updateData(const App::Property* prop)
///draw a temp gauge,with sphere and a cylinder
//first move to correct postion
SoTranslation* trans = new SoTranslation();
SbVec3f newPos=base+scaledradius*dir*0.7;
SbVec3f newPos=base+scaledradius*dir*0.7f;
trans->translation.setValue(newPos);
sep->addChild(trans);
@ -144,7 +144,7 @@ void ViewProviderFemConstraintHeatflux::updateData(const App::Property* prop)
//define color of shape
SoMaterial* myMaterial = new SoMaterial;
myMaterial->diffuseColor.set1Value(0,SbColor(0.65,0.1,0.25));//RGB
myMaterial->diffuseColor.set1Value(0,SbColor(0.65f,0.1f,0.25f));//RGB
//myMaterial->diffuseColor.set1Value(1,SbColor(.1,.1,.1));//possible to adjust sides separately
sep->addChild(myMaterial);

View File

@ -139,7 +139,7 @@ void ViewProviderFemConstraintPlaneRotation::updateData(const App::Property* pro
///draw a temp gauge,with sphere and a cylinder
//first move to correct postion
SoTranslation* trans = new SoTranslation();
SbVec3f newPos=base+scaledradius*dir*0.08;
SbVec3f newPos=base+scaledradius*dir*0.08f;
trans->translation.setValue(newPos);
sep->addChild(trans);

View File

@ -132,7 +132,7 @@ void ViewProviderFemConstraintTemperature::updateData(const App::Property* prop)
///draw a temp gauge,with sphere and a cylinder
//first move to correct postion
SoTranslation* trans = new SoTranslation();
SbVec3f newPos=base+scaledradius*dir*0.7;
SbVec3f newPos=base+scaledradius*dir*0.7f;
trans->translation.setValue(newPos);
sep->addChild(trans);