Commit Graph

44 Commits

Author SHA1 Message Date
Chris Hennes
a4901e2ccb Merge pull request #19142 from hyarion/refactor/add-template-addobject
Add new addObject<T>() function
2025-02-11 09:42:47 -06:00
Benjamin Nauck
a1c5767643 Mod: Use new addObject<T>(...) using regex 2025-02-10 18:35:38 +01:00
Benjamin Bræstrup Sayoc
5159a84402 Points: Use QStringLiteral 2025-02-10 18:34:57 +01:00
tritao
65466d580b Gui: Reorganize the selection files into a top Selection folder. 2025-02-03 17:56:57 +01:00
Benjamin Nauck
08c9a191e2 Add template based SelectionSingleton::countObjectsOfType
Also convert code to use this new method
2025-01-13 18:55:15 +01:00
Chris Hennes
3e8b1de288 Update src/Mod/Points/Gui/Command.cpp 2024-12-06 10:33:56 -06:00
pre-commit-ci[bot]
f63a6886e4 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-11-03 23:25:40 +00:00
mwganson
009f441d00 [Points WB] fix issue where points are inaccurately imported when the points are far from the origin. This PR checks if the bounding box contains the origin and offers to move it to the origin if not, addresses issue #5808 2024-11-03 23:22:15 +00:00
Florian Foinant-Willig
e12b7cacab Points: modernize type checking 2023-10-23 18:08:48 +02:00
wmayer
56820718c5 Core: Revert superfluous changes made with PR #9521 2023-10-09 15:06:45 +02:00
AgCaliva
4a504437d3 merge master via cli 2023-09-16 02:12:58 -03:00
AgCaliva
0859cf6555 Fix DOMDocument redefinition error 2023-09-08 09:12:52 -03:00
wmayer
8d24f0c021 Points: apply clang-formatting 2023-09-01 20:07:54 +02:00
wmayer
9f42af487b Points: modernize C++: use range-based for loop 2023-08-15 17:20:01 +02:00
wmayer
86e56ec842 fixes #9134: Points Merge doesn't keep Color information 2023-05-12 13:12:14 +02:00
Uwe
95f647b9ed [Points] remove unused includes (#7900)
- also some sorting
2022-11-29 04:44:35 +01:00
wmayer
8998c9847d Points: fixes #5785: a python method to convert a Shape into a point cloud without extra dialog but parameter 2022-06-21 15:25:53 +02:00
Uwe
bec723ba17 [Points] remove Python.h and Xerces 2022-03-20 22:55:16 +01:00
wmayer
4398ae54dd Points: modernize C++11
* remove redundant void-arg
* use nullptr
2022-01-26 17:53:41 +01:00
wmayer
501dc5867e Points: [skip ci] for CmdPointsConvert command make minimal value dependent on user settings of used decimals 2021-10-05 10:59:07 +02:00
Chris Hennes
ea3ecf4054 Silence Qt/Windows setGeometry Warning
Add the optional Qt::MSWindowsFixedSizeDialogHint parameter to all uses of the QInputDialog::getX static functions to silence a Qt/Windows debug mode warning about QWindowsWindow::setGeometry: Unable to set geometry. Increase the size of the unit calculator to eliminate the same warning. Finally, call adjustSize() on the "Unsaved Changes" dialog to silence the warning.
2020-12-11 09:58:09 +01:00
luz paz
b8c949411f Points: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the Points Wb.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
2020-12-01 14:53:35 +01:00
luz paz
8a35874f8c Points: link to icons from said commands 2020-12-01 13:37:53 +01:00
wmayer
c814eb1a50 Qt5: 'QString::null' is deprecated: use QString() [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
9e93e621f9 command to create a structured points object from a unstructured points object 2019-11-22 19:48:46 +01:00
wmayer
5de6763ed5 add escape sequence when executing as Python string 2019-09-28 23:35:08 +02:00
wmayer
8b9dfab46d fix cutting of points 2019-09-22 22:58:53 +02:00
wmayer
a247b7e6a5 force strict ISO C++ (-Wpedantic)
for Drawing, Image, Inspection, Mesh, MeshPart, Part, Path, Points, Raytracing, ReverseEngineering, Spreadsheet, Start, Surface, Web

TODO: fix several -Woverflow in area
2019-09-18 11:32:42 +02:00
Mateusz Skowroński
317bcd59c9 Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy! 2019-02-11 15:39:14 +01:00
wmayer
7e3be9eb68 take care of object's global placement when creating point cloud of it 2018-09-05 21:24:22 +02:00
wmayer
c582b069ba fix compiler warnings with py3 and msvc 2018-04-16 18:24:53 +02:00
wmayer
880a200c70 improve point import and export 2018-02-13 00:27:18 +01:00
luz.paz
a86c0fe137 sWhatsThis fixes
ref: https://forum.freecadweb.org/viewtopic.php?f=10&t=26687
2018-01-31 19:07:07 +01:00
wmayer
24081a5746 use abstract interface to create point cloud from geometric feature 2017-10-24 19:39:23 +02:00
wmayer
0ad2e47f4d add command to merge point clouds 2017-05-08 21:50:03 +02:00
wmayer
a800622620 fix -Wextra in Points 2016-09-21 21:10:41 +02:00
wmayer
34b9ff8867 + command to create points object from geometry
+ implement TopoShape::getPoints
2016-03-05 23:36:57 +01:00
wmayer
efdbc93e99 + create points with normals from mesh object 2016-03-04 19:39:13 +01:00
wmayer
0ea6a2ed0d + removed unneeded pure virtual method getFaces from PropertyComplexGeoData
+ extend interface of ComplexGeoData::getPoints to also return normals if available
2016-03-04 17:16:57 +01:00
wmayer
288841cf98 + function to create points from mesh 2016-03-04 16:00:08 +01:00
wmayer
4e3856acc8 + remove feature classes to import/export points 2015-12-30 15:16:22 +01:00
wmayer
967eead27a + split file extension from descriptive text of file format to avoid that invalid translation breaks file dialog
+ add method to make image view unclosable for user
+ fix possible crash in MeshAlgorithm::GetMeshBorder
+ fix possible crash in MeshAlgorithm::ConnectLines
2015-10-06 17:28:52 +02:00
wmayer
ce8efb118c + Add new icons, fix German translation in Points module 2014-01-26 16:19:07 +01:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00