(field_data, names, location="PointData")
| 99 | |
| 100 | |
| 101 | def field_data(field_data, names, location="PointData"): |
| 102 | fields = [] |
| 103 | for name in names: |
| 104 | array = field_data.GetArray(name) |
| 105 | js_array = data_array(array, location, name) |
| 106 | if js_array: |
| 107 | fields.append(js_array) |
| 108 | |
| 109 | return fields |
| 110 | |
| 111 | |
| 112 | def mesh(dataset, field_to_keep=None, point_arrays=None, cell_arrays=None): |
no test coverage detected