Commit Graph

1186 Commits

Author SHA1 Message Date
Chris Hennes
f25af97811 Update translations 2023-11-09 12:23:56 -06:00
wmayer
48ad05cf6c Base: extend ShapeHintsItem to allow to set vertex ordering and shape type 2023-11-08 21:03:33 +01:00
Chris Hennes
590fb19f31 Merge pull request #10978 from FlachyJoe/modernize-type-check
Modernize type and derived type checking
2023-11-06 10:44:32 -06:00
wmayer
13f30b2cbb Base: fix crash in PyException::ReportException() 2023-11-06 10:08:18 +01:00
Chris Hennes
ce8f48967a Merge branch 'main' into modernize-type-check 2023-10-31 15:46:18 -05:00
Ed Williams
58c3e2a425 Base: set sys.last_vars to enable post mortem debugging after exception
* Update Interpreter.cpp to enable stack trace

This enables python debuggers to stack trace after an exception.
See https://forum.freecad.org/viewtopic.php?p=714349#p714349

Co-authored-by: bdieterm <119257544+bdieterm@users.noreply.github.com>
2023-10-31 09:40:57 +01:00
Florian Foinant-Willig
741296b82e Core: modernize type checking 2023-10-23 18:07:07 +02:00
wmayer
2265198ffe Base: add overloaded method Matrix4D::isUnity() 2023-10-19 19:25:25 +02:00
wmayer
e3fb3b9639 Base: add method XMLReader::isStartOfDocument() 2023-10-12 19:46:21 +02:00
Chris Hennes
80be10c643 Base/Toponaming: Refactor to extract filters to new file 2023-10-10 11:28:30 -05:00
Chris Hennes
023ff7f388 App/Toponaming: Linter cleanup of Base64 code
Does not address pointer arithmetic or array indexing complaints.
2023-10-10 10:19:44 -05:00
Chris Hennes
33abb7b5b1 App/Toponaming: Add base64 encoding to XML 2023-10-10 10:19:43 -05:00
wmayer
cab1b21880 Core: In XMLReader::readNextElement() support structure <element>data</element> 2023-10-09 15:06:45 +02:00
wmayer
3e33591093 Core: add method to XMLReader to access next element of an XML file
If the next element could be read-in successfully true is returned, and false otherwise.
2023-10-09 15:06:45 +02:00
wmayer
d305f306df Core: Revert superfluous changes made with PR #9521 2023-10-09 15:06:45 +02:00
Abdullah Tahiri
468f79b84d Base: templates for type checking
=================================

Original idea of Werner:
https://github.com/FreeCAD/FreeCAD/pull/10643#issuecomment-1712966545

I really liked this syntax to avoid repetition and even explicit consideration of Types when type checking.

I thought it would be a pitty to get it lost.
2023-10-07 23:12:46 +02:00
sliptonic
747c2b86f8 Merge pull request #9521 from AgCaliva/User/Document/Feature_level_units_selection_#7746
Adding "ProjectUnitSystem" support to project files.
2023-10-06 07:56:59 -05:00
wmayer
6e87ce12c6 Base: replace calls of printf() with Console().DeveloperWarning()
and remove the assert(0) statement as this is an indication of a problem in the code but not serious enough to crash the application
2023-10-05 14:06:37 +02:00
AgCaliva
3ac69993c0 merge master via cli 2023-10-04 13:28:48 -03:00
Jolbas
5d39d7c3e9 Matrix.decompose() fix
Fixes some errors when matrix has zero scale in one or two directions
2023-09-28 15:25:29 -05:00
Jolbas
31637adaa0 Create rotation from any matrix
To help find a matrix components a decompose method is added to Matrix class
2023-09-28 15:25:29 -05:00
wmayer
455fd3b2e5 Base: use NoArgs in MatrixPy 2023-09-27 17:48:53 +02:00
AgCaliva
a4e90b2609 Merge branch 'master' into User/Document/Feature_level_units_selection_#7746 2023-09-25 22:58:23 -03:00
Chris Hennes
3f3ab1ae15 Update translations 2023-09-19 22:25:14 -05:00
AgCaliva
cfdbd2322a Merge branch 'master' into User/Document/Feature_level_units_selection_#7746 2023-09-18 14:01:25 -03:00
wmayer
7eff934913 Base: fix incorrect method names of Matrix class about diagonal and trace 2023-09-18 01:21:07 +02:00
wmayer
e5dca19ed6 Base: fix many lint warnings in Matrix class 2023-09-18 01:21:07 +02:00
AgCaliva
64f60721a9 merge master via cli 2023-09-16 02:12:58 -03:00
Chris Hennes
0bc6870618 Update translations (#10613)
* Update translations
* Start: Remove Start.ts
2023-09-10 13:06:26 -05:00
AgCaliva
93679b2729 Fix DOMDocument redefinition error 2023-09-08 09:12:52 -03:00
wmayer
beabfd9e06 Base: fixes #10462: mesh.unite() causes segementaion fault 2023-09-03 11:14:34 +02:00
Chris Hennes
f6fee05f82 RE: Correct use of Wrapped_ParseTupleAndKeywords 2023-09-02 13:55:08 +02:00
luzpaz
40d2a90e3a Fix typos 2023-08-31 22:29:17 -05:00
AgCaliva
ccc4d6033b Trying to solve header issues in windows. 2023-08-31 12:38:31 -03:00
AgCaliva
9f9b3a5af1 fix parameter 2023-08-31 01:03:51 -03:00
AgCaliva
eebf751751 fix merge 2023-08-30 17:59:41 -03:00
AgCaliva
3da00e36a3 Merge Master 2023-08-30 16:24:16 -03:00
AgCaliva
704a5bd10a Fixed working with tests 2023-08-29 14:41:58 -03:00
Chris Hennes
40f130643a Update translations 2023-08-29 07:38:09 -05:00
mosfet80
cb607ffe1e [BASE] Removed dead code (#10330) 2023-08-28 10:41:20 -05:00
Chris Hennes
3d8ec230f8 Merge pull request #10365 from chennes/wrapPyArgParseWithKeywords
Wrap PyArg_ParseTupleWithKeywords
2023-08-27 10:23:31 -05:00
wmayer
1b7d96f55a Base: add methods to get volume and get max/min points 2023-08-27 03:11:00 +02:00
Chris Hennes
951ad4bf77 Base: Add clearer error message for missing nullptr 2023-08-26 16:11:03 -05:00
wmayer
b4739d3ca4 Base: fix clang-tidy warnings in BoundBox.h 2023-08-26 21:03:58 +02:00
Chris Hennes
f17e6aa98f Base: Add static_assert for keyword array size > 0 2023-08-26 12:32:29 -05:00
wmayer
9dd4779252 Test: add more unit tests 2023-08-26 13:17:53 +02:00
Chris Hennes
6bd1c6be49 Base: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 14:52:30 -05:00
Chris Hennes
9eafbb65af Base: Add wrapper for PyArg_ParseTupleAndKeywords
Enable strict const-correctness for the keywords argument and address
several linter complaints related to using a C function in C++ code.
2023-08-25 14:49:28 -05:00
wmayer
097d5d6fee Base: C++ core guidelines: init variables 2023-08-24 18:48:52 +02:00
wmayer
4210ab01e0 Base: modernize C++: use default member init 2023-08-23 19:51:44 +02:00