Revision: 56912
http://sourceforge.net/p/brlcad/code/56912
Author: starseeker
Date: 2013-08-16 21:41:36 +0000 (Fri, 16 Aug 2013)
Log Message:
-----------
need to figure out why I can't create a PLANE_ANGLE_MEASURE instance
Modified Paths:
--------------
brlcad/trunk/src/conv/step/ON_Brep.cpp
Modified: brlcad/trunk/src/conv/step/ON_Brep.cpp
===================================================================
--- brlcad/trunk/src/conv/step/ON_Brep.cpp 2013-08-16 21:26:35 UTC (rev
56911)
+++ brlcad/trunk/src/conv/step/ON_Brep.cpp 2013-08-16 21:41:36 UTC (rev
56912)
@@ -534,6 +534,21 @@
/* Global Unit Assigned Context */
const char *ua_entry_1_types[4] = {"named_unit", "si_unit",
"solid_angle_unit", "*"};
STEPcomplex *ua_entry_1 = new STEPcomplex(registry, (const char
**)ua_entry_1_types, registry->GetEntityCnt());
+ {
+ STEPcomplex *sc = ua_entry_1->head;
+ while (sc) {
+ if (!strcmp(sc->EntityName(), "Si_Unit")) {
+ sc->ResetAttributes();
+ STEPattribute *attr;
+ while ((attr = sc->NextAttribute()) != NULL) {
+ if (!strcmp(attr->Name(), "name")) attr->ptr.e = new
SdaiSi_unit_name_var(Si_unit_name__steradian);
+ }
+ }
+ sc = sc->sc;
+ }
+ }
+
+
instance_list->Append((STEPentity *)ua_entry_1, completeSE);
const char *ua_entry_2_types[4] = {"conversion_based_unit", "named_unit",
"plane_angle_unit", "*"};
STEPcomplex *ua_entry_2 = new STEPcomplex(registry, (const char
**)ua_entry_2_types, registry->GetEntityCnt());
@@ -581,7 +596,7 @@
if (!strcmp(attr->Name(), "uncertainty")) {
EntityAggregate *unc_agg = new EntityAggregate();
unc_agg->AddNode(new EntityNode((SDAI_Application_instance
*)uncertainty));
- attr->ptr.a = unc_agg;
+ //attr->ptr.a = unc_agg;
}
}
@@ -592,8 +607,10 @@
std::string attrval;
if (!strcmp(attr->Name(), "units")) {
EntityAggregate *unit_assigned_agg = new EntityAggregate();
- //unit_assigned_agg->AddNode(new
EntityNode((SDAI_Application_instance *)uncertainty));
- attr->ptr.a = unit_assigned_agg;
+ unit_assigned_agg->AddNode(new
EntityNode((SDAI_Application_instance *)ua_entry_1));
+ unit_assigned_agg->AddNode(new
EntityNode((SDAI_Application_instance *)ua_entry_2));
+ unit_assigned_agg->AddNode(new
EntityNode((SDAI_Application_instance *)uncertainty));
+ //attr->ptr.a = unit_assigned_agg;
}
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits