Revision: 56910
          http://sourceforge.net/p/brlcad/code/56910
Author:   starseeker
Date:     2013-08-16 21:00:55 +0000 (Fri, 16 Aug 2013)
Log Message:
-----------
Need to check with Mark about t_plane_angle_measure - it *looks* like it should 
be a SelectTypeDescriptor, but it's currently just a TypeDescriptor.

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 20:44:15 UTC (rev 
56909)
+++ brlcad/trunk/src/conv/step/ON_Brep.cpp      2013-08-16 21:00:55 UTC (rev 
56910)
@@ -531,7 +531,36 @@
        }
     }
 
+    /* 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());
+    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());
+    instance_list->Append((STEPentity *)ua_entry_2, completeSE);
+    const char *ua_entry_3_types[4] = {"named_unit", "plane_angle_unit", 
"si_unit", "*"};
+    STEPcomplex *ua_entry_3 = new STEPcomplex(registry, (const char 
**)ua_entry_3_types, registry->GetEntityCnt());
+    instance_list->Append((STEPentity *)ua_entry_3, completeSE);
 
+    SdaiDimensional_exponents *dimensional_exp = (SdaiDimensional_exponents 
*)registry->ObjCreate("DIMENSIONAL_EXPONENTS");
+    dimensional_exp->length_exponent_(0.0);
+    dimensional_exp->mass_exponent_(0.0);
+    dimensional_exp->time_exponent_(0.0);
+    dimensional_exp->electric_current_exponent_(0.0);
+    dimensional_exp->thermodynamic_temperature_exponent_(0.0);
+    dimensional_exp->amount_of_substance_exponent_(0.0);
+    dimensional_exp->luminous_intensity_exponent_(0.0);
+    instance_list->Append((STEPentity *)dimensional_exp, completeSE);
+
+    SdaiPlane_angle_measure_with_unit *p_ang_meas = 
(SdaiPlane_angle_measure_with_unit 
*)registry->ObjCreate("PLANE_ANGLE_MEASURE_WITH_UNIT");
+    SdaiPlane_angle_measure *p_angle_measure = new 
SdaiPlane_angle_measure(0.01745329252);
+    // TODO - FEDEX_PLUS Bug?  plane_angle_measure is a TypeDescriptor, not a 
SelectTypeDescriptor - the following shouldn't be necessary
+    // and doesn't produce a correct result anyway. 
+    SelectTypeDescriptor *desc = (SelectTypeDescriptor 
*)config_control_design::t_plane_angle_measure;
+    p_ang_meas->value_component_(new SdaiMeasure_value(0.01745329252, desc));
+    instance_list->Append((STEPentity *)p_ang_meas, completeSE);
+
+
     /* For advanced brep, need to create and add a representation context.  
This is a
      * complex type of four other types: */
     const char *entNmArr[5] = {"geometric_representation_context", 
"global_uncertainty_assigned_context",

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

Reply via email to