Commit Graph

53 Commits

Author SHA1 Message Date
bofdahof
ed2a99e37b Points: apply std::ranges 2025-03-16 17:19:22 -05:00
Kacper Donat
13fbab9e42 Base: Move App::Color to Base
Every basic data type is stored in Base module, color is standing out as
one that does not. Moving it to Base opens possibilities to integrate it
better with the rest of FreeCAD.
2025-02-17 21:10:26 +01:00
wmayer
84202c4b1e Tests: add more unit tests for Points module 2024-03-12 18:02:33 +01:00
wmayer
ed573fcf86 Points: fix many linter warnings 2024-03-12 18:02:33 +01:00
wmayer
0c21c6298c Base: fix google-explicit-constructor 2023-11-22 23:47:29 +01:00
pre-commit-ci[bot]
e92ed45df9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
wmayer
c91b82db0b Points: apply clang-formatting 2023-09-01 20:07:54 +02:00
wmayer
73946faa15 Points: for E57 reader move from float to double 2023-08-22 12:44:38 +02:00
wmayer
162f480c84 Points: modernize C++: use equals default 2023-08-22 12:37:37 +02:00
wmayer
3e8f4d941f Points: modernize C++: use range-based for loop 2023-08-15 17:20:01 +02:00
wmayer
7fe0d5b9a6 modernize C++: use equals delete 2023-08-10 17:29:05 +02:00
wmayer
9604f94fdc Core: add functions setPackedARGB and fromPackedRGBA 2023-02-26 10:11:53 +01:00
wmayer
c19f00fc89 Points: use Color::getPackedARGB() for pcl colors 2023-02-26 10:11:53 +01:00
wmayer
2fa66a8d63 Points: support of surface normals and fix handling with intensity 2022-12-22 20:17:49 +01:00
wmayer
124bed6957 Points: refactor E57Reader 2022-12-22 19:14:38 +01:00
wmayer
f4174e3970 Points: fixes #7924: Pointcloud import anomalies 2022-12-21 13:05:16 +01:00
Uwe
23375fccba [Points] re-add a header 2022-12-07 23:19:38 +01:00
Uwe
cc4b8b4cd1 [Points] improve PreCompiled.h handling 2022-12-07 18:22:00 +01:00
wmayer
eb1100e295 Points: [skip ci] fix build failure 2022-11-29 18:50:24 +01:00
Uwe
bdaee726ae [Points] remove unused includes (#7900)
- also some sorting
2022-11-29 04:44:35 +01:00
wmayer
80d7af9f05 Points: modernize C++: replace 'typedef' with 'using' 2022-08-29 22:57:24 +02:00
berniev
71dc5ead2f Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
berniev
47ac049e14 Mod: use emplace_back 2022-08-05 10:36:16 +02:00
wmayer
1459fd61a4 cppcoreguidelines-special-member-functions
* disable move constructor and move assignment for several core classes
2022-06-25 17:46:48 +02:00
wmayer
223de8f60f cppcoreguidelines-pro-type-union-access
According to https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Ru-pun using union for type-punning is undefined behaviour.
  See also https://en.wikipedia.org/wiki/Type_punning#Use_of_union. Replace it with std::memcpy.
2022-06-25 17:17:04 +02:00
wmayer
9a7629fccf Points: fix round-off errors in pcd export 2022-05-17 11:48:58 +02:00
wmayer
d5aa8986f1 Points: Fix several coverity issues:
* CID 350545: Resource leak
* CID 350553: Resource leak
* CID 350559: Resource leak
* CID 350593: Resource leak
* CID 350604: Resource leak
* CID 350625: Resource leak
* CID 350650: Resource leak
* CID 129019: Division or modulo by float zero (false-positive)
* CID 129020: Division or modulo by float zero (false-positive)
* CID 129021: Division or modulo by float zero (false-positive)
2022-03-13 16:48:19 +01:00
wmayer
ec8353ba99 Part: refactor PropertyPartShape::SaveDocFile and PropertyPartShape::RestoreDocFile
Set exception mask of std::istream::failbit | std::istream::badbit to istream to make sure it raises an exception for corrupted input files.
See: https://forum.freecadweb.org/viewtopic.php?p=536747
2022-03-11 22:06:38 +01:00
wmayer
cdf755ec71 Points: modernize C++11
* remove redundant void-arg
* use nullptr
2022-01-26 17:53:41 +01:00
luzpaz
c0f42cea0e Points: translate doxygen from DE to EN + fix superfluous whitespace (#5287)
* Points: translate doxygen from DE to EN + fix superfluous whitespace

For the purpose of making the source documentation uniform, source comments in this file were translated to english.

* Points: remove superfluous whitespace

* Fix left over DE to EN translations (from Cam and Mesh code)
2021-12-25 20:41:12 +01:00
Uwe
a1f71bbe9e [Points] compilation fix or -> ||
- also some style fixes made by MSVC
2021-12-16 03:02:13 +01:00
wmayer
56ebdec1b7 Points: fix several warnings, fix invalid point assignment 2021-12-15 22:14:57 +01:00
Benjamin Alterauge
71e7f47e5b If the channels xyz be missing, display error message. 2021-12-15 22:14:57 +01:00
Benjamin Alterauge
b6db87f9c3 Load settings move to AppPointsPy 2021-12-15 22:14:57 +01:00
Benjamin Alterauge
9d2239fbaf Add E57Reader 2021-12-15 22:14:57 +01:00
Benjamin Nauck
d812313edd [Points] Use std::shared_ptr instead of boost::shared_ptr
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
luz.paz
b785920541 [skip ci] Fix header uniformity for Import, Mesh, Points, Raytracing 2019-12-26 10:10:30 +01:00
asapelkin
ced8100ab9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
wmayer
b14cf8a00d extend convertTo function to also support SbRotation/Base::Rotation 2019-09-06 21:29:51 +02:00
wmayer
f13b250c59 V1028 Possible overflow. Consider casting operands, not the result 2019-02-17 19:31:02 +01:00
wmayer
17ce026f57 consider global placement when exporting point cloud 2018-09-05 22:18:55 +02:00
luz.paz
9167064fc1 Misc. typos
Found via `codespell`
2018-04-25 09:41:33 -03:00
wmayer
a815251048 improve point import and export 2018-02-13 00:27:18 +01:00
Mateusz Skowroński
dee8769d0e Fix some GCC 7 warnings:
* dynamic exception specifications are deprecated [-Wdeprecated]
* this statement may fall through [-Wimplicit-fallthrough=]
2017-12-05 17:22:00 +01:00
wmayer
053be6c847 fix build failures with gcc 2017-11-03 17:21:48 +01:00
wmayer
cc6827a87c implement own ply/pcd importer/exporter 2017-11-03 17:03:51 +01:00
wmayer
fb7094bf31 use specialized exception classes 2017-04-28 18:49:11 +02:00
wmayer
6c3bb7c7c4 + support of export of points to pcd and ply format 2016-03-04 14:48:26 +01:00
wmayer
c35af9011e + do some code cleanup and renaming in Points module 2016-02-21 16:18:28 +01:00
wmayer
572bb72eb0 + handling of organized point cloud 2016-02-20 22:19:47 +01:00