Finalizing Python interface bindings for Import, Measure, Mesh, Points.

This commit is contained in:
Ian 'z0r0' Abreu
2025-08-31 15:34:03 -04:00
parent e8ea685e1b
commit ca435629b8
29 changed files with 37 additions and 1404 deletions

View File

@@ -29,7 +29,7 @@ SET(Import_SRCS
ReaderIges.h
ReaderStep.cpp
ReaderStep.h
StepShapePy.xml
StepShape.pyi
StepShape.h
StepShape.cpp
StepShapePyImp.cpp
@@ -76,8 +76,7 @@ SET(SCL_Resources
)
SOURCE_GROUP("SCL" FILES ${SCL_Resources})
generate_from_xml(StepShapePy)
generate_from_py_(StepShapePy)
generate_from_py(StepShape)
add_library(Import SHARED ${Import_SRCS})
target_link_libraries(Import ${Import_LIBS})

View File

@@ -4,18 +4,12 @@ from Base.Metadata import export
from Base.PyObjectBase import PyObjectBase
@export(
Father="PyObjectBase",
Name="StepShapePy",
Twin="StepShape",
TwinPointer="StepShape",
Include="Mod/Import/App/StepShape.h",
Namespace="Import",
FatherInclude="Base/PyObjectBase.h",
FatherNamespace="Base",
Constructor=True,
Delete=True,
)
class StepShapePy(PyObjectBase):
class StepShape(PyObjectBase):
"""
StepShape in Import
This class gives a interface to retrieve TopoShapes out of an loaded STEP file of any kind.

View File

@@ -1,30 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
<PythonExport
Father="PyObjectBase"
Name="StepShapePy"
Twin="StepShape"
TwinPointer="StepShape"
Include="Mod/Import/App/StepShape.h"
FatherInclude="Base/PyObjectBase.h"
Namespace="Import"
Constructor="true"
Delete="true"
FatherNamespace="Base">
<Documentation>
<Author Licence="LGPL" Name="Juergen Riegel" EMail="Juergen.Riegel@web.de" />
<DeveloperDocu>StepShape in a Import</DeveloperDocu>
<UserDocu>StepShape in Import
This class gives a interface to retrieve TopoShapes out of an loaded STEP file of any kind.
</UserDocu>
</Documentation>
<Methode Name="read">
<Documentation>
<UserDocu>method read()
Read a STEP file into memory and make it accessible
</UserDocu>
</Documentation>
</Methode>
</PythonExport>
</GenerateModel>