FIX: Observe specified output path for saving extension results (and minor improvements) - #6459
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6459 +/- ##
==========================================
+ Coverage 81.96% 81.98% +0.02%
==========================================
Files 243 243
Lines 76175 76196 +21
==========================================
+ Hits 62436 62472 +36
+ Misses 13739 13724 -15 🚀 New features to boost your workflow:
|
|
@SMoraisAnsys, as per our discussion, I performed a refactoring of the extension's GUI together with the other minor changes (
|
SMoraisAnsys
left a comment
There was a problem hiding this comment.
LGTM, I left minor comments
d04a9d8
All good

This PR addresses the bug reported in #6450: Currently, the file generated by the point cloud extension does not observe the specified output name. Instead, the point coordinates for the selected objects (and not all of them) are saved in a file named "Model_AllObjs_AllMats.pts" (in the appropriate directory), which adds extra confusion to the user since it may be assumed that the selection of objects to be processed has not been respected.
This bug is fixed by the present changes and a few minor improvements are also introduced:
.objand.mtlfiles generated alongside the expected.ptsfile are deleted,.ptsfile generated when using the "Preview" button of the extension is deleted,__used to prefix the name of attributes and methods of thePointsCloudExtensionwe want to make private.On top of these points, this PR is also used as an opportunity to rework the extension's GUI, in order to make it more in line with that of other extensions of the project. Notably, the layout of text fields and buttons, as well as the padding around them is standardized. A horizontal scrollbar is also added conditionally to the listbox displaying the objects and surfaces available in the design, in case some of their names are too long to fit in the box.
To avoid any impact on the rest of the project, modifications are kept to the
points_cloud.pyfile (the extension's unit and system tests are updated accordingly).Close #6450