Closed TK-21st closed 2 years ago
@yiyin, related to my comment in #32, can you add in comments/edits to this issue?
made some edits above
made some edits above
Great! Thanks! Will add this to a schema checker to object loader.
[v[0].x, v[0].y, v[0].z, v[1].x, v[1].y, v[1].z, ...]
not currently defined
Thanks @yiyin! Closed by 1a01f9450c0b46a6e2bf4fcd8b62dd97e9033520
Neu3D currently handles loading data of a few formats, here we standardize the input data formats.
Input format
MorphologyData sent for multiple objects should be a dictionary with the rid of Morphology data as the key, and each value is a dictionary with the following fields:
MeshDict Object (output items in MeshDict)
if loading from file
if loading from Obj
Morphology Transformations
The following attributes will be applied to all except gltf files.
Attributes added by
_registerObject
SWC (
loadSWCCallBack
)Each row of the
swcString
is assumed to be a length-7 array with each item corresponding to the following entriestype
parent = -1
indicates rootMesh (
loadMeshCallBack
)MorphJSON (
loadMorphJSONCallBack
)MorphJSON is assumed to be a json of 7 fields (as below) where each field is an array of corresponding items.
identifiers used for Neurons:
GLTF (
loadGltfCallBack
)