Commit Graph

53 Commits

Author SHA1 Message Date
marioalexis
ad28897c09 Fem: Disconnect connection when destroying Constraint object 2024-08-24 19:51:24 -05:00
marioalexis
536a2b0aad Fem: Move functions to Tools class 2024-06-05 13:12:25 -03:00
marioalexis
ba0825f605 Fem: Constraint symbol scaling based on shape size - fixes #7030 2024-04-29 10:46:40 -05:00
marioalexis84
7d4d5eddf5 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
17af20aa20 FEM: allow to Suppress the constraints (#12359)
* FEM: Introduce suppressible constraints

* fix public inheritance
2024-04-08 10:43:54 -05:00
wmayer
4b18a1018b 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
5938489654 Fem: Update constraint symbols when moving reference shape - fixes #6093 2024-02-26 04:01:28 -03:00
marioalexis
c49c52716c Fem: Move Points and Normals properties to base class 2024-02-15 13:31:20 -06:00
marioalexis
27a0fb1e99 Fem: Fix constraint arrows - fixes #6073 2024-01-15 19:21:09 -06:00
Florian Foinant-Willig
41080dec5b Fem: modernize type checking 2023-10-23 18:09:04 +02:00
wmayer
91a40b2007 Fem: Apply clang-format 2023-09-25 14:50:43 +02:00
wmayer
d525e0d308 Fem: modernize C++: use equals default 2023-08-21 13:35:54 +02:00
Uwe
449d52ffa8 [FEM] App, FemConstraint*: remove unused includes - part 1
- also sort includes
2022-10-02 18:51:28 +02:00
wmayer
55fa3d8a77 Mod: [skip ci] improve whitespace 2022-08-08 10:46:04 +02:00
berniev
da9ebc572f Mod: redundant void 2 2022-08-08 10:27:50 +02:00
berniev
b796a0d376 Mod: use empty 2022-08-06 19:30:13 +02:00
mosfet80
d162d9371c 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
97330443a2 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
7ae9fc0d67 Fem: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
d88165c284 Fem: include FemGlobal.h 2021-12-18 14:35:20 +01:00
wmayer
51e4366085 OCCT: port FreeCAD sources to version 7.6 2021-10-11 00:28:12 +02:00
wmayer
b2ca86d8d7 FEM: [skip ci] fix crash in Constraint::getDirection 2021-02-26 08:11:16 +01:00
wmayer
7a56781285 FEM: [skip ci] support Line and Plane objects in Constraint::getDirection() 2021-02-24 23:53:15 +01:00
wmayer
68b98f5ffe 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
1baf5da3cf 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
12c31ab055 FEM: add gitattributes file to let git manage file endings and normalize them 2019-12-12 07:29:15 +01:00
asapelkin
e951094af9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
wmayer
d0d92b0801 force strict ISO C++ (-Wpedantic)
for Fem, Import, PartDesign, Robot, Sketcher, TechDraw
2019-09-18 14:18:07 +02:00
Abdullah Tahiri
676a4f0457 PCH: Fem App 2019-05-16 21:43:07 +02:00
wmayer
d94fc4988e fixes 0003683: FEM, GUI, incorrect display of constraints symbols on reference shapes 2019-01-15 11:01:45 +01:00
luz.paz
a22a0d4567 FEM: file headers, fix .cpp and .h header text 2018-10-25 11:00:07 -03:00
Markus Lampert
0b40519f3f Changed all catch types to references for polymorphic exceptions. 2018-08-08 15:45:30 +02:00
wmayer
456945881c fix incorrect usage of Adaptor3d_IsoCurve 2018-03-07 15:49:06 +01:00
wmayer
f189c95984 workaround for failure to get iso curves 2018-03-04 22:39:28 +01:00
wmayer
76eba3a579 for FEM constraints allow global links 2017-10-11 18:48:13 +02:00
Markus Hovorka
ef85389cbc 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
a75a98ef27 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
480191c8ee fix -Wextra in Fem 2016-09-24 02:17:15 +02:00
Wolfgang E. Sanyer
7f4a437cc2 This commit adds getShape and setShape to TopoShape 2016-08-06 23:42:55 +02:00
wmayer
46d340530f + fix various warnings with VC12 2016-04-16 12:02:58 +02:00
jrheinlaender
53189fd36f Cosmetic change in FemConstraint.cpp 2016-04-12 18:11:58 +02:00
vginkeo
b1dc2cbf94 FEM: Implement constraint displacement in C++ 2016-02-12 11:09:58 +02:00
vginkeo
80a791021b 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
4af7d95a6d + support of linear b-spline/bezier curves and planar b-spline/bezier surfaces to get direction 2015-11-11 18:27:26 +01:00
wmayer
b24f25d874 + in Fem constraint force dialog handle empty Direction 2015-02-27 23:27:08 +01:00
wmayer
71154f5f25 + fix issues with force constraint 2014-10-10 17:42:33 +02:00
wmayer
9af4f7ee73 + Fix compiler warnings 2013-10-11 12:24:49 +02:00
jriegel
664c1d4862 Integrate Werners & Jans double branch
Move from float to double
Further suggestions for float -> double move
Moved Tools2D from float to double
More suggestions for float->double move from Gui subdirectory
Changes to FEM constraint visuals for float->double move
Suggested changes for float -> double move
Suggestions for Part module moving float -> double
2013-09-24 11:00:57 +02:00
jriegel
bd197783c6 fixes for VisualStudio 2013-03-22 12:50:15 +01:00
jrheinlaender
f5c6e4eae3 Improvements to FEM constraint objects 2013-03-21 16:58:01 +04:30