Commit Graph

227 Commits

Author SHA1 Message Date
DeflateAwning
1e3179e9bc Find and replace http://freecad.org to https://freecad.org
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Done in all remaining files (after doing it in SVGs in the last commit)
2023-10-29 22:39:22 -06:00
luzpaz
40d2a90e3a Fix typos 2023-08-31 22:29:17 -05:00
wmayer
2c2347f746 Tests: add unit tests for:
* TopoShape::getElementTypeAndIndex
* ComplexGeoData::getTypeAndIndex

and fix crashes there when passing a null pointer
2023-08-25 19:23:18 +02:00
wmayer
66fb1c7777 Part: refactor ViewProviderPartExt::getDetail 2023-08-25 19:23:18 +02:00
wmayer
b9e9fe435a Part: modernize C++: use equals default 2023-08-22 15:14:03 +02:00
wmayer
c8abd4a6d4 Part: modernize C++: return braced init list 2023-08-19 11:35:41 +02:00
wmayer
7cb51a4980 Part: modernize C++: use range-based for loop 2023-08-16 21:56:32 -05:00
Benjamin Bræstrup Sayoc
da2ae719f2 [Everywhere] FileInfo::hasExtension for multiple values (#9774)
* [Base] Add hasExtension for multiple values

* [Gui] Use hasExtension for multiple values

* [Drawing] Use hasExtension for multiple values

* [Fem] Use hasExtension for multiple values

* [Import] Use hasExtension for multiple values

* [Mesh] Use hasExtension for multiple values

* [Part] Use hasExtension for multiple values

* [TechDraw] Use hasExtension for multiple values
2023-08-07 09:55:19 -06:00
wmayer
f09bf02b6d Part: fixes #5967: Weird behavior in Placement dialog when using "center of mass" with Datum Plane 2023-06-29 22:49:39 +02:00
Pesc0
c65f049d20 [Toponaming] create ElementMap class (#9175)
* Copypaste ElementMap
* Add MappedNameRef
* Fix missing include
* Copypaste `findTagInElementName`
* fix error introduced _somewhere_
* refactor toponaming constants
* Move `findTagInElementName` in `MappedName`
* reintroduce workaround to compile ElementMap
* Added missing functions copied from complexgeodata
* fix last compile errors, reorder and format files
* remove recursive refs to ComplexGeoData
* Add more comments
* fixed comments and added tests
* added FIXME, make functions private, misc fixes
* Move static functions from complexGeoData to PostfixStringReferences. Rename to ElementNamingUtils
* Fix broken includes due to previous change
* Revert constants from string to const char*
* added childmap tests and made hasher public
* Make functions private
* Added remaining tests
* removed bool return from `erase` functions
* fix missing appexport

Co-authored-by: John Dupuy <jdupuy98@gmail.com>
2023-06-15 09:05:24 -05:00
luzpaz
38a01939e0 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
Andrew
1eaf8a724e Clean Mod/Part. remove old OCC <7.3 and #if 0 code. 2023-03-26 21:17:18 +02:00
wmayer
38a100962c Import/Part: [skip ci] restore some comments 2023-03-14 21:47:41 +01:00
wmayer
a7c37aacb0 Part: Compute center of gravity for compounds
* If the compound contains solids then other shape types like faces or edges are ignored
* If the compound contains no solids but faces then edges are ignored
* If the compound contains no faces but edges then vertexes are ignored
2023-03-02 19:34:18 +01:00
wandererfan
483238cc7f [Part]add PropertyTopoShapeList 2023-03-01 14:24:40 +01:00
wmayer
b358407e3b Base: refactor InventorBuilder 2022-12-13 17:48:51 +01:00
wmayer
bc33b44f3e Mod: use new API of InventorBuilder 2022-12-12 20:50:32 +01:00
Uwe
5e4296bca8 [Part] improve PreCompiled.h handling 2022-12-07 23:20:46 +01:00
wmayer
d21f9791b5 Part: add method TopoShape::isPlanar() 2022-12-07 15:18:04 +01:00
wmayer
0349009e39 Base: refactoring of InventorBuilder 2022-11-30 12:29:09 +01:00
wmayer
cf3225b50f Base: refactoring of InventorBuilder 2022-11-29 13:28:00 +01:00
wmayer
f0e22410db Base: start of refactoring of InventorBuilder 2022-11-27 16:45:16 +01:00
wmayer
918fc83cd3 Part: implement wrapper class around Interface_Static 2022-10-03 19:03:32 +02:00
marioalexis
acdfde774a Part: Replace C cast 2022-09-18 11:06:51 -05:00
wmayer
7dc67b7a01 Inspection: support display of lines, avoid explicit type checks 2022-09-15 11:46:20 +02:00
wmayer
1309b86ea5 App: move from float to double for accuracy parameter, add a virtual method to determine a default accuracy 2022-09-15 09:52:14 +02:00
wmayer
70838e224f Part: implement TopoShape::getLines 2022-09-13 23:14:17 +02:00
wmayer
ced0f46ef5 Clang: fix clang-diagnostic-error 2022-08-24 17:02:17 +02:00
berniev
180edfa3cc Mod: Single arg ctors must be explicit 2022-08-24 16:55:20 +02:00
berniev
5fa05ab83d Mod: Redundant_string_initialization 2022-08-08 16:52:42 +02:00
berniev
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
berniev
53ba98d636 Mod: use empty 2022-08-06 19:30:13 +02:00
berniev
47ac049e14 Mod: use emplace_back 2022-08-05 10:36:16 +02:00
wmayer
a8ac45b090 Replace std::ignore with boost::ignore_unused()
According to https://isocpp.org/blog/2016/09/quick-q-stdignore-for-ignoring-unused-variable std::ignore is not supposed to be used for this
2022-07-15 13:15:47 +02:00
wmayer
21c967ef77 Part: fix build failure 2022-07-04 02:21:59 +02:00
Uwe
f130051618 [Part] To*: remove unneeded includes
- also sort includes
2022-07-03 18:39:24 +02:00
andrea
c66aadeb60 removed references to OCC<7 2022-06-25 14:29:24 +02:00
wmayer
67e963781b Part: in TopoShape::transformGeometry convert OCC exception into Base exception
The conversion is needed because TopoShape::transformGeometry reimplements ComplexGeoData::transformGeometry and is called in the core system
2022-04-29 15:37:44 +02:00
wmayer
a5d7987ad0 Part: handle exception of makeGTransform in _makeTransform 2022-04-29 15:15:51 +02:00
wmayer
2d5c2f0700 Part: adjust TopoShape::transformGShape() to reduce code duplication of TopoShape::makeGTransform
Revert changes of 4e7efd68d42a68 as otherwise there is no way to handle a failure in client code
2022-04-29 14:57:05 +02:00
wmayer
3e6c6974ca Part: handle OCC exception inside TopoShape::makeGTransform
For more details about the problems an unhandled exception will cause see: https://forum.freecadweb.org/viewtopic.php?f=3&t=61000
2022-04-27 18:39:55 +02:00
wmayer
59eabaf9bb Part: [skip ci] fix computing of face normals in TopoShape::getPoints 2022-04-13 12:51:08 +02:00
wmayer
10afc60497 Part: issue #6727: Missing B-Spline in STEP file after Part Offset2D 2022-04-11 14:16:29 +02:00
wmayer
ef5d7fa64e Part: fixes #6282: exportStep breaking model 2022-04-11 11:58:57 +02:00
Chris Hennes
2ecc125497 Part: PR6497 move return statement to new line 2022-03-29 12:37:00 -05:00
wmayer
6d2d45ceb7 Part: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
mwganson
fc617e1524 Part: 2doffset fix crash by chacking for null shape before adding with builder.Add() 2022-03-12 02:48:22 +01:00
wmayer
f1f68db55b App: Optimize includes to reduce compile time 2022-03-07 15:53:58 +01:00
wmayer
0c583fb7fa Part: fix typos in make* functions 2022-02-16 12:48:02 +01:00
wmayer
0208608b9e Base: fix Matrix4D::hasScale
* If all column vectors of the 3x3 sub-matrix are equal the function incorrectly claims that it's uniform scaling.
* Detect also non-uniform scaling and if was applied from the left or right side
* Replace the int with an enum and expose it to Python
* Add several new unit tests
2022-02-15 21:05:11 +01:00