Closed sven-hm closed 7 years ago
ChFiKPart.i
is the same.
But ChFiKPart_headers.i
is still produced with a different order of the includes and compiling leads to the same error quoted above ([...] error: ‘TopOpeBRepDS_DataStructure’ was not declared in this scope [...]
). Here a detaiil from the git diff
:diff --git a/src/SWIG_files/wrapper/ChFiKPart_headers.i b/src/SWIG_files/wrapper/ChFiKPart_headers.i
index fc987fa..0026a71 100644
--- a/src/SWIG_files/wrapper/ChFiKPart_headers.i
+++ b/src/SWIG_files/wrapper/ChFiKPart_headers.i
@@ -18,1404 +18,1404 @@ along with pythonOCC. If not, see <http://www.gnu.org/licenses/>.
*/
%{
-#include<ChFiKPart_ComputeData.hxx>
-#include<ChFiKPart_ComputeData_CS.hxx>
-#include<ChFiKPart_ComputeData_Fcts.hxx>
-#include<ChFiKPart_ComputeData_FilPlnCon.hxx>
-#include<ChFiKPart_ComputeData_FilPlnCyl.hxx>
-#include<ChFiKPart_ComputeData_FilPlnPln.hxx>
#include<ChFiKPart_ComputeData_Rotule.hxx>
+#include<ChFiKPart_ComputeData_FilPlnCyl.hxx>
#include<ChFiKPart_DataMapIteratorOfRstMap.hxx>
#include<ChFiKPart_DataMapNodeOfRstMap.hxx>
+#include<ChFiKPart_ComputeData_FilPlnCon.hxx>
#include<ChFiKPart_RstMap.hxx>
+#include<ChFiKPart_ComputeData.hxx>
+#include<ChFiKPart_ComputeData_CS.hxx>
+#include<ChFiKPart_ComputeData_Fcts.hxx>
+#include<ChFiKPart_ComputeData_FilPlnPln.hxx>
#include<TopOpeBRepDS.hxx>
-#include<TopOpeBRepDS_Array1OfDataMapOfIntegerListOfInterference.hxx>
-#include<TopOpeBRepDS_Association.hxx>
-#include<TopOpeBRepDS_BuildTool.hxx>
-#include<TopOpeBRepDS_Check.hxx>
-#include<TopOpeBRepDS_CheckStatus.hxx>
-#include<TopOpeBRepDS_Config.hxx>
-#include<TopOpeBRepDS_connex.hxx>
-#include<TopOpeBRepDS_Curve.hxx>
-#include<TopOpeBRepDS_CurveData.hxx>
-#include<TopOpeBRepDS_CurveExplorer.hxx>
-#include<TopOpeBRepDS_CurveIterator.hxx>
-#include<TopOpeBRepDS_CurvePointInterference.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfCheckStatus.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfIntegerListOfInterference.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfInterferenceListOfInterference.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfInterferenceShape.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfShapeListOfShapeOn1State.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfShapeState.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfMapOfCurve.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfMapOfIntegerShapeData.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfMapOfPoint.hxx>
-#include<TopOpeBRepDS_DataMapIteratorOfMapOfSurface.hxx>
#include<TopOpeBRepDS_DataMapIteratorOfShapeSurface.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape.hxx>
#include<TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfMapOfCurve.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfMapOfPoint.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfMapOfSurface.hxx>
-#include<TopOpeBRepDS_DataMapNodeOfShapeSurface.hxx>
-#include<TopOpeBRepDS_DataMapOfCheckStatus.hxx>
-#include<TopOpeBRepDS_DataMapOfIntegerListOfInterference.hxx>
-#include<TopOpeBRepDS_DataMapOfInterferenceListOfInterference.hxx>
-#include<TopOpeBRepDS_DataMapOfInterferenceShape.hxx>
-#include<TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State.hxx>
-#include<TopOpeBRepDS_DataMapOfShapeState.hxx>
-#include<TopOpeBRepDS_DataStructure.hxx> <-------
-#include<TopOpeBRepDS_define.hxx>
+#include<TopOpeBRepDS_Transition.hxx>
+#include<TopOpeBRepDS_GapFiller.hxx>
+#include<TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus.hxx>
+#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfIntegerListOfInterference.hxx>
+#include<TopOpeBRepDS_InterferenceIterator.hxx>
+#include<TopOpeBRepDS_PDataStructure.hxx>
#include<TopOpeBRepDS_DoubleMapIteratorOfDoubleMapOfIntegerShape.hxx>
-#include<TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape.hxx>
-#include<TopOpeBRepDS_DoubleMapOfIntegerShape.hxx>
-#include<TopOpeBRepDS_DRAW.hxx>
-#include<TopOpeBRepDS_DSS.hxx>
+#include<TopOpeBRepDS_PointExplorer.hxx>
+#include<TopOpeBRepDS_CurveData.hxx>
+#include<TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State.hxx>
+#include<TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference.hxx>
+#include<TopOpeBRepDS_HDataStructure.hxx>
+#include<TopOpeBRepDS_ShapeSurface.hxx>
+#include<TopOpeBRepDS_ShapeWithState.hxx>
+#include<TopOpeBRepDS_DataMapIteratorOfMapOfSurface.hxx>
+#include<TopOpeBRepDS_ShapeData.hxx>
#include<TopOpeBRepDS_DSX.hxx>
-#include<TopOpeBRepDS_Dumper.hxx>
-#include<TopOpeBRepDS_Edge3dInterferenceTool.hxx>
-#include<TopOpeBRepDS_EdgeInterferenceTool.hxx>
+#include<TopOpeBRepDS_DataMapOfIntegerListOfInterference.hxx>
#include<TopOpeBRepDS_EdgeVertexInterference.hxx>
-#include<TopOpeBRepDS_EIR.hxx>
+#include<TopOpeBRepDS_PointData.hxx>
+#include<TopOpeBRepDS_InterferenceTool.hxx>
#include<TopOpeBRepDS_Explorer.hxx>
-#include<TopOpeBRepDS_EXPORT.hxx>
-#include<TopOpeBRepDS_FaceEdgeInterference.hxx>
-#include<TopOpeBRepDS_FaceInterferenceTool.hxx>
-#include<TopOpeBRepDS_Filter.hxx>
-#include<TopOpeBRepDS_FIR.hxx>
-#include<TopOpeBRepDS_FaceInterferenceTool.hxx>
-#include<TopOpeBRepDS_Filter.hxx>
-#include<TopOpeBRepDS_FIR.hxx>
-#include<TopOpeBRepDS_GapFiller.hxx>
-#include<TopOpeBRepDS_GapTool.hxx>
+#include<TopOpeBRepDS_DataMapIteratorOfMapOfIntegerShapeData.hxx>
+#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfCheckStatus.hxx>
+#include<TopOpeBRepDS_define.hxx>
+#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfShapeListOfShapeOn1State.hxx>
+#include<TopOpeBRepDS_TOOL.hxx>
#include<TopOpeBRepDS_GeometryData.hxx>
-#include<TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference.hxx>
-#include<TopOpeBRepDS_HDataStructure.hxx>
-#include<TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState.hxx>
-#include<TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint.hxx>
-#include<TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData.hxx>
+#include<TopOpeBRepDS_ListOfInterference.hxx>
+#include<TopOpeBRepDS_CheckStatus.hxx>
+#include<TopOpeBRepDS_SurfaceExplorer.hxx>
+#include<TopOpeBRepDS_DataMapOfShapeState.hxx>
+#include<TopOpeBRepDS_Marker.hxx>
+#include<TopOpeBRepDS_PointIterator.hxx>
+#include<TopOpeBRepDS_EIR.hxx>
+#include<TopOpeBRepDS_DataMapNodeOfMapOfCurve.hxx>
+#include<TopOpeBRepDS_SurfaceData.hxx>
+#include<TopOpeBRepDS_Filter.hxx>
+#include<TopOpeBRepDS_FaceEdgeInterference.hxx>
+#include<TopOpeBRepDS_ListNodeOfListOfInterference.hxx>
+#include<TopOpeBRepDS_DataMapOfInterferenceListOfInterference.hxx>
+#include<TopOpeBRepDS_Edge3dInterferenceTool.hxx>
#include<TopOpeBRepDS_IndexedDataMapOfShapeWithState.hxx>
#include<TopOpeBRepDS_IndexedDataMapOfVertexPoint.hxx>
-#include<TopOpeBRepDS_Interference.hxx>
-#include<TopOpeBRepDS_InterferenceIterator.hxx>
-#include<TopOpeBRepDS_InterferenceTool.hxx>
-#include<TopOpeBRepDS_Kind.hxx>
+#include<TopOpeBRepDS_SurfaceCurveInterference.hxx>
+#include<TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData.hxx>
+#include<TopOpeBRepDS_CurveIterator.hxx>
+#include<TopOpeBRepDS_BuildTool.hxx>
+#include<TopOpeBRepDS_Curve.hxx>
+#include<TopOpeBRepDS_repvg.hxx>
+#include<TopOpeBRepDS_Config.hxx>
+#include<TopOpeBRepDS_DataMapOfCheckStatus.hxx>
+#include<TopOpeBRepDS_Surface.hxx>
+#include<TopOpeBRepDS_DataMapNodeOfMapOfPoint.hxx>
+#include<TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape.hxx>
#include<TopOpeBRepDS_ListIteratorOfListOfInterference.hxx>
-#include<TopOpeBRepDS_ListNodeOfListOfInterference.hxx>
-#include<TopOpeBRepDS_ListOfInterference.hxx>
+#include<TopOpeBRepDS_DoubleMapOfIntegerShape.hxx>
+#include<TopOpeBRepDS_DataMapIteratorOfDataMapOfInterferenceShape.hxx>
+#include<TopOpeBRepDS_DataMapNodeOfShapeSurface.hxx>
#include<TopOpeBRepDS_ListOfShapeOn1State.hxx>
+#include<TopOpeBRepDS_CurveExplorer.hxx>
+#include<TopOpeBRepDS_EXPORT.hxx>
+#include<TopOpeBRepDS_Interference.hxx>
+#include<TopOpeBRepDS_DataStructure.hxx> <-------
[...]
I ran the generate_wrapper.py
on linux with python 2.7.6.
How can I fix the order of the includes? Thanks!
Hi, I'm trying to understand the pythonocc-generator and I ran it's release 0.2 on the OCE release 0.16.1 and had some problems with it:
ChFiKPart
from the toolkitTKFillet
:git diff
on the related SWIG filesChFiKPart.i
gives:and on
ChFiKPart_headers.i
it shows that the order is different, which may cause the compiling error.Am I using the python-generator in a wrong way? Thanks in advance for helping! sven