[chimerax-users] Hidden points present in gltf file

Tom Goddard goddard at sonic.net
Wed Oct 6 10:56:05 PDT 2021


Hi Brandon,

  I guess you are using the "surface dust" command or Hide Dust tool in ChimeraX to hide small surface blobs.  Then when you export as GLTF it includes the displayed triangles.  Each triangle is defined by three indices into an array of vertices.  That array of vertices includes all the hidden blob vertices too, which is I think what you are observing.  ChimeraX does not get rid of the vertices that are part of the hidden blobs, because they are merely hidden and you may want to redisplay them.  ChimeraX also does not currently have a way of deleting the hidden blobs.

  I don't know how you are analyzing the GLTF, but if you write your own code to do it then you could take just the vertex indices that appear in the GLTF array of triangles.  If this is too difficult I could give you some Python code so ChimeraX could delete the hidden vertices and hidden triangles.

	Tom


> On Oct 6, 2021, at 10:18 AM, Scott, Brandon L. via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
> 
> I'm having an issue with gltf exporting with hidden objects. The surface that is exported looks correct; however, when querying the points in the exported file all the hidden ones are there as well which is hindering a downstream analysis.  
> 
> Exported gltf:
> 
> Rendered points from gltf:
> 
> Brandon Scott, PhD CZI Imaging Scientist, Research Assistant Professor
> Nanoscience & Nanoengineering
> South Dakota Mines
> 501 E. Saint Joseph St., Rapid City, SD 57701
> 724.510.1253 | Brandon.Scott at sdsmt.edu <mailto:Brandon.Scott at sdsmt.edu>
>  <https://www.sdsmt.edu/>
>  <https://www.facebook.com/SouthDakotaMines/> <https://www.instagram.com/southdakotamines/> <https://twitter.com/sdsmt> <https://www.snapchat.com/add/sdsmt>
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu <mailto:ChimeraX-users at cgl.ucsf.edu>
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users <https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20211006/52ed0f4a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 286182 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20211006/52ed0f4a/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 77986 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20211006/52ed0f4a/attachment-0003.png>


More information about the ChimeraX-users mailing list