You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i struggle with the array ops, i want to calculate the center of the bounding position from the gltf op.
there are two vec3 coords per sphere, i'd like to sum every two bounding coords and divide by 2, hence getting the center of the spheres. there are so many array ops but nothing works for me. i could write a ops but that would defeat the purpose of patching. i write too many ops because i often dont find the right array workflow.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i struggle with the array ops, i want to calculate the center of the bounding position from the gltf op.
there are two vec3 coords per sphere, i'd like to sum every two bounding coords and divide by 2, hence getting the center of the spheres. there are so many array ops but nothing works for me. i could write a ops but that would defeat the purpose of patching. i write too many ops because i often dont find the right array workflow.
https://cables.gl/edit/dijr0c
summary, i try to get the center of two points in an array
Beta Was this translation helpful? Give feedback.
All reactions