isl-org / isl-org/Open3D

Inheritance in python from Geometry3D

Open
#1,425 1 comment 0 reactions 0 assignees View on GitHub
build/install feature request pybind
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

I wanted to make a composite Geometry3D, so I tried to inherit a python class.

>>> class Foo(open3d.geometry.Geometry3D):
... def __init__(self):
... pass

I try to use this I expected some errors about missing methods e.g. 'rotate'...

However,
```
>>> open3d.visualization.draw_geometries([f])
Traceback (most recent call last):
File "", line 1, in
RuntimeError: Unable to cast from non-held to held instance (T& to Holder) (compile in debug mode for type information)
```

What does this mean - is this kind of inheritance on the python side possible?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.