@@ -81,8 +81,8 @@ void ShowFieldModule::setStateDefaults()
8181 state->setValue (FaceTransparencyValue, 0 .65f );
8282 state->setValue (EdgeTransparencyValue, 0 .65f );
8383 state->setValue (SphereScaleValue, 1.0 );
84- state->setValue (CylinderRadius, 0.05 );
85- state->setValue (CylinderResolution, 8 );
84+ state->setValue (CylinderRadius, 1.0 );
85+ state->setValue (CylinderResolution, 5 );
8686 faceTransparencyValue_ = 0 .65f ;
8787 edgeTransparencyValue_ = 0 .65f ;
8888 sphereScalar_ = 1.0 ;
@@ -200,11 +200,6 @@ GeometryHandle ShowFieldModule::buildGeometryObject(
200200 bool showNodes = state->getValue (ShowFieldModule::ShowNodes).toBool ();
201201 bool showEdges = state->getValue (ShowFieldModule::ShowEdges).toBool ();
202202 bool showFaces = state->getValue (ShowFieldModule::ShowFaces).toBool ();
203- const ColorRGB meshColor (state->getValue (ShowFieldModule::DefaultMeshColor).toString ());
204- float meshRed = static_cast <float >(meshColor.r () / 255 .0f );
205- float meshGreen = static_cast <float >(meshColor.g () / 255 .0f );
206- float meshBlue = static_cast <float >(meshColor.b () / 255 .0f );
207-
208203 // Resultant geometry type (representing a spire object and a number of passes).
209204 GeometryHandle geom (new GeometryObject (field));
210205 geom->objectName = id;
@@ -1471,11 +1466,9 @@ void ShowFieldModule::renderEdges(
14711466 }
14721467 GeometryObject::SpireIBO::PRIMITIVE primIn = GeometryObject::SpireIBO::LINES;
14731468 // Use cylinders...
1474- if (state.get (RenderState::USE_CYLINDER)) {
1475- renderType = GeometryObject::RENDER_VBO_IBO;
1469+ if (state.get (RenderState::USE_CYLINDER))
14761470 primIn = GeometryObject::SpireIBO::TRIANGLES;
14771471 vboOnGPU = true ;
1478- }
14791472 auto my_state = this ->get_state ();
14801473 double num_strips = double (my_state->getValue (CylinderResolution).toInt ());
14811474 double radius = my_state->getValue (CylinderRadius).toDouble ();
0 commit comments