Opened 13 months ago

Closed 13 months ago

Last modified 13 months ago

#16034 closed defect (fixed)

GLTF: Cannot center nodes because a node has both a mesh and children

Reported by: mbopf@… Owned by: Tom Goddard
Priority: moderate Milestone:
Component: Input/Output Version:
Keywords: Cc: pett
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

As we discussed yesterday, I updated the NIH3D Workflows to yesterday’s daily build of ChimeraX to get the centering feature that Kristen requested. This throws and error (and segfault on MacOS) when we try to process PDB 3NIR.

I think this is the main error:

INFO prefect.ShellTask:shell.py:151 File "/usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/gltf/gltf.py", line 633, in check_node_centering_possible
INFO prefect.ShellTask:shell.py:151 raise UserError('Cannot center nodes because a node has both a mesh and children')

Attachments (2)

3NIR-ribbon-vis.cxs (37.6 KB ) - added by pett 13 months ago.
Session just before the error
3NIR_chimerax_error.txt (9.5 KB ) - added by Tom Goddard 13 months ago.
Error output from Mike Bopf

Download all attachments as: .zip

Change History (6)

by pett, 13 months ago

Attachment: 3NIR-ribbon-vis.cxs added

Session just before the error

comment:1 by pett, 13 months ago

I had trouble reproducing this outside the workflows, but when I forced the workflow to poop out a session just before the problematic GLTF save, then the error could be reproduced...

by Tom Goddard, 13 months ago

Attachment: 3NIR_chimerax_error.txt added

Error output from Mike Bopf

comment:2 by Tom Goddard, 13 months ago

Resolution: fixed
Status: assignedclosed

Fixed.

Code now allows output GLTF with nodes centered when a ChimeraX drawing has both a mesh and child nodes. This happened when ribbons had tethers connected to the side chains. The ribbon model had a mesh which was the ribbon and a child drawing for the tethers. The fix turned the mesh into a separate node in GLTF. The GLTF node centering should now work on all scenes.

comment:3 by Tom Goddard, 13 months ago

Another surprise I noticed while testing was that the new missing segment labels appear in the GLTF output. Those new labels show how many residues are missing above the dashed line representing the missing segment. I'm not sure whether this recent feature will cause the labels to appear in NIH3D models (probably undesired). Eric would know.

comment:4 by pett, 13 months ago

They will only show up in "visualization" outputs. Printable outputs hide missing-structure pseudobonds.

Note: See TracTickets for help on using tickets.