Skip to content

No input issue and removeActor issue #3

@trunghieu-tran

Description

@trunghieu-tran

Hello,

Thanks for your contribution to this library.

I'm developing a Reactjs front-end using this library. I'm facing some issues and need your help.

  1. I got 7 errors (No input!) when I try to visualize an object with Reader from a given URL. But the object still appears on the window. I'm not sure about what properties are missing?
<div style={{width: '40vw', height: '75vh'}}>
  <View>
    <GeometryRepresentation>
      <Reader
              vtkClass="vtkOBJReader"
              url={"https://kitware.github.io/vtk-js-datasets/data/obj-mtl/star-wars-vader-tie-fighter.obj"}
      />
    </GeometryRepresentation>
  </View>
</div>
  1. When the component is unmounted, it occurs the following error:
TypeError: null is not an object (evaluating 'this.view.renderer.removeActor')

Since from my code, I can not touch to .view.renderer.removeActor, how could I fix it?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions