Skip to content

zmesh error #3

@Lucak13

Description

@Lucak13

When attempting to use "main" on Window, I received this error:

Transformation Progress running...
Progress:  0.0 %
Traceback (most recent call last):
  File "c:\Users\LucaT\Downloads\Nonplanar_Slicing-main\main.py", line 177, in calculate_button
    tm1.trans_gcode(orig_gcode, gradz, zmesh,  printSetting, limits, config_string=config)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\LucaT\Downloads\Nonplanar_Slicing-main\transform_method_1.py", line 212, in trans_gcode
    interpol_z = zmesh[np.round((actual_g_line[:,1] - y_min - y_offset)*(1/resolution)).astype(int), np.round((actual_g_line[:,0] - x_min - x_offset)*(1/resolution)).astype(int)]
                 ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: index 2140 is out of bounds for axis 0 with size 640

Can someone help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions