Trimesh Interfaces

class coperniFUS.modules.interfaces.trimesh_interfaces.TrimeshHandler(parent_viewer, **kwargs)[source]

Bases: object

property stl_item_mesh_processed

Mesh object with affine transformation and boolean operations (if applicable) applied

property stl_item_mesh

Mesh object with affine transformation applied

property raw_stl_item_mesh

Raw mesh object without any affine transformations or processing applied

property stl_item_tmat

Holds the affine transformation matrix for the trimesh object

add_rendered_object()[source]

Called when populating the viewer with the module rendered objects

update_rendered_object()[source]

Called on render view updates

delete_rendered_object()[source]

Called on deletion of the module rendered objects

get_user_param(param_name, default_value=None)[source]

Get module configuration parameter stored in cache (or default values if non existant)

set_user_param(param_name, param_value)[source]

Set module configuration parameter to cache

class coperniFUS.modules.interfaces.trimesh_interfaces.TrimeshScriptHandler(parent_viewer, **kwargs)[source]

Bases: TrimeshHandler

property trimesh_script

Script to be used to construct the trimesh mesh. Uppon execution, the script should define a ‘mesh’ object.

property trimesh_script_constants_dict

Constants to be provided uppon evaluation of the trimesh_script. Constants keys in trimesh_script_constants_dict can be referenced trimesh_script

eval_scripted_mesh()[source]

Trimesh mesh object constructed from trimesh_script attriute. Uppon execution, the script should define a ‘mesh’ object.

property raw_stl_item_mesh

Raw mesh object without any affine transformations or processing applied

class coperniFUS.modules.interfaces.trimesh_interfaces.StlHandler(parent_viewer, **kwargs)[source]

Bases: TrimeshHandler

property raw_stl_item_mesh

Raw mesh object without any affine transformations or processing applied