-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancements error viz #115
Conversation
@eleniv3d Thanks ! I took the liberty of linking the issues, so they are closed automatically when merging. I was just looking at the per-face metric issue. Do you see a clear way to solve it ? I'm just diving in and it's not 100% clear to me how we can do that the most efficiently. |
@DamienGilliard The other way would be to specify that we want the calculation to happen per face with another toggle or ideally if we manage to make issue #116 work. but then again the distance calculation would look in the whole pcd of the joint. |
can we not use the DFFace's brep face instead of the entire brep when doing the calculation of the error @eleniv3d ? And repeat it for each DFFace. I have some doubts about having an extra clustering component just for faces.
This could be nice and easy the same way we did it for the VIzSettings |
@eleniv3d we do agree that you want a list of lists of pointclouds (and None if no pointcloud was found)? : |
Sounds good! |
Possibly okay to review now. I struggled a bit with getting the desired data from the segmentators and in the end hacked it a bit. Maybe we can see together in the next meeting. Notes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello @eleniv3d ! Thanks for this PR, I just left some comments and did some tiny cleaning myself! Merging this..
# if __name__ == "__main__": | ||
# com = DFCloudMeshDistance() | ||
# o_viz_settings = com.RunScript( | ||
# i_cloud_source, | ||
# i_assembly, | ||
# i_signed_flag, | ||
# i_swap, | ||
# i_analysis_resolution | ||
# ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to remove
# if __name__ == "__main__": | ||
# com = DFCsvExporter() | ||
# o_viz_settings = com.RunScript( | ||
# i_dump, | ||
# i_export_dir, | ||
# i_file_name, | ||
# i_export_seperate_files, | ||
# i_result | ||
# ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In line 22 I propose to add this to avoid drop-on-canvas error:
if i_cloud_source is None or i_assembly is None:
return None, None, None, None, None, None
# if __name__ == "__main__": | ||
# com = DFVisualization() | ||
# o_colored_geo, o_legend, o_histogram = com.RunScript( | ||
# i_result, | ||
# i_viz_settings | ||
# ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to remove
class DFVisualization(component): | ||
def RunScript(self, | ||
i_result: DFVizResults, | ||
i_viz_settings: DFVizSettings): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same we could add:
if i_result or i_viz_settings:
return None, None
Still work in progress. I open it for discussion and in order to keep track of what's missing
o_success
output for csv exporter #86_legend
#80-> implemented as a per_item toggle
-> implemented if pcd input is already segmented per face