python-3.xvtkvtk.js

vtkOBJImporter id to k3D


How does one access the (g) ID of the obj from the k3d scene objects which I have passed from vtkOBJImporter using the method outlined here.

(g) should be the group name. However I could't find documentation of vtk of where the group name is stored once it is imported by vtkOBJImporter.

.OBJ enter image description here


Solution

  • From the current source code (https://gitlab.kitware.com/vtk/vtk/-/blob/master/IO/Import/vtkOBJImporter.cxx#L275), it seems the g type is not handle by the vtkOBJImporter.

    Feel free to open a feature request (https://gitlab.kitware.com/vtk/vtk/-/issues/new?issue[assignee_id]=&issue[milestone_id]=). Or even a merge request :)