Commit Graph

27150 Commits

Author SHA1 Message Date
Roy-043
37c90dacdb TechDraw: fix typos in CommandAnnotate.cpp 2022-01-22 11:48:19 +01:00
0penBrain
68e1fc46b6 Display Midplane checkbox with Pocket/ThroughAll
Was enabled but not visible.
Hopefully last time I fix it. :)
2022-01-22 10:34:14 +01:00
wmayer
3945dc0f74 Base: only handle Base::ParserError exceptions for quantity expressions 2022-01-22 01:15:12 +01:00
sliptonic
9a7cc148b6 Merge pull request #5403 from sliptonic/feature/splitArcsHelper
[Path] Feature/split arcs helper
2022-01-21 13:14:47 -06:00
Wanderer Fan
bed513b589 [TD]Adjust initial placement of dim text 2022-01-21 11:25:09 -05:00
Aapo
9266c34498 [TD] Add new non-standard format specifier '%w' that truncates trailing zeros. 2022-01-21 11:24:44 -05:00
edi271
d7357410a2 [TD] add right/left baseline in Parallel Dimension tools 2022-01-21 11:22:40 -05:00
edi271
6f1924f89a [TD] Variable line stretching distance 2022-01-21 11:22:40 -05:00
edi271
1a8e88eeec [TD] Move Circulation method to DrawUtil 2022-01-21 11:22:40 -05:00
Wanderer Fan
ae7c9bf3e7 [TD]Add MoveView and CopyView commands 2022-01-21 11:21:51 -05:00
Chris Hennes
8d96cadb69 Addon manager: install dependencies (#5376)
Addon Manager: Dependency Installation

The Addon Manager can now attempt to use pip directly to install
required packages as specified in either metadata.txt or
requirements.txt files provided by AddOns. The packages are installed
into FreeCAD.getUserAppDataDir()/AdditionalPythonPackages directory.
Only simplified requirements.txt data is supported: any version
information is stripped out, and only packages are supported (that is,
no pip arguments, included files, etc.). Further, packages are checked
against a list of allowed packages prior to being suggested for
installation. Addon authors should submit a PR to the FreeCAD repo
adding their requirements to the allowed list, for packages that are not
already on the list (this is a malware-prevention mechanism).
2022-01-21 10:19:21 -06:00
wmayer
07bb92e004 Base: extend Python wrapper to allow to create a quantity with Units.Quantity(1, 'm') and add a unit test 2022-01-21 14:57:49 +01:00
0penBrain
66c513c698 [Core] Fix Quantity construction with value as double + unit as string 2022-01-21 14:56:11 +01:00
Uwe
4038c6487b [Part] add missing include
needed since PR #5382

- also transfer another include
2022-01-21 01:07:38 +01:00
sliptonic
55a49e1db6 helper to split arcs 2022-01-20 11:40:37 -06:00
sliptonic
62a9ee4241 add helper to discretize arc gcode to G1 2022-01-20 11:40:37 -06:00
sliptonic
10f5c694b7 fix typo 2022-01-20 11:40:37 -06:00
0penBrain
2a1f2588ec [Sketcher] set debug as cross platform 2022-01-20 13:03:16 +01:00
marioalexis
83b55e577b Part: Use Tools::getNormal to compute normal to surface 2022-01-20 13:01:27 +01:00
marioalexis
ba711886e1 Part: Implement Tools::getNormal function 2022-01-20 13:01:27 +01:00
wmayer
7db7552af7 Test: add unit test for face and surface normals 2022-01-20 11:15:37 +01:00
Uwe
9c828d6efd [Part] Extrusion: just style fixes
to keep following PR diffs small

all changes were automatically done by MSVC
2022-01-20 01:08:35 +01:00
0penBrain
0019726cd8 [GUI] Allow origin plane/axis selection with entire label bounding box 2022-01-20 00:32:24 +01:00
Ajinkya Dahale
94a71f67aa [FEM] Add reference highlighting for FEM constraints
Following constraints affected:

`ViewProviderFemConstraint`
`ViewProviderFemConstraintDisplacement`
`ViewProviderFemConstraintFixed`
`ViewProviderFemConstraintFluidBoundary`
`ViewProviderFemConstraintForce`
`ViewProviderFemConstraintHeatflux`
`ViewProviderFemConstraintPressure`
`ViewProviderFemConstraintSpring`
`ViewProviderFemConstraintTemperature`
2022-01-19 22:22:42 +01:00
sliptonic
ac80b42737 Merge pull request #4425 from sliptonic/feature/discreteArcs
[PATH] Add property to split arcs into G1/G0 segments
2022-01-19 14:04:14 -06:00
sliptonic
dc1a491473 Add property to split arcs into G1/G0 segements 2022-01-19 14:00:55 -06:00
sliptonic
249363bb43 Merge pull request #5390 from sliptonic/feature/helix-generator
[Path] Feature/helix generator
2022-01-19 13:55:12 -06:00
sliptonic
d53bb5ebca fix missing test import 2022-01-19 13:50:54 -06:00
sliptonic
2640fea282 basic retraction handling 2022-01-19 13:19:10 -06:00
sliptonic
a13c003e66 cleanup for readability. More forgiving of input.
Move to center if possible before retract
2022-01-19 13:19:10 -06:00
sliptonic
60f304bf15 Added another test to drill generator and corresponding test case 2022-01-19 13:19:10 -06:00
sliptonic
199e5264cd helix generator shouldn't assume flip.
shortend test case
2022-01-19 13:18:15 -06:00
Russell Johnson
e6631679cc Path: Append unit tests for helix generator 2022-01-19 13:18:15 -06:00
sliptonic
7e1b4cb291 Helix Generator and Testing 2022-01-19 13:18:15 -06:00
sliptonic
c81ece8a6d Merge pull request #5397 from luzpaz/typo/Path
Path: fix minor typo [skip ci]
2022-01-19 13:05:25 -06:00
luz paz
a78ecef545 Path: fix minor typo [skip ci] 2022-01-19 13:39:58 -05:00
sliptonic
8e6e67cef7 Merge pull request #5229 from sliptonic/feature/drill-refactor
[PATH]  Refactoring drilling op to use generators
2022-01-19 11:25:41 -06:00
wmayer
659a55ffb9 Base: Exception handling:
* Harmonize FreeCAD with Python exception types
* Implement AbortException::getPyExceptionType() to avoid handling it in client code
* Remove catch block for plain C strings
2022-01-19 18:00:04 +01:00
wmayer
2a3991d799 App: do not hide actual exception type in DocumentObjectPy::addProperty/DocumentObjectPy::removeProperty
and throw TypeError in DynamicProperty::addDynamicProperty() if the based type id is invalid
2022-01-19 10:48:00 +01:00
wmayer
80492d0b2a Test: add unit tests to test with wrong types 2022-01-19 10:19:00 +01:00
marioalexis
950a859842 App: Prevent crash when trying to delete pointer to BaseClass 2022-01-19 08:14:41 +01:00
marioalexis
33b2c7d353 Base: Add 'getTypeIfDerivedFrom' member function to Type class 2022-01-19 08:14:41 +01:00
Aapo Lankinen
82b97374fd [App] DocumentObject.cpp: Add more information to the error message ... (#5394)
* [App] DocumentObject.cpp: Add more information to the error message printed to the console when links go out of allowed scope, namely linked object name(s), allowed scope name, invalid scope name(s).
2022-01-19 01:14:13 +01:00
wmayer
d530992689 Part: support of vertexes in ReferenceHighlighter 2022-01-18 19:47:06 +01:00
wmayer
8db8126dd5 PD: move ReferenceHighlighter to Part module 2022-01-18 18:24:02 +01:00
wmayer
09e14f8488 PD: add PD test modules to __init__.py 2022-01-18 18:02:10 +01:00
Jonas Bähr
75d7feaa33 PD: Add tests for InvoluteGear
There are some basic tests to cover the gear profile and its parameters
and some integration tests for the interaction with PD Pad and Pocket.

I followed the same pattern as the other PartDesign tests, e.g. not using
PEP8 style method names. Eventually some helper methods could be
extracted and moved to the common base framework in Mod/Test, but that's
another step.
2022-01-18 17:43:52 +01:00
mdkus
8047723cde Update CreatePyModule.py 2022-01-18 15:53:25 +01:00
wmayer
c9007693cf Part: in function to create a part handle meshes with defects 2022-01-18 15:20:55 +01:00
wmayer
25748e1505 Gui: [skip ci] improve comment 2022-01-18 10:55:34 +01:00