helios icon indicating copy to clipboard operation
helios copied to clipboard

Make "hitObjectId" numerical

Open han16nah opened this issue 3 years ago • 0 comments

Problem description

Currently, we cannot really use the hitObjectId point cloud parameter when processing the simulation output with pyhelios, because it is not numerical and therefore not written to the output array (when running outputToNumpy(), see output_handling.py#L37

Solution

I would prefer hitObjectId to be numerical. If not setting a custom scenepart ID, the hitObjectID is a unique, incremental ID anyways. However, the id tag of the <part> XML tag currently allows setting a string as scenepart ID.

So we could:

<xs:attribute type="xs:int" name="id" use="optional"/>

han16nah avatar Mar 01 '22 14:03 han16nah