🔨 refactor(PreProcessWorker.py): rename objpath to obj_path and discretisation_value to delta_z for better readability

This commit renames the objpath parameter to obj_path and discretisation_value to delta_z for better readability and consistency with the naming conventions. The function run() has been updated to include a more detailed description of what it does.
This commit is contained in:
Djalim Simaila 2023-05-09 10:53:45 +02:00
parent a12b42381b
commit 8357be8015

View File

@ -16,8 +16,10 @@ class PreProcessWorker(Worker):
:param name: The name of the worker
:param objpath: The path to the 3d object
:param discretisation_value: The delta z
:ivar objpath: The path to the 3d object
:ivar deltaZ: The delta z
:ivar progress_value: The current progress value
:ivar progress_weight: The weight of the progress bar
:ivar processed_obj: The signal to emit the processed object
@ -35,8 +37,9 @@ class PreProcessWorker(Worker):
def run(self):
"""
Pre process the object, read the file, verticalise it and normalise it
Emit the processed object in the processed_obj signal
This function is called when the thread is started.
It reads the file specified in the objpath, parses it, verticalises it and normalises it.
It then emits the processed object.
"""
# Read the file
self.set_status("Loading file...")