Revision: 57839
http://sourceforge.net/p/brlcad/code/57839
Author: starseeker
Date: 2013-09-23 18:40:50 +0000 (Mon, 23 Sep 2013)
Log Message:
-----------
Quote comb names
Modified Paths:
--------------
brlcad/trunk/src/conv/step/g-step/Comb_Tree.cpp
Modified: brlcad/trunk/src/conv/step/g-step/Comb_Tree.cpp
===================================================================
--- brlcad/trunk/src/conv/step/g-step/Comb_Tree.cpp 2013-09-23 18:07:28 UTC
(rev 57838)
+++ brlcad/trunk/src/conv/step/g-step/Comb_Tree.cpp 2013-09-23 18:40:50 UTC
(rev 57839)
@@ -24,6 +24,7 @@
*
*/
+#include <sstream>
#include <map>
#include <set>
#include "bu.h"
@@ -53,6 +54,10 @@
STEPentity *
Comb_to_STEP(struct directory *dp, Registry *registry, InstMgr *instance_list)
{
+ std::ostringstream ss;
+ ss << "'" << dp->d_namep << "'";
+ std::string str = ss.str();
+
// MECHANICAL_CONTEXT
SdaiMechanical_context *mech_context = (SdaiMechanical_context
*)registry->ObjCreate("MECHANICAL_CONTEXT");
instance_list->Append((STEPentity *)mech_context, completeSE);
@@ -91,7 +96,7 @@
instance_list->Append((STEPentity *)prod, completeSE);
prod_def_form->of_product_(prod);
prod->id_("''");
- prod->name_(dp->d_namep);
+ prod->name_(str.c_str());
prod->description_("''");
prod->frame_of_reference_()->AddNode(new
EntityNode((SDAI_Application_instance *)mech_context));
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits