File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,9 @@ bool EditMeshBoundingBox::isBoxEmpty() const
267267Core::Datatypes::GeometryHandle EditMeshBoundingBox::buildGeometryObject () {
268268
269269 Core::Datatypes::GeometryHandle geom (new Core::Datatypes::GeometryObject (NULL ));
270- geom->objectName = " Bounding Box" ;
270+ std::ostringstream ostr;
271+ ostr << get_id () << " EditBoundingBox_" << geom.get ();
272+ geom->objectName = ostr.str ();
271273 GeometryObject::ColorScheme colorScheme (GeometryObject::COLOR_UNIFORM);
272274 int64_t numVBOElements = 0 ;
273275 std::vector<std::pair<Point,Point>> bounding_edges;
@@ -447,13 +449,8 @@ Core::Datatypes::GeometryHandle EditMeshBoundingBox::buildGeometryObject() {
447449 uniforms.push_back (GeometryObject::SpireSubPass::Uniform (" uSpecularPower" , 32 .0f ));
448450 for (const auto & uniform : uniforms) { pass.addUniform (uniform); }
449451
450- std::ostringstream ostr;
451- ostr << get_id () << " _" << this ;
452- geom->objectName = ostr.str ();
453-
454452 geom->mPasses .push_back (pass);
455453
456-
457454 return geom;
458455}
459456
Original file line number Diff line number Diff line change @@ -79,7 +79,9 @@ ShowColorMapModule::buildGeometryObject(boost::shared_ptr<SCIRun::Core::Datatype
7979 const std::string& id) {
8080 // set up geometry
8181 Core::Datatypes::GeometryHandle geom (new Core::Datatypes::GeometryObject (NULL ));
82- geom->objectName = " Show Color Map" ;
82+ std::ostringstream ostr;
83+ ostr << get_id () << " ShowColorMap_" << geom.get ();
84+ geom->objectName = ostr.str ();
8385 std::vector<Vector> points;
8486 std::vector<double > colors;
8587 std::vector<uint32_t > indices;
You can’t perform that action at this time.
0 commit comments