Commit Graph

21169 Commits

Author SHA1 Message Date
wmayer
31e2e95203 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
b9280ae760 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
59b4f8d6d8 Test: add unit tests to test with wrong types 2022-01-19 10:19:00 +01:00
wmayer
74fe1fa4db Part: support of vertexes in ReferenceHighlighter 2022-01-18 19:47:06 +01:00
wmayer
af868ed079 PD: move ReferenceHighlighter to Part module 2022-01-18 18:24:02 +01:00
wmayer
f9b37729fe PD: add PD test modules to __init__.py 2022-01-18 18:02:10 +01:00
Jonas Bähr
96e7c6b3b5 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
wmayer
113a587ae5 Part: in function to create a part handle meshes with defects 2022-01-18 15:20:55 +01:00
Ajinkya Dahale
d5ae0777d0 [PD] Correct include guard name
Correction in `PartDesignGui::ReferenceHighllighter`
2022-01-18 03:01:20 +01:00
Uwe
af45d932c4 [Part] Extrude: avoid code duplication
more code that is used twice into a subroutine
2022-01-17 16:58:03 +01:00
wmayer
6461f9f6d2 PD: [skip ci] make uniform the license text of test modules 2022-01-17 16:38:10 +01:00
wmayer
20b86e55b8 Part: expose Precision to Python 2022-01-17 12:30:45 +01:00
Uwe
a3b3134594 [Part] just style fixes
to keep following PR diffs small

all changes automatically done by MSVC
2022-01-17 01:08:48 +01:00
wmayer
2d1c083d9a PD: fix crash in thickness dialog when clicking 'Add Face' button 2022-01-16 18:59:26 +01:00
mwganson
c0c4ae40a5 TopoShape::analyze() SetRunParallel(true) to do the bopcheck in parallel mode 2022-01-16 16:30:08 +01:00
mwganson
e535204f8e Sketcher: prevent crash when accessing null pointer 2022-01-16 15:14:05 +01:00
wmayer
f147986fa9 App: Bugfix for NULL-Pointer dereference of Property->getName() 2022-01-16 14:30:51 +01:00
wmayer
b836712c83 Test: [skip ci] clean up documents for unit test with cross links 2022-01-15 16:34:13 +01:00
wmayer
94e2ce44b4 Test: [skip ci] add unit test with cross links
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=58603
2022-01-15 14:28:08 +01:00
wmayer
6a7e02000e Test: [skip ci] add test for issue 4823
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=52775
2022-01-15 14:07:28 +01:00
Chris Hennes
089b18f868 Part Design: Missing = 2022-01-14 09:38:45 -06:00
Uwe
66864bbe7b [PD] Pad/Pocket: sort out duplicated code
the checkboxes are almost identical and it avoids work to have them in one location
2022-01-14 13:17:25 +01:00
wmayer
a1a8de633c PD: fix small inconsistence, use forwared declaration 2022-01-14 12:22:16 +01:00
Ajinkya Dahale
b2e6f91c1d [PD] Use buttonToggled signal in PD pipe
Combines other button toggle methods/signals/slots involved.
2022-01-13 22:31:05 -05:00
Ajinkya Dahale
1296e2c417 [PD] Use Gui::ButtonGroup in TaskDlgPipeParameters 2022-01-13 22:31:05 -05:00
luz paz
e4aad767f4 Mesh: translate doxygen from DE to EN
For the purpose of making the source documentation uniform, source comments in this file were translated to English.
2022-01-13 17:27:43 +01:00
Yorik van Havre
c9b772cf7d Merge pull request #5373 from marioalexis84/draft-wpproxy
Draft: Add extension 'AttachExtensionPython' to WP proxy
2022-01-13 14:54:14 +01:00
Yorik van Havre
99ae628a00 Merge pull request #5370 from Roy-043/Draft-Fix-translation-issues
Draft: Fix translation issues
2022-01-13 14:53:28 +01:00
luz paz
cd089a82c7 Robot: fix source comment typo 2022-01-12 14:50:39 -06:00
luzpaz
313032af16 Update src/Mod/Assembly/App/opendcm/core/property.hpp
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2022-01-12 14:50:39 -06:00
luz paz
45bde3b502 TD: fix 'praefix' typo in source and source comments 2022-01-12 14:50:39 -06:00
luz paz
19e984f8c9 Fix various typos
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childrens,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oce,oder,ontop,orgin,orginx,orginy,ot,pard,parm,parms,pres,programm,que,rady,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml,./build/doc/SourceDocu`
2022-01-12 14:50:39 -06:00
Roy
843ea92055 Draft: Fix additional translation issues related to the snapping commands 2022-01-12 13:44:05 +01:00
Yorik van Havre
f3530800b0 Merge pull request #5371 from Roy-043/Arch-Fix-translation-issues
Arch: Fix translation issues
2022-01-12 13:37:52 +01:00
Chris Hennes
1f70e352a8 OpenSCAD: Rewrite fixVisibility() to use rootObj
The original algorithm tried to use a heuristic to calculate which
objects should be shown or hidden, based on the object name. This commit
replaces that heurstic with a request for the list of root objects from
FreeCAD, which is then filtered to remove those that existed before the
import. Any descendant of those root objects is hidden, and the root
made visible, in keeping with the design of the CSG importer.
2022-01-11 14:04:57 -06:00
Wanderer Fan
79f9fb6845 [TD]expose Page request paint method to Python 2022-01-11 09:36:48 -05:00
Wanderer Fan
3a7a12e436 [TD]improve handling of View in multiple Pages 2022-01-11 09:36:48 -05:00
Chris Hennes
4cc744c920 AddonManager:Correct funcion name 2022-01-11 07:38:40 -06:00
Roy-043
59755b9d0e Update gui_arcs.py 2022-01-11 11:42:45 +01:00
Chris Hennes
70d61b9624 Addon Manager: Fix for Py3.6 w/ no fromisodate 2022-01-10 21:14:32 -06:00
marioalexis
285a4a76c1 Draft: Add extension 'AttachExtensionPython' to WP proxy 2022-01-10 23:11:30 -03:00
Uwe
5ee5a6ed36 [TD] fix a double to float truncation compiler warning
fixes warning C4305: 'argument': truncation from 'double' to 'float'
2022-01-11 02:10:44 +01:00
Chris Hennes
1bfbcb5c95 Addon Manager: Remove progress object from git pull 2022-01-10 10:45:23 -06:00
sliptonic
619947fcc2 Merge pull request #5270 from iromero91/dressup_translate_fixes
[PATH] Translation fixes for dressup operations
2022-01-10 10:42:04 -06:00
sliptonic
b0d7bd5961 Merge pull request #5329 from belov-oleg/path_simulator
Path Simulator: A workaround of the bug while milling curves with small radius
2022-01-10 10:30:32 -06:00
Roy
adf084bb45 TechDraw: Rename TechDraw_ExtensionArc command to TechDraw_ExtensionDrawCosmArc 2022-01-10 11:22:18 -05:00
sliptonic
2e6437a961 Merge pull request #5352 from sliptonic/bug/simulator
[Path]  bug fixes for dxf_post and simulator
2022-01-10 09:28:05 -06:00
Roy-043
63f4ac15fd Update gui_arrays.py 2022-01-10 15:12:09 +01:00
Uwe
626425526b [PD] sort out more Pad/Pocket code
as suggested in #5349
2022-01-10 14:33:02 +01:00
Yorik van Havre
00695f7378 Merge pull request #5307 from marioalexis84/draft-projectPoint
Draft: Fix projectPoint method
2022-01-10 12:53:36 +01:00