All,

Thanks for your work on BRL-CAD and STEPcode.  I've been studying some of
BRL-CAD's step export capability to learn to use STEPcode to do the same.

In that studying, I found a subtle bug that probably won't bite anybody,
but just to be sure, I wanted to report it here.

The units set up in the geometric context by g-step specifies length and
two plane angle units -- instead, it should specify length, plane angle,
and solid angle.  Running such a file through the checker on STEPTools
chokes.

The change is pretty trivial and I'm not SVN literate, so I'll just
describe the change.

Default_Geometric_Context.cpp, line 190.

Change:
unit_assigned_agg->AddNode(new EntityNode((SDAI_Application_instance
*)ua_entry_3));

To:
unit_assigned_agg->AddNode(new EntityNode((SDAI_Application_instance
*)ua_entry_1));

ua_entry_1 is steradian
ua_entry_2 is degree
ua_entry_3 is radian

This will result in millimeter, degree, steradian.

If you want mm, radian, steradian, also change line 189 to ua_entry_3.

Rob
------------------------------------------------------------------------------
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=60135991&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to