Commit Graph

59 Commits

Author SHA1 Message Date
Benjamin Nauck
7c6db638c8 Fem: Add #include <limits> where used 2025-03-31 23:51:06 +02:00
Benjamin Nauck
e2da3bce46 FEM: Use std::numeric_limits and std::numbers instead of defines 2025-03-29 13:32:38 +01:00
bofdahof
1c4ecf576b FEM: apply std::ranges 2025-03-16 17:16:30 -05:00
wmayer
d15fd988a4 App: Add methods to get base and direction of datum element
Add the methods DatumElement::getBasePoint() and DatumElement::getDirection() to hide implementation details and guarantee consistent behaviour.

Using the methods fixes several regressions in:
* Constraint::getDirection
* PolarPattern::getTransformations
2025-01-02 13:24:57 +01:00
PaddleStroke
8f43f3cc8b Core: Rename 'OriginFeature' file to 'Datums' 2024-11-26 15:36:48 +01:00
marioalexis
c029bb08e2 Fem: Use reference subshape transformation on the underlying geometry 2024-09-23 08:11:15 -05:00
marioalexis
9c92f93452 Fem: Disconnect connection when destroying Constraint object 2024-08-24 19:51:24 -05:00
marioalexis
25febcd7af Fem: Move functions to Tools class 2024-06-05 13:12:25 -03:00
marioalexis
6aabe77a1a Fem: Constraint symbol scaling based on shape size - fixes #7030 2024-04-29 10:46:40 -05:00
marioalexis84
0be9e68fcd Fem: Constraint symbol scaling (#13274)
* Fem: Constraint symbols rescaling

* Fem: Add constraint symbol .iv files

* Fem: Fix contact constraint symbol rescaling

* Fem: Fix displacement constraint symbol rescaling

* Fem: Fix fixed constraint symbol rescaling

* Fem: Fix force constraint symbol rescaling

* Fem: Fix heat flux constraint symbol rescaling

* Fem: Fix plane rotation constraint symbol rescaling

* Fem: Fix pressure constraint symbol rescaling

* Fem: Fix spring constraint symbol rescaling

* Fem: Fix temperature constraint symbol rescaling

* Fem: Add tie constraint symbol
2024-04-22 11:49:13 -04:00
Florian Foinant-Willig
d46f424a6a FEM: allow to Suppress the constraints (#12359)
* FEM: Introduce suppressible constraints

* fix public inheritance
2024-04-08 10:43:54 -05:00
wmayer
a4cd7f6012 FEM: Handle unknown exception when applying a constraint to a B-Spline surface
Fixes #13213

An OCC exception is raised when trying to normalize a null vector. The solution is to check the square length before normalizing it
2024-04-01 19:38:28 +02:00
marioalexis
5350f94201 Fem: Update constraint symbols when moving reference shape - fixes #6093 2024-02-26 04:01:28 -03:00
marioalexis
b23c5f6721 Fem: Move Points and Normals properties to base class 2024-02-15 13:31:20 -06:00
marioalexis
7b63799a7e Fem: Fix constraint arrows - fixes #6073 2024-01-15 19:21:09 -06:00
Florian Foinant-Willig
027ac1b456 Fem: modernize type checking 2023-10-23 18:09:04 +02:00
wmayer
e66404523c Fem: Apply clang-format 2023-09-25 14:50:43 +02:00
wmayer
2bcec7717d Fem: modernize C++: use equals default 2023-08-21 13:35:54 +02:00
Uwe
a2c9c3e3f0 [FEM] App, FemConstraint*: remove unused includes - part 1
- also sort includes
2022-10-02 18:51:28 +02:00
wmayer
882e96d7d5 Mod: [skip ci] improve whitespace 2022-08-08 10:46:04 +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
mosfet80
c86f0ce670 Remove old msc ver. Freecad 0.20 require 64 bit and windows 7 or higher. For this reason, msc libraries less than 1800 will no longer be used. (#7036)
* remove msc<1800
2022-06-28 00:42:33 +02:00
wmayer
d21a60b294 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
bde17e1b9f Fem: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
99dc3fec76 Fem: include FemGlobal.h 2021-12-18 14:35:20 +01:00
wmayer
4e8823b584 OCCT: port FreeCAD sources to version 7.6 2021-10-11 00:28:12 +02:00
wmayer
fdbd84ec39 FEM: [skip ci] fix crash in Constraint::getDirection 2021-02-26 08:11:16 +01:00
wmayer
ab04719372 FEM: [skip ci] support Line and Plane objects in Constraint::getDirection() 2021-02-24 23:53:15 +01:00
wmayer
41c481cc9b Fem: [skip ci] handle exception in Fem Constraint in case referenced shape element doesn't exist 2020-06-30 11:34:07 +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
Bernd Hahnebach
e680701037 FEM: add gitattributes file to let git manage file endings and normalize them 2019-12-12 07:29:15 +01:00
asapelkin
ced8100ab9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +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
8fa75b1d6f PCH: Fem App 2019-05-16 21:43:07 +02:00
wmayer
d729dee35b fixes 0003683: FEM, GUI, incorrect display of constraints symbols on reference shapes 2019-01-15 11:01:45 +01:00
luz.paz
ccd7be0bc2 FEM: file headers, fix .cpp and .h header text 2018-10-25 11:00:07 -03:00
Markus Lampert
e13c09235f Changed all catch types to references for polymorphic exceptions. 2018-08-08 15:45:30 +02:00
wmayer
7f084a3737 fix incorrect usage of Adaptor3d_IsoCurve 2018-03-07 15:49:06 +01:00
wmayer
6d54cc57b1 workaround for failure to get iso curves 2018-03-04 22:39:28 +01:00
wmayer
a57a45bf97 for FEM constraints allow global links 2017-10-11 18:48:13 +02:00
Markus Hovorka
5618637afe FEM: add ConstraintPython object type
Constraints implemented in python can use this object as their base.
That makes it easier to identify them as constraint objects.
2017-08-04 06:57:12 +02:00
Peter Lama
fa4bebf2e0 Use OCCT Handle macro for Handle_ classes
This is the result of running OCCT's upgrade script provided
with OCCT 7.0. See
https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form
and
https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019
for why this is necessary for OCCT >= 7.1
2017-04-20 12:27:34 +02:00
wmayer
2845e319a3 fix -Wextra in Fem 2016-09-24 02:17:15 +02:00
Wolfgang E. Sanyer
d1d2f1f811 This commit adds getShape and setShape to TopoShape 2016-08-06 23:42:55 +02:00
wmayer
dfa5972b4b + fix various warnings with VC12 2016-04-16 12:02:58 +02:00
jrheinlaender
1f6e8d49da Cosmetic change in FemConstraint.cpp 2016-04-12 18:11:58 +02:00
vginkeo
034e377dd0 FEM: Implement constraint displacement in C++ 2016-02-12 11:09:58 +02:00
vginkeo
38b8d172c2 FEM: Constraint view sizing and scaling of indicators for force, pressure and fixed constraints and limit on steps. 2016-02-01 10:52:37 +02:00
wmayer
f45d02c912 + support of linear b-spline/bezier curves and planar b-spline/bezier surfaces to get direction 2015-11-11 18:27:26 +01:00