whitespace improvements
This commit is contained in:
parent
02b84bd2e1
commit
1c89c566c9
|
@ -133,7 +133,7 @@ void ViewProviderFemConstraintContact::updateData(const App::Property* prop)
|
||||||
|
|
||||||
//first move to correct postion
|
//first move to correct postion
|
||||||
SoTranslation* trans = new SoTranslation();
|
SoTranslation* trans = new SoTranslation();
|
||||||
SbVec3f newPos=base+scaledheight*dir*0.12;
|
SbVec3f newPos=base+scaledheight*dir*0.12f;
|
||||||
trans->translation.setValue(newPos);
|
trans->translation.setValue(newPos);
|
||||||
sep->addChild(trans);
|
sep->addChild(trans);
|
||||||
|
|
||||||
|
@ -159,7 +159,6 @@ void ViewProviderFemConstraintContact::updateData(const App::Property* prop)
|
||||||
trans2->translation.setValue(SbVec3f(0,0,0));
|
trans2->translation.setValue(SbVec3f(0,0,0));
|
||||||
sep->addChild(trans2);
|
sep->addChild(trans2);
|
||||||
|
|
||||||
|
|
||||||
pShapeSep->addChild(sep);
|
pShapeSep->addChild(sep);
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,7 +133,7 @@ void ViewProviderFemConstraintHeatflux::updateData(const App::Property* prop)
|
||||||
///draw a temp gauge,with sphere and a cylinder
|
///draw a temp gauge,with sphere and a cylinder
|
||||||
//first move to correct postion
|
//first move to correct postion
|
||||||
SoTranslation* trans = new SoTranslation();
|
SoTranslation* trans = new SoTranslation();
|
||||||
SbVec3f newPos=base+scaledradius*dir*0.7;
|
SbVec3f newPos=base+scaledradius*dir*0.7f;
|
||||||
trans->translation.setValue(newPos);
|
trans->translation.setValue(newPos);
|
||||||
sep->addChild(trans);
|
sep->addChild(trans);
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ void ViewProviderFemConstraintHeatflux::updateData(const App::Property* prop)
|
||||||
|
|
||||||
//define color of shape
|
//define color of shape
|
||||||
SoMaterial* myMaterial = new SoMaterial;
|
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
|
//myMaterial->diffuseColor.set1Value(1,SbColor(.1,.1,.1));//possible to adjust sides separately
|
||||||
sep->addChild(myMaterial);
|
sep->addChild(myMaterial);
|
||||||
|
|
||||||
|
|
|
@ -139,7 +139,7 @@ void ViewProviderFemConstraintPlaneRotation::updateData(const App::Property* pro
|
||||||
///draw a temp gauge,with sphere and a cylinder
|
///draw a temp gauge,with sphere and a cylinder
|
||||||
//first move to correct postion
|
//first move to correct postion
|
||||||
SoTranslation* trans = new SoTranslation();
|
SoTranslation* trans = new SoTranslation();
|
||||||
SbVec3f newPos=base+scaledradius*dir*0.08;
|
SbVec3f newPos=base+scaledradius*dir*0.08f;
|
||||||
trans->translation.setValue(newPos);
|
trans->translation.setValue(newPos);
|
||||||
sep->addChild(trans);
|
sep->addChild(trans);
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ void ViewProviderFemConstraintTemperature::updateData(const App::Property* prop)
|
||||||
///draw a temp gauge,with sphere and a cylinder
|
///draw a temp gauge,with sphere and a cylinder
|
||||||
//first move to correct postion
|
//first move to correct postion
|
||||||
SoTranslation* trans = new SoTranslation();
|
SoTranslation* trans = new SoTranslation();
|
||||||
SbVec3f newPos=base+scaledradius*dir*0.7;
|
SbVec3f newPos=base+scaledradius*dir*0.7f;
|
||||||
trans->translation.setValue(newPos);
|
trans->translation.setValue(newPos);
|
||||||
sep->addChild(trans);
|
sep->addChild(trans);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user