Revision: 57049
          http://sourceforge.net/p/brlcad/code/57049
Author:   starseeker
Date:     2013-08-22 02:05:50 +0000 (Thu, 22 Aug 2013)
Log Message:
-----------
FreeCAD doesn't yet import our step file, since we have no shape definition.  
Start listing out what we will need for one of those.

Modified Paths:
--------------
    brlcad/trunk/src/conv/step/g-step/ON_Brep.cpp

Modified: brlcad/trunk/src/conv/step/g-step/ON_Brep.cpp
===================================================================
--- brlcad/trunk/src/conv/step/g-step/ON_Brep.cpp       2013-08-21 23:46:22 UTC 
(rev 57048)
+++ brlcad/trunk/src/conv/step/g-step/ON_Brep.cpp       2013-08-22 02:05:50 UTC 
(rev 57049)
@@ -426,6 +426,30 @@
     return complex_entity;
 }
 
+/* Defining a shape, we need:
+ * SHAPE_DEFINITION_REPRESENTATION
+ * PRODUCT_DEFINITION_SHAPE
+ * PRODUCT_DEFINITION
+ * PRODUCT_DEFINITION_FORMATION_WITH_SPECIFIED_SOURCE
+ * PRODUCT
+ * MECHANICAL_CONTEXT
+ * APPLICATION_CONTEXT
+ * DESIGN_CONTEXT
+ *
+ * Also of possible interest here - APPLICATION_PROTOCOL_DEFINITION
+ *
+ * Need to figure out which of these are global and which are specific
+ * to the particular shape definition.  Some clearly are global...
+ */
+STEPentity *
+Add_Shape_Definition(Registry *registry, InstMgr *instance_list)
+{
+    STEPentity *shape_def_rep = 
registry->ObjCreate("SHAPE_DEFINITION_REPRESENTATION");
+    instance_list->Append(shape_def_rep, completeSE);
+    return shape_def_rep;
+}
+
+
 #if 0
 void
 ON_RationalNurbsCurve_to_EntityAggregate(ON_NurbsCurve *incrv, 
SdaiRational_B_spline_curve *step_crv) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to