Revision: 56914
          http://sourceforge.net/p/brlcad/code/56914
Author:   starseeker
Date:     2013-08-17 01:29:41 +0000 (Sat, 17 Aug 2013)
Log Message:
-----------
Mark Pictor figured it out - the key is SetUnderlyingType

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:44:02 UTC (rev 
56913)
+++ brlcad/trunk/src/conv/step/ON_Brep.cpp      2013-08-17 01:29:41 UTC (rev 
56914)
@@ -567,14 +567,12 @@
     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;
+    SdaiPlane_angle_measure_with_unit *p_ang_measure_with_unit = 
(SdaiPlane_angle_measure_with_unit 
*)registry->ObjCreate("PLANE_ANGLE_MEASURE_WITH_UNIT");
     // 1 degree = 0.01745329252 radians 
-    p_ang_meas->value_component_(new SdaiMeasure_value(0.01745329252, desc));
-    instance_list->Append((STEPentity *)p_ang_meas, completeSE);
+    SdaiMeasure_value * p_ang_measure_value = new 
SdaiMeasure_value(0.01745329252,config_control_design::t_measure_value);
+    p_ang_measure_value->SetUnderlyingType( 
config_control_design::t_plane_angle_measure );
+    p_ang_measure_with_unit->value_component_(p_ang_measure_value);
+    instance_list->Append((STEPentity *)p_ang_measure_with_unit, completeSE);
 
 
     /* For advanced brep, need to create and add a representation context.  
This is a

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