BlueBrain / BlueBrain/NeuroMorphoVis

Voxelization Error in Blender 4.2.3

Open
#218 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
138
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Apologies if this is user error, I couldn't find a support email. It seems anytime I try to use voxel meshing in Blender 4.2.3 I receive an error such as this one and it fails:

```
Error: Python: Traceback (most recent call last):
File "C:\Users\beatn\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\NeuroMorphoVis-master\nmv\interface\ui\mesh\ops_reconstruction.py", line 71, in execute
nmv.interface.ui_reconstructed_mesh = mesh_builder.reconstruct_mesh()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\beatn\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\NeuroMorphoVis-master\nmv\builders\mesh\voxelization_builder.py", line 332, in reconstruct_mesh
result, stats = self.PROFILE(self.initialize_builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\beatn\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\NeuroMorphoVis-master\nmv\utilities\timer.py", line 88, in profile_function
function_return = function(*args)
^^^^^^^^^^^^^^^
File "C:\Users\beatn\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\NeuroMorphoVis-master\nmv\builders\mesh\voxelization_builder.py", line 108, in initialize_builder
smallest_radius = nmv.skeleton.get_smallest_sample_radius_of_trimmed_morphology(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\beatn\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\NeuroMorphoVis-master\nmv\skeleton\ops\skeleton_geometry_ops.py", line 796, in get_smallest_sample_radius_of_trimmed_morphology
nmv.skeleton.ops.apply_operation_to_trimmed_morphology(
File "C:\Users\beatn\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\NeuroMorphoVis-master\nmv\skeleton\ops\skeleton_generic_ops.py", line 255, in apply_operation_to_trimmed_morphology
for arbor in morphology.basal_dendrites:
TypeError: 'NoneType' object is not iterable
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing voxel meshing in Blender 4.2.3 and follow the traceback from nmv/builders/mesh/voxelization_builder.py into nmv/skeleton/ops/skeleton_generic_ops.py. Inspect how morphology.basal_dendrites is populated before apply_operation_to_trimmed_morphology iterates over it. Done means the reported voxel-meshing failure is resolved and the relevant reconstruction path completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
blender, python
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.