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

@@ -38,15 +38,14 @@ list(APPEND Points_LIBS
${QtConcurrent_LIBRARIES}
)
generate_from_xml(PointsPy)
generate_from_py_(PointsPy)
generate_from_py(Points)
SET(Points_SRCS
AppPoints.cpp
AppPointsPy.cpp
Points.cpp
Points.h
PointsPy.xml
Points.pyi
PointsPyImp.cpp
PointsAlgos.cpp
PointsAlgos.h

View File

@@ -5,7 +5,6 @@ from Data import object
@export(
Father="ComplexGeoDataPy",
Name="PointsPy",
Twin="PointKernel",
TwinPointer="PointKernel",
Include="Mod/Points/App/Points.h",
@@ -14,7 +13,7 @@ from Data import object
FatherNamespace="Data",
Constructor=True,
)
class PointsPy(object):
class Points(object):
"""
Points() -- Create an empty points object.

View File

@@ -1,75 +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="ComplexGeoDataPy"
Include="Mod/Points/App/Points.h"
Name="PointsPy"
Twin="PointKernel"
TwinPointer="PointKernel"
Namespace="Points"
FatherInclude="App/ComplexGeoDataPy.h"
FatherNamespace="Data"
Constructor="true">
<Documentation>
<Author Licence="LGPL" Name="Juergen Riegel" EMail="Juergen.Riegel@web.de" />
<UserDocu>Points() -- Create an empty points object.
This class allows one to manipulate the Points object by adding new points, deleting facets, importing from an STL file,
transforming and much more.
</UserDocu>
</Documentation>
<Methode Name="copy" Const="true">
<Documentation>
<UserDocu>Create a copy of this points object</UserDocu>
</Documentation>
</Methode>
<Methode Name="read">
<Documentation>
<UserDocu>Read in a points object from file.</UserDocu>
</Documentation>
</Methode>
<Methode Name="write" Const="true">
<Documentation>
<UserDocu>Write the points object into file.</UserDocu>
</Documentation>
</Methode>
<Methode Name="writeInventor" Const="true">
<Documentation>
<UserDocu>Write the points in OpenInventor format to a string.</UserDocu>
</Documentation>
</Methode>
<Methode Name="addPoints" >
<Documentation>
<UserDocu>add one or more (list of) points to the object</UserDocu>
</Documentation>
</Methode>
<Methode Name="fromSegment" Const="true">
<Documentation>
<UserDocu>Get a new point object from a given segment</UserDocu>
</Documentation>
</Methode>
<Methode Name="fromValid" Const="true">
<Documentation>
<UserDocu>Get a new point object from points with valid coordinates (i.e. that are not NaN)</UserDocu>
</Documentation>
</Methode>
<Attribute Name="CountPoints" ReadOnly="true">
<Documentation>
<UserDocu>Return the number of vertices of the points object.</UserDocu>
</Documentation>
<Parameter Name="CountPoints" Type="Long" />
</Attribute>
<Attribute Name="Points" ReadOnly="true">
<Documentation>
<UserDocu>A collection of points
With this attribute it is possible to get access to the points of the object
for p in pnt.Points:
print p
</UserDocu>
</Documentation>
<Parameter Name="Points" Type="List" />
</Attribute>
</PythonExport>
</GenerateModel>