Skip to content

Commit 64d124b

Browse files
committed
Fem: Constraint symbols rescaling - fixes FreeCAD#11306
1 parent 3fadb1f commit 64d124b

26 files changed

+525
-909
lines changed

src/Mod/Fem/Gui/CMakeLists.txt

+16-1
Original file line numberDiff line numberDiff line change
@@ -346,12 +346,27 @@ SET(FemGuiIcon_SVG
346346
Resources/icons/FemWorkbench.svg
347347
)
348348

349-
add_library(FemGui SHARED ${FemGui_SRCS} ${FemGuiIcon_SVG})
349+
SET(FemGuiSymbol_IV
350+
Resources/symbols/ConstraintContact.iv
351+
Resources/symbols/ConstraintDisplacement.iv
352+
Resources/symbols/ConstraintFixed.iv
353+
Resources/symbols/ConstraintForce.iv
354+
Resources/symbols/ConstraintHeatFlux.iv
355+
Resources/symbols/ConstraintPlaneRotation.iv
356+
Resources/symbols/ConstraintPressure.iv
357+
Resources/symbols/ConstraintSpring.iv
358+
Resources/symbols/ConstraintTemperature.iv
359+
Resources/symbols/ConstraintTie.iv
360+
)
361+
362+
add_library(FemGui SHARED ${FemGui_SRCS} ${FemGuiIcon_SVG} ${FemGuiSymbol_IV})
350363
target_link_libraries(FemGui ${FemGui_LIBS} ${VTK_LIBRARIES})
351364

352365
fc_copy_sources(FemGui "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Fem" ${FemGuiIcon_SVG})
366+
fc_copy_sources(FemGui "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Fem" ${FemGuiSymbol_IV})
353367

354368
INSTALL(FILES ${FemGuiIcon_SVG} DESTINATION "${CMAKE_INSTALL_DATADIR}/Mod/Fem/Resources/icons")
369+
INSTALL(FILES ${FemGuiSymbol_IV} DESTINATION "${CMAKE_INSTALL_DATADIR}/Mod/Fem/Resources/symbols")
355370

356371
# Python modules ui files, they are copied as they are, thus the need not to be added to Fem.qrc
357372
# see https://forum.freecad.org/viewtopic.php?f=10&t=25833
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#Inventor V2.1 ascii
2+
3+
4+
Separator {
5+
6+
Translation {
7+
translation 0 0.0625 0
8+
9+
}
10+
Cube {
11+
width 0.375
12+
height 0.125
13+
depth 0.75
14+
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
#Inventor V2.1 ascii
2+
3+
4+
Separator {
5+
6+
DEF X_DISPLACEMENT Switch {
7+
8+
Separator {
9+
10+
Rotation {
11+
rotation 0 0 1 1.5707964
12+
13+
}
14+
DEF DISPLACEMENT Separator {
15+
16+
Translation {
17+
translation 0 -2 0
18+
19+
}
20+
Cone {
21+
bottomRadius 0.3
22+
height 4
23+
24+
}
25+
}
26+
}
27+
}
28+
DEF Y_DISPLACEMENT Switch {
29+
30+
Separator {
31+
32+
Rotation {
33+
rotation 0 0 1 3.1415927
34+
35+
}
36+
USE DISPLACEMENT
37+
}
38+
}
39+
DEF Z_DISPLACEMENT Switch {
40+
41+
Separator {
42+
43+
Rotation {
44+
rotation -1 0 0 1.5707964
45+
46+
}
47+
USE DISPLACEMENT
48+
}
49+
}
50+
DEF X_ROTATION Switch {
51+
52+
Separator {
53+
54+
Rotation {
55+
rotation 0 0 1 1.5707964
56+
57+
}
58+
DEF ROTATION Separator {
59+
60+
Cylinder {
61+
radius 2
62+
height 0.15
63+
64+
}
65+
}
66+
}
67+
}
68+
DEF Y_ROTATION Switch {
69+
70+
Separator {
71+
72+
Rotation {
73+
rotation 0 0 1 0
74+
75+
}
76+
USE ROTATION
77+
}
78+
}
79+
DEF Z_ROTATION Switch {
80+
81+
Separator {
82+
83+
Rotation {
84+
rotation 1 0 0 1.5707964
85+
86+
}
87+
USE ROTATION
88+
}
89+
}
90+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#Inventor V2.1 ascii
2+
3+
4+
Separator {
5+
6+
Rotation {
7+
rotation 1 0 0 3.1415927
8+
9+
}
10+
Translation {
11+
translation 0 -0.25 0
12+
13+
}
14+
Cone {
15+
bottomRadius 0.5
16+
height 0.5
17+
18+
}
19+
Translation {
20+
translation 0 -0.525 0
21+
22+
}
23+
Cube {
24+
width 2
25+
height 0.5
26+
depth 2
27+
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#Inventor V2.1 ascii
2+
3+
4+
Separator {
5+
6+
Translation {
7+
translation 0 3.3333334 0
8+
}
9+
Cone {
10+
bottomRadius 0.66666669
11+
height 1.3333334
12+
13+
}
14+
Translation {
15+
translation 0 -2 0
16+
17+
}
18+
Cylinder {
19+
radius 0.26666668
20+
height 2.6666667
21+
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#Inventor V2.1 ascii
2+
3+
4+
Separator {
5+
6+
Translation {
7+
translation 0 0.225 0
8+
9+
}
10+
Sphere {
11+
radius 0.225
12+
13+
}
14+
Translation {
15+
translation 0 0.5625 0
16+
17+
}
18+
Cylinder {
19+
radius 0.1125
20+
height 0.75
21+
22+
}
23+
Translation {
24+
translation 0 0.5625 0
25+
26+
}
27+
Material {
28+
diffuseColor 1 1 1
29+
30+
}
31+
Cylinder {
32+
radius 0.1125
33+
height 0.375
34+
35+
}
36+
Translation {
37+
translation 0 -0.5625 0
38+
39+
}
40+
Cylinder {
41+
radius 0.3
42+
height 0.075
43+
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#Inventor V2.1 ascii
2+
3+
4+
Separator {
5+
6+
Translation {
7+
translation 0 0.125 0
8+
9+
}
10+
Cylinder {
11+
radius 1.25
12+
height 0.25
13+
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#Inventor V2.1 ascii
2+
3+
4+
Separator {
5+
6+
Rotation {
7+
rotation 1 0 0 3.1415927
8+
9+
}
10+
Translation {
11+
translation 0 -0.66666669 0
12+
}
13+
Cone {
14+
bottomRadius 0.66666669
15+
height 1.3333334
16+
17+
}
18+
Translation {
19+
translation 0 -2 0
20+
21+
}
22+
Cylinder {
23+
radius 0.26666668
24+
height 2.6666667
25+
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#Inventor V2.1 ascii
2+
3+
4+
Separator {
5+
6+
Translation {
7+
translation 0 0.5 0
8+
9+
}
10+
Cube {
11+
width 1
12+
height 1
13+
depth 1
14+
15+
}
16+
Translation {
17+
translation 0 1 0
18+
19+
}
20+
Cylinder {
21+
radius 0.25
22+
height 1
23+
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#Inventor V2.1 ascii
2+
3+
4+
Separator {
5+
6+
Translation {
7+
translation 0 0.225 0
8+
9+
}
10+
Sphere {
11+
radius 0.225
12+
13+
}
14+
Translation {
15+
translation 0 0.5625 0
16+
17+
}
18+
Cylinder {
19+
radius 0.1125
20+
height 0.75
21+
22+
}
23+
Translation {
24+
translation 0 0.5625 0
25+
26+
}
27+
Material {
28+
diffuseColor 1 1 1
29+
30+
}
31+
Cylinder {
32+
radius 0.1125
33+
height 0.375
34+
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#Inventor V2.1 ascii
2+
3+
4+
Separator {
5+
6+
Translation {
7+
translation 0 0.0625 0
8+
9+
}
10+
Cylinder {
11+
radius 0.375
12+
height 0.125
13+
14+
}
15+
}

0 commit comments

Comments
 (0)