Commit Graph

129 Commits

Author SHA1 Message Date
wmayer
d21a60b294 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
Uwe
d52633a030 [Points] remove Python.h and Xerces 2022-03-20 22:55:16 +01:00
wmayer
1f12dca2b4 Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +01:00
wmayer
0f9768fb33 Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01: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
08b77bff08 Core/Mod: modernize C++11
* use nullptr
2022-03-09 21:55:31 +01:00
wmayer
f1f68db55b App: Optimize includes to reduce compile time 2022-03-07 15:53:58 +01:00
wmayer
cdf755ec71 Points: modernize C++11
* remove redundant void-arg
* use nullptr
2022-01-26 17:53:41 +01:00
luz paz
7b96b16cb8 Fix superfluous whitespace in various files 2022-01-09 21:01:42 -06: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
f84c62bf34 [Points] minor style fixes by MSVC 2021-12-17 02:39:47 +01:00
Uwe
a1f71bbe9e [Points] compilation fix or -> ||
- also some style fixes made by MSVC
2021-12-16 03:02:13 +01:00
wmayer
78bb8a0282 Points: implement helper method to reduce code duplication 2021-12-15 22:14:57 +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 Alterauge
c9ca2b7709 Add e57 extension support 2021-12-15 22:14:57 +01:00
Benjamin Alterauge
4d5ac148e5 Add the libE57Format include dirs to the point wb 2021-12-15 22:14:57 +01:00
wmayer
8cbd92d874 port to MSYS2/clang 2021-09-19 19:49:44 +02:00
wmayer
a40d37a980 Base: split export/import macros from FCConfig.h and move them to FCGlobal.h
The FCGlobal.h can be included in a Global.h header file of an extension module.

The reason is that some IDEs (e.g. QtCreator) fails to detect the export/import macros when only defined in the PreCompiled.h files and thus raise a parser warning.
2021-09-14 16:40:30 +02:00
wmayer
cca3981b3f Points: remove some more deprecated Py2 code 2021-04-26 11:04:53 +02: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
Zheng, Lei
8426ebe2ba Fix various Py::Object leak 2019-10-08 17:53:20 +02: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
dbb96de677 Win32-specific optimization in Points module 2018-10-08 18:50:03 +02:00
wmayer
17ce026f57 consider global placement when exporting point cloud 2018-09-05 22:18:55 +02:00
wmayer
f6da637d85 add copy constructor for class PointKernel 2018-09-05 21:21:36 +02:00
wmayer
358af8b518 CMP0050: make Points module aware of cmake policy 2018-08-20 16:34:54 +02:00
hgutsche
1b00876014 Add library for concurremcy in >= VS2015
revert conditional in Points.cpp (i.e. reactivate parallel handling)
2018-08-11 11:55:51 +02:00
wmayer
d1acaa09da avoid linker errors with >= VS 2015 2018-08-09 23:53:12 +02:00
luz.paz
424cd49398 Typos and whitespace fixes 2018-08-07 11:13:31 -04:00
wmayer
cc737339ad paralleization of transformation and bounding box calculation 2018-08-06 18:52:01 +02:00
wmayer
4c8e7fc7d0 + raise exception instead of crashing when trying to access curvature info via Python 2018-07-25 20:12: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
luzpaz
f3bf8fe919 Misc. typos
+ some are doxy others are just comment code.  
+ some minor whitespace and grammatical tweaks. 
+ app/SCL/* typos have also been submitted upstream (https://github.com/stepcode/stepcode/pull/366). So it's ok to merge them in to master.
2017-10-04 17:59:11 +02:00
wmayer
846195327a harmonize show() function of Part, Mesh, Fem, Path and Points modules 2017-09-29 00:35:48 +02:00
wmayer
51c776fec5 load organized point clouds in pcd files without properties 2017-08-23 17:23:00 +02:00
wmayer
fb7094bf31 use specialized exception classes 2017-04-28 18:49:11 +02:00
wmayer
63943e4bb8 extend interface to get actual property with geometric data, get center of gravity of a geometry 2017-03-05 18:05:11 +01:00
wmayer
66bbdecd07 py3: fix Python2 build 2017-02-28 18:08:06 +01:00
looooo
4574348937 py3: Points: gathering commits:
5f682d2a97a0b965813077d03fa2aee65377f3b2
5ccfa18e8c8471639a7f98e294625c5532e7440e
24836b36d5214db6823d6ac409afa42ce47ce263
2017-02-28 17:39:08 +01:00