Revision: 56951
          http://sourceforge.net/p/brlcad/code/56951
Author:   brlcad
Date:     2013-08-19 14:24:43 +0000 (Mon, 19 Aug 2013)
Log Message:
-----------
use our considerably more precise DEG2RAD constant, no explanation needed.  
need common.h before system headers.

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-19 11:48:36 UTC (rev 
56950)
+++ brlcad/trunk/src/conv/step/ON_Brep.cpp      2013-08-19 14:24:43 UTC (rev 
56951)
@@ -57,9 +57,13 @@
 // Note that STEPentity is the same thing as SDAI_Application_instance... see 
src/clstepcore/sdai.h line 220
 //
 
+#include "common.h"
+
 #include <sstream>
+
 #include "STEPEntity.h"
 
+
 void
 ON_3dPoint_to_Cartesian_point(ON_3dPoint *inpnt, SdaiCartesian_point 
*step_pnt) {
     RealAggregate_ptr coord_vals = step_pnt->coordinates_();
@@ -567,8 +571,7 @@
     instance_list->Append((STEPentity *)ua_entry_3, completeSE);
 
     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 
-    SdaiMeasure_value * p_ang_measure_value = new 
SdaiMeasure_value(0.01745329252,config_control_design::t_measure_value);
+    SdaiMeasure_value * p_ang_measure_value = new 
SdaiMeasure_value(DEG2RAD,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);
     SdaiUnit *p_ang_unit = new SdaiUnit((SdaiNamed_unit *)ua_entry_3);

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