(mesh, info)
| 158 | title="Voxel radius ratio", with_total=False); |
| 159 | |
| 160 | def print_voxel_info(mesh, info): |
| 161 | if mesh.dim == 2: |
| 162 | return; |
| 163 | if (mesh.num_voxels == 0): |
| 164 | print_section_header("Volume Estimation"); |
| 165 | volume = mesh.volume; |
| 166 | print("volume estimation: {:.6g}".format(volume)); |
| 167 | info["volume_estimation"] = volume; |
| 168 | else: |
| 169 | mesh.add_attribute("voxel_volume"); |
| 170 | voxel_volume = mesh.get_attribute("voxel_volume"); |
| 171 | quantile_breakdown(voxel_volume, "volume", info); |
| 172 | |
| 173 | def print_extended_info(mesh, info): |
| 174 | print_section_header("Extended info"); |
no test coverage detected