Open schirrmacher opened 4 months ago
Hey @schirrmacher,
thanks for the report. I think the problem is that load_blend
returns a List[Entity]
while compute_poi
requires a List[MeshObject]
(Entity is a parent class of MeshObject). So you would need to filter out all objects that are no MeshObject
first.
If you want the curves to be considered in the poi computation, you probably would need to write your own compute_poi
function.
Describe the issue
I copied some code and was facing an issue with:
I can create a PR if you like, the question is why do some object types not have this function. I simply fixed it with:
in
def compute_poi(objects: List[MeshObject]) -> np.ndarray
.Minimal code example
No response
Files required to run the code
No response
Expected behavior
I would have expected no AttributeError
BlenderProc version
2.7.1