Chris Hennes
4e5c852a9b
Modify Python checks when cMake >= 3.12
2021-03-06 21:11:34 +01:00
UR-0
7499d0b37b
fixes not handled exception in "task_mesh_gmsh.py"
...
error = sys.exc_info()[0].strip()
<class 'AttributeError'>: type object 'RuntimeError' has no attribute 'strip'
Furthermore reporting "value" instead of "type" gives more useful error messages
2021-03-06 21:00:23 +01:00
Benjamin Nauck
93d2758fbd
[Spreadsheet] Use std::shared_ptr instead of boost::shared_ptr
...
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
Benjamin Nauck
7422a64c84
[Sketcher] Use std::shared_ptr instead of boost::shared_ptr
...
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
Benjamin Nauck
b6a5716b6a
[Sandbox] Use std::shared_ptr instead of boost::shared_ptr
...
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
Benjamin Nauck
8017d00e78
[Robot] Use std::shared_ptr instead of boost::shared_ptr
...
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
Benjamin Nauck
d812313edd
[Points] Use std::shared_ptr instead of boost::shared_ptr
...
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
Benjamin Nauck
8441f0f690
[Path] Use std::shared_ptr instead of boost::shared_ptr
...
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
Benjamin Nauck
7bacc68533
[MeshPart] Use std::shared_ptr instead of boost::shared_ptr
...
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
Benjamin Nauck
1384903af8
[Fem] Use std::shared_ptr instead of boost::shared_ptr
...
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
Benjamin Nauck
82e423735f
[Assembly] Use std::shared_ptr instead of boost::shared_ptr
...
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
Benjamin Nauck
0032f4e298
[Path] Switch from boost::tuple to std::tuple
...
It's better to use the standard lib when possible
2021-03-06 19:31:06 +01:00
Chris Hennes
73dd71dadc
[OpenSCAD] Add unit tests for importing primitives
2021-03-06 13:31:09 +01:00
wmayer
e4ec3d5532
Fem: [skip ci] set backend of matplotlib to Qt5Agg
2021-03-05 21:25:27 +01:00
wmayer
9add6e2c9a
Revert "[PartDesign] Add Material property to Body"
...
This reverts commit 92db97a26dbdd5c2210df39dd08a716faf6102f6.
There is no need to make this a static property because it can be added at runtime via Python or the GUI
2021-03-04 18:50:57 +01:00
Yorik van Havre
78ce247a29
Merge pull request #4549 from chennes/lgtmFixDraftLocalizeVectors
...
[Draft] Fix localize_vectors double definition
2021-03-04 12:27:05 +01:00
howetuft
6061b8fa8b
[PartDesign] Add Material property to Body
2021-03-04 12:19:50 +01:00
wmayer
215eeb0afa
PD: [skip ci] in the helix dialog use step size of 5 degree for the angle
2021-03-04 11:09:54 +01:00
donovaly
feabd1af30
[PD] use same helix angle step as for other features
...
All other PD features use a step size of 1.0 for angles.
(Personally also for me a step of 5 is not convenient)
2021-03-04 11:08:41 +01:00
donovaly
21d4a37e1f
[PD] set App constraints for their Gui counterparts
...
based on Werner's work yesterday, this PR takes care of the missing PD features to use the constraints already defined in App
2021-03-04 11:03:24 +01:00
00001000bit
aba35b86f6
Update icon for Sketcher Constraint Block
...
The existing icon for the sketcher constraint for "constraint block" is easily confused with the icon for the diameter constraint. A small modification to add a 2nd cross bar will visually distinguish it.
2021-03-04 10:23:10 +01:00
wmayer
cffe8d19fd
PD: [skip ci] in the helix task dialog use the value range defined in the helix feature
2021-03-03 17:40:11 +01:00
donovaly
fc36ab6c64
[PD] set constraints for helix properties
...
at the moment it is possible by a click to set e.g. -1 turn which would cause an error
2021-03-03 17:25:40 +01:00
David Osterberg
34a44073c1
PartDesign: Allow customization of Helix preview modes
2021-03-03 17:15:08 +01:00
M G Berberich
ba5c438ec2
[PD] fixes problem with the path for user-defined hole-cut-types
...
https://forum.freecadweb.org/viewtopic.php?f=19&t=51403&start=20#p482574
2021-03-03 16:02:17 +01:00
donovaly
1376931758
[PD] make constraints static class member
...
the MSVC IDE warned me about different floatAngle definitions in PD
2021-03-03 15:58:22 +01:00
donovaly
ab29cf5740
[PD] attempt to use more reasonable angle limit for drafts
...
using e.g. 89.999 as angle works. It might not be useful in real life, but the 89.99 seem arbitrary.
2021-03-03 15:56:21 +01:00
wmayer
3afe40d8ce
PD: AddressSanitizer: heap-use-after-free
...
Fix crash inside TaskDlgSketchBasedParameters::reject()
2021-03-03 15:53:12 +01:00
wmayer
70ca3580a1
PD: improve task panel for revolution/groove:
...
* set range Angle property to spin box
* connect signals after initializing widgets to avoid superfluous recomputes
2021-03-03 15:42:48 +01:00
wmayer
6364a4cb7d
PD: [skip ci] set value range to angle spin box
2021-03-03 15:22:53 +01:00
wmayer
ea0f95739b
PD: [skip ci] fix angle checks for groove and revolution
2021-03-03 14:56:16 +01:00
wmayer
86751fd944
PD: [skip ci] set angle constraints for groove
2021-03-03 14:55:19 +01:00
donovaly
2caa07c291
[PD] disallow angles <=0 for holes and revolution
...
neither the taper, drill or countersink angle can be zero or negative for a valid hole, thus set a constraint
2021-03-03 14:33:01 +01:00
wmayer
07a59e242d
PD: [skip ci] fix angle check in PolarPattern::getTransformations()
2021-03-03 10:39:41 +01:00
wmayer
dd31be3b19
PD: improve task panel for polar patterns:
...
* set range of Occurrences property to spin box
* connect signals after initializing widgets to avoid superfluous recomputes and possible inconsistencies
2021-03-03 10:32:46 +01:00
wmayer
7b43f7e996
PD: improve task panel for linear patterns:
...
* set range of Occurrences property to spin box
* connect signals after initializing widgets to avoid superfluous recomputes and possible inconsistencies
2021-03-03 10:32:02 +01:00
donovaly
20024707a9
[PD] disallow invalid polar and linear pattern settings
...
as discussed in 423d41da19 we should disallow invalid property settings
2021-03-03 07:45:08 +01:00
luz paz
e417fd9436
Crowdin: remove trailing whitespace [skip ci]
2021-03-02 17:29:21 +01:00
wmayer
dfba396b4f
Gui: support to customize the font size of bounding boxes
2021-03-02 16:29:57 +01:00
David Osterberg
c1b3fba031
Beautify xml step 1: These changes do not affect the uic output
2021-03-02 16:29:11 +01:00
Yorik van Havre
19e4113de4
Arch: Fixed SectionPlane outside objects bug in ArchSectionPlane - Fixes #4549
2021-03-01 16:49:31 +01:00
Chris Hennes
4ebdff9d9c
[Draft] Fix localize_vectors double definition
...
LGTM identified an instance where a function was defined twice: in this
case, one version was intended to take a list of items and the second
version just a single item. Because they share the same name and number
of arguments, the second definition overrode the first. This causes no
problems in the current code because the version that takes a list is
never used. However, for consistency with the analogous
"globalize_vectors" and "globalize_vector" functions, the "localize*"
versions are changed to match that pattern. All calls in are
converted to the singular use.
2021-03-01 09:36:21 -06:00
Chris Hennes
3e48fef002
[OpenSCAD] Add unit test framework to module
...
The OpenSCAD module did not have any unit tests. This commit adds the
basic framework (and two very simple tests). The framework is modeled
after the unit tests in the FEM module.
2021-03-01 15:21:18 +01:00
David Osterberg
1110f1198b
PartDesign: Allow use of circle edge as axis in PolarPattern
2021-03-01 14:48:24 +01:00
David Osterberg
c862ec458c
PartDesign: Allow use of circle edge as axis in ProfileBased
2021-03-01 14:48:24 +01:00
wmayer
9120d4a7d9
PD: [skip ci] PolarPattern: Support 1 occurrence
...
This is analogous to support 1 occurrence of the linear pattern feature: 74ea8353edc9
2021-03-01 13:58:02 +01:00
donovaly
88c6ed3d2d
[PD] fix multi-transform View
...
- fixes bug 4581
See the first issue reported here:
https://forum.freecadweb.org/viewtopic.php?f=3&t=56093#p482553
- also fix issue that one could set 1 occurrence for polar patterns despite 2 are required at least
- also fix potential dereferencing null pointer (reported by MSVC)
2021-03-01 13:11:15 +01:00
David Osterberg
beb85522e4
PartDesign: Hole. Address Donovaly bugs 7 and 8
...
bug 7: the update view checkbox should be enabled/disabled based on Model thread.
the checked state should not change
bug 8: the Thread depth options should be disabled when Model thread is unchecked.
because they don't do anything in the model it is confusing if they are enabled.
2021-02-28 20:13:14 +01:00
David Osterberg
10f922613b
PartDesign: Hole: Always update view if modelthread is disabled
...
Also: Check the Update View checkbox and disable it, when turning off
model thread.
2021-02-28 20:13:14 +01:00
David Osterberg
99215a9f9f
PartDesign: Hole: Turn off keyboard tracking on model thread spinboxex
2021-02-28 20:13:14 +01:00