Hello all,
I'm trying to use point attributes as a z value to create a 2.5D surface
mesh. I'm a little confused about how to use point_attributes. I have
tried:
info.point_attributes(p_attrs)
TypeError: 'meshpy._internals.RealArray' object is not callable
info.point_attributes = p_attrs
AttributeError: can't set attribute
I've also tried to treat it like regions
info.point_attributes.setup()
info.point_attributes.resize(len(points))
RuntimeError: sizes of slave arrays cannot be changed
for i, p in info.points:
info.point_attributes[i] = 0 # or whatever number
IndexError: index out of bounds
I feel like I'm missing something pretty simple. If anyone knows how to do
this in meshpy please let me know. Any help would be greatly appreciated!
Thanks,
Matthew