If stl is loaded as binary, it appears to be loaded but not visible on screen

file-formats
(Rjsgml5698) #1

Hello!

I am creating a viewer for stl using the example provided in vtk.js.

However, there is a problem that can not be solved. If stl is loaded as binary, it appears to be loaded, but there is an invisible problem on the screen.

As follows:

The console window looks like this:

When stl is loaded into ascii, it appears on the screen, but ascii is very inefficient.

Is there a way to make stl appear on the screen when it is loaded as binary?

Thank you!!

(Sebastien Jourdain) #2

I’m guessing when you load STL as binary that’s because the STL is encoded as binary?

(Sebastien Jourdain) #3

I’m wondering if all the normals are all backward? Did you try with a white background?

(Rjsgml5698) #6

Thank you for you comment!!

It is as follows. The appearance of stl is invisible.

background: [1, 1, 1] -> white

[Volume rendering]

[STL]

[CONSOLE]