Commit Graph

130 Commits

Author SHA1 Message Date
Chris Hennes
2e28b2bd63 FEM: Fix multiplication result converted to larger type 2025-07-21 22:04:10 -05:00
bofdahof
ba2c2ca5ad Console: rename PascalCase named methods to camelCase 2025-05-06 17:50:21 +02: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
Benjamin Nauck
6f535f19fb Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
2025-01-27 16:08:18 +01:00
marioalexis
4d5424e422 Fem: Add suppressible extension to objects - fixes #12115 2025-01-06 17:56:30 +01:00
marioalexis
00cd30aff2 Fem: Add offset between faces and wireframe in FemMesh view provider 2024-09-23 08:16:27 -05:00
marioalexis
57f54b9dab Fem: Use pyViewObject base member in getPyObject methods 2024-08-31 13:53:29 -05:00
wmayer
c30d42c441 Core: Rename ViewProviderPythonFeature to ViewProviderFeaturePython
Fixes #15888
2024-08-26 18:14:22 +02:00
Andrea
4957477f67 Update ViewProviderFemMesh.cpp
fix warning: variable 'j'and 'i' is not initialized
[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Update ViewProviderFemMesh.cpp
[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
2024-08-24 19:53:10 -05:00
marioalexis
0cee0e9f50 Fem: Save and restore custom colors of elements in mesh - fixes #6131 2024-05-06 17:53:39 +02:00
David Carter
ba20441935 Material: Material appearance
Uses new material system for appearance

Each feature object now has a property called ShapeMaterial that
describes its physical properties. If it has a shape, it has a
material.

The ShapeColor attribute is replaced by a ShapeAppearance attribute.
This is a material list that describes all appearance properties, not
just diffuse color. As a list in can be used for all elements of a
shape, such as edges and faces.

A new widget is provided to allow the user to select materials in a
consistent fashion. It can also launch the material editor with its
more advanced capabilities.
2024-04-04 07:39:58 -05:00
Ladislav Michl
d95b56137b Base: Implement TimeElapsed
Some instances of TimeInfo serve the sole purpose of measuring time
duration. Using system time is unfortunate as it returns wall clock,
which is not guaranteed to be monotonic. Replace such a usage with
the new TimeElapsed class based on steady clock.
2024-03-05 12:29:24 +01:00
bdieterm
abfe38e0e7 Gui: add explicit transparency specification 2024-01-21 17:41:31 +01:00
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
wmayer
3863cff6c0 Fem: Apply clang-format 2023-09-25 14:50:43 +02:00
wmayer
9383d2d0aa Fem: modernize C++: return braced init list 2023-08-19 11:35:41 +02:00
wmayer
89b9a7ae0f FEM: modernize C++: use range-based for loop 2023-08-15 01:09:53 +02: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
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
Uwe
1f9b9e8c17 [FEM] remove some unused includes 2022-08-02 05:15:31 +02:00
wmayer
d5340a82ab Gui/Mod: replace several reinterpret_cast with static_cast 2022-06-25 11:36:55 +02:00
wmayer
6e80ffaec3 Fem: remove some superfluous const_cast 2022-06-24 19:43:33 +02:00
Uwe
c9ac61408c [FEM] TaskPostBoxes: remove unused headers
- also some sorting
2022-03-24 18:58:01 +01:00
wmayer
bde17e1b9f Fem: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
Uwe
a908e6fece [FEM] remove some unused includes 2022-03-23 05:43:40 +01:00
wmayer
1ae38aea04 PVS: V522 There might be dereferencing of a potential null pointer 2020-07-18 10:59:27 +02:00
luz.paz
73b8ee91ee FEM: [skip ci] fix header uniformity
This PR fixes header uniformity across all FEM WB files
2019-12-21 20:00:14 +01:00
wmayer
b1dd1e61a7 force strict ISO C++ (-Wpedantic)
for Fem, Import, PartDesign, Robot, Sketcher, TechDraw
2019-09-18 14:18:07 +02:00
Abdullah Tahiri
0382e2dd75 PCH: Fem Gui 2019-05-16 21:43:08 +02:00
wmayer
d01b8babc2 Add new display mode Wireframe & Nodes to FEM 2019-01-16 10:19:14 +01:00
wmayer
12acebafee issue 0003624: FEM, GUI, mesh VP, element colors 2019-01-15 21:29:47 +01:00
luz.paz
892c64823f FEM: Typos 2018-10-17 11:23:04 +02:00
wmayer
1fb55d8d0a fixes 0003618: FEM, GUI, mesh view provider, highlighted node show wrong node number on selection 2018-09-26 19:59:32 +02:00
luz.paz
af3ef5b19d Misc. typos
Found via `codespell`
[skip ci]
2018-05-31 12:50:58 -04:00
luz.paz
1d8aaad976 FEM: typo fixes 2018-04-29 20:40:15 +02:00
Bernd Hahnebach
f869e15ee2 FEM: mesh view provider, fix for shell beam 3D output, because node numbering does not start with 1 2018-03-03 11:20:52 -03: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
Bernd Hahnebach
0e71f8f3d0 FEM: mesh view provider, add property to adjust max faces to show inner mesh data 2017-02-28 17:35:26 +01:00
Kunda
f4b84e8963 FEM: source code typos, issue 0002914 2017-02-28 17:35:26 +01:00
wmayer
5beba602b6 clear nodes of fem view provider when clearing mesh 2016-12-23 15:36:01 +01:00
Bernd Hahnebach
b88c7fe5a1 FEM: icons, rename some icons to better fit in FEM name scheme 2016-11-28 01:17:45 +01:00
Bernd Hahnebach
735d70bca0 FEM: extend the C++ fem mesh object to be able make python mesh object childs 2016-11-22 19:50:50 +01:00
wmayer
2845e319a3 fix -Wextra in Fem 2016-09-24 02:17:15 +02:00
wmayer
fcdaf5405c fix Coverity issues 2016-08-20 15:41:33 +02:00
Bernd Hahnebach
bf03c91781 FEM: code formating, replace tabulator with spaces 2016-08-15 21:39:01 +02:00
Bernd Hahnebach
3091fd5973 FEM: remove trailing whitespaces 2016-04-24 19:10:33 +02:00
Bernd Hahnebach
11a1de07d1 FEM: convert all windows code files to unix line ending 2016-04-24 19:10:33 +02:00
Bernd Hahnebach
719eb7cd37 FEM: Mesh ViewProvider, remove some console log prints 2016-04-09 21:00:58 +02:00