Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .idea/PrusaControll.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/encodings.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

1,686 changes: 0 additions & 1,686 deletions .idea/workspace.xml

This file was deleted.

14 changes: 1 addition & 13 deletions analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def make_analyze(self, finish_function, result_function):
self.cancel_analyz()

print("start new analyze")
#self.analyzer_runner.whole_scene = whole_scene
# self.analyzer_runner.whole_scene = whole_scene
self.analyzer_runner.moveToThread(self.analyzer_runner_thread)
self.analyzer_runner_thread.started.connect(self.analyzer_runner.start_analyze)

Expand All @@ -34,7 +34,6 @@ def make_analyze(self, finish_function, result_function):
self.analyzer_runner.is_running = True
self.analyzer_runner_thread.start()


def cancel_analyz(self):
self.analyzer_runner.is_running = False
self.analyzer_runner_thread.quit()
Expand All @@ -43,7 +42,6 @@ def cancel_analyz(self):
self.analyzer_runner_thread = QThread()
self.analyzer_runner = AnalyzerRunner(self.controller)


def set_finished_read(self):
print("analyze done")
if self.finish_function:
Expand All @@ -54,8 +52,6 @@ def set_result(self, result):
if self.send_result_function:
self.send_result_function(result)



'''
def make_analyze(self, whole_scene):
#Some initialization
Expand Down Expand Up @@ -139,7 +135,6 @@ def start_analyze(self):

self.finished.emit()


def is_support_needed(self, scene):
# detect angles between normal vector of face and normal of printing surface
# angel bigger than something is problem
Expand All @@ -149,15 +144,8 @@ def is_support_needed(self, scene):
return False
else:
return True
return True

def is_brim_needed(self, scene):
# detect small area on printing surface, it is need to generate brim
# something returned? problematic printing without brim, recommended to turn it on
return self.controller.scene.get_contact_faces_with_area_smaller_than(2., scene)






Loading