Skip to content

make a slice_index to slice_value convertor #51

@shimwell

Description

@shimwell

need to be able to convert from slice index to the axis value (slice value)

lower_left and upper_right should give the axis range then we can relate index and a view direction and dimension into a slice value

index_val = {'x': 0,  'y':1,'z': }
vd_to_width = upper_right[index_val] - lower_left[index_val]
value = lower_left[index_val] + vd_to_width / mesh.dimension[index_val]+1  #check this part

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions