Description
Try to export example: nyuv2-bedroom_0114
When running the following code:
NODE_BASE_URL=http://localhost:8010`` ./export-annotated-ply.js --id bedroom_0114 --source nyuv2 --ann_type raw --label_mapping data/nyuv2-scannet-labels-mpr40.combined.tsv --outlabels labels.csv
The following
got options [Object: null prototype] { source: 'nyuv2', autoAlign: false, autoScale: false, computeNormals: true } Load custom segmentType: annSegments Segmentation element type not specified for segmentGroups assuming vertices setSegments: 45.175ms Segments.loadSegments: 56.171ms webpack://STK/./js/lib/geo/Segments.js?:1156 if (!segLabelDatum[segIndexInfo.type]) { ^ [TypeError: Cannot read properties of undefined (reading 'type')
The reason is: there is a bug in defining segIndexInfo.
var segIndexInfo = segmentedObject.userData.segIndexInfo || { type: 'segmentGroup', field: 'index' };
Solution:
Add definition in client/js/lib/geo/Segments.js.
Add definition in function : getColorLabel(segment_data, segIndexInfo)
var segIndexInfo = { type: 'segmentGroup', field: 'index' };