Mesh Armature

class coperniFUS.modules.armatures.mesh_armatures.STLMeshArmature(armature_display_name, parent_viewer, stereotax_frame_instance, **kwargs)[source]

Bases: Armature

add_render()[source]

Called when populating the viewer with the module rendered objects

update_render(force_update=False)[source]

Called on render view updates

delete_render()[source]

Called on deletion of the module rendered objects

custom_armature_param_widgets(armature_params_rowcount, armature_params_colcount)[source]

List of widgets to be added in the Armature Parameters section of the Stereotaxic Frame Module dock.

class coperniFUS.modules.armatures.mesh_armatures.TrimeshScriptArmature(armature_display_name, parent_viewer, stereotax_frame_instance, **kwargs)[source]

Bases: Armature

add_render()[source]

Called when populating the viewer with the module rendered objects

update_render(force_update=False)[source]

Called on render view updates

delete_render()[source]

Called on deletion of the module rendered objects

custom_armature_param_widgets(armature_params_rowcount, armature_params_colcount)[source]

List of widgets to be added in the Armature Parameters section of the Stereotaxic Frame Module dock.

class coperniFUS.modules.armatures.mesh_armatures.STLMeshBooleanArmature(armature_display_name, parent_viewer, stereotax_frame_instance, **kwargs)[source]

Bases: STLMeshArmature

property bmask_mesh

Mesh object to be used as a boolean mask. The mesh is defined as a trimesh script in armature_config_dict[‘_boolean_mask’][‘_boolean_mask_trimesh_script’]. Uppon execution, the script should define a ‘mesh’ object.

compute_boolean_operation()[source]

Supported boolean operations: - difference - intersection - union

add_render()[source]

Called when populating the viewer with the module rendered objects

update_render(force_update=False)[source]

Called on render view updates

delete_render()[source]

Called on deletion of the module rendered objects

custom_armature_param_widgets(armature_params_rowcount, armature_params_colcount)[source]

List of widgets to be added in the Armature Parameters section of the Stereotaxic Frame Module dock.

class coperniFUS.modules.armatures.mesh_armatures.STLMeshConvexHull(armature_display_name, parent_viewer, stereotax_frame_instance, **kwargs)[source]

Bases: STLMeshArmature

compute_convex_hull()[source]

Implementaion of https://trimesh.org/trimesh.base.html#trimesh.base.Trimesh.convex_hull

custom_armature_param_widgets(armature_params_rowcount, armature_params_colcount)[source]

List of widgets to be added in the Armature Parameters section of the Stereotaxic Frame Module dock.