I'm trying to generate a pdf from the viewer adapting threejs-pdf-renderer library.
This PDFRenderer needs a Scene and a Camera object in its render method.
As per the library example, I should create or pass a scene containing children but when I try with my autodesk-Viewer sample app, the viewer's scene children array (viewer.impl.scene
and viewer.impl.sceneAfter
) is always empty and I always get a blank PDF.
Is having the viewer's scene children empty as expected? If so, how can I get all drawn elements in order to add it to a new Scene so I can pass this parameter to the PDfRenderer's render method?
I've been trying different solutions without success, even tried adding
viewer.model.getConsolidation().meshes
array to a scene, but I think it's not the correct way.
Thanks in advance.