diff options
author | Lars Buitinck <l.buitinck@esciencecenter.nl> | 2014-08-21 16:39:49 +0200 |
---|---|---|
committer | Lars Buitinck <l.buitinck@esciencecenter.nl> | 2014-08-21 16:39:49 +0200 |
commit | 8d8a821104724872ffdd3bf0c802a7c1f55d4826 (patch) | |
tree | a91ffa69b018b522a3a2c9fb151cd653ed46343f /pcl | |
parent | 815e46c253b59de6c0b9a0626f11a1528d3de8e3 (diff) |
add _pcl.pxd to share PointCloud def among Cython modules
Diffstat (limited to 'pcl')
-rw-r--r-- | pcl/_pcl.pxd | 8 | ||||
-rw-r--r-- | pcl/_pcl.pyx | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/pcl/_pcl.pxd b/pcl/_pcl.pxd new file mode 100644 index 0000000..fcd165c --- /dev/null +++ b/pcl/_pcl.pxd @@ -0,0 +1,8 @@ +# Header for _pcl.pyx functionality that needs sharing with other +# modules. + +cimport pcl_defs as cpp + + +cdef class PointCloud: + cdef cpp.PointCloud[cpp.PointXYZ] *thisptr diff --git a/pcl/_pcl.pyx b/pcl/_pcl.pyx index 589fc78..efda972 100644 --- a/pcl/_pcl.pyx +++ b/pcl/_pcl.pyx @@ -132,8 +132,6 @@ cdef class PointCloud: To load a point cloud from disk, use pcl.load. """ - cdef cpp.PointCloud[cpp.PointXYZ] *thisptr - def __cinit__(self, init=None): self.thisptr = new cpp.PointCloud[cpp.PointXYZ]() |