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
When iterating through houio::HouGeo::AttributeAdapter::Ptr, (retrieved with houio::HouGeo::getPointAttributeNames() ), string attributes are not stored by points.
HouGeo::HouAttribute::getString() only returns unique values of a specific attribute.
For instance, there are 10 points with a string attribute.
The value of this attribute is "A" or "B" according to point id (even or odd).
attribute->getNumElements() returns 2 instead of 10
Is there an index by point somewhere to get the value of this attribute for each point ?
The text was updated successfully, but these errors were encountered:
Hi,
the information about this must be somewhere, like an index table, but it is not read or at least not interpreted/unpacked as you would expect. So it seems like duplicate string attributes on points are not functional like this. As a workaround you may be able to enforce a unique string per point by appending the point index to the string when generating the attribute values in houdini.
Sorry for the inconvenience. Looked at this repo the first time after a couple of years and find myself surprised that some people are actually using it :D
Hi,
String attributes are not stored by points.
When iterating through houio::HouGeo::AttributeAdapter::Ptr, (retrieved with houio::HouGeo::getPointAttributeNames() ), string attributes are not stored by points.
HouGeo::HouAttribute::getString() only returns unique values of a specific attribute.
For instance, there are 10 points with a string attribute.
The value of this attribute is "A" or "B" according to point id (even or odd).
attribute->getNumElements() returns 2 instead of 10
Is there an index by point somewhere to get the value of this attribute for each point ?
The text was updated successfully, but these errors were encountered: