0

Im trying to use the xtk visualization library with react. Im running into a type error that says that default.a.renderer3D is not a constructor. Can anyone tell me why this is happening, this is my first time using react so Im guessing its a really simple mistake that one of you guys can help me with. Here is the part that is giving me a problem:

componentDidMount = function(){
  var v = new X.renderer3D();
  v.container='v';
  v.init();
  var randF = new X.mesh();
  randF.file = '../Assets/rgrid.vtk';
  v.add(randF);
  v.render();

}

0 Answers0