Roy-043
410d4f9f6a
Part: Fix mistake in Part.getShape docstring
...
For confirmation see:
cad29253a4/src/Mod/Draft/draftguitools/gui_selectplane.py (L198)
2023-10-26 10:32:54 +02:00
Rohan Mishra
fa895df1c9
Update PointConstraintPy.xml
...
Issue #10729
Update the API documentation for `src/Mod/Part/App/GeomPlate`
2023-10-26 10:27:12 +02:00
Rohan Mishra
82a74b15c3
Update CurveConstraintPy.xml
...
Issue #10729
Updated the API documentation for `src/Mod/Part/App/GeomPlate`
2023-10-26 10:26:18 +02:00
Florian Foinant-Willig
eb55f1fe52
Part: modernize type checking
2023-10-23 18:12:03 +02:00
Rohan Mishra
806fdce9b7
Update MakePrismPy.xml
...
#10773
Solved the issue and Update the MakePrismPy.xml
2023-10-17 17:45:07 +02:00
Florian Foinant-Willig
afe8e70b86
Part: fix crash with null face
2023-10-05 08:14:50 +02:00
Florian Foinant-Willig
74a31d1473
Part: fix #10868 crash with null edge
2023-10-05 08:14:50 +02:00
liukaiwen
4f8fe8fd4a
[cmake] some definitions do not matter build now
2023-09-27 18:17:14 +08:00
wmayer
563dc0b0cc
Part: Add method Part.Compound.setFaces()
2023-09-25 15:31:30 +02:00
wmayer
83d4080fe8
App: fixes #10460 : App::PropertyPythonObject is not saving data
...
Since Py3.11 the methods names __setstate__ and __getstate__ conflict with the method names added to the object class.
Thus rename them to 'loads' and 'dumps'
2023-09-24 10:56:35 -05:00
luzpaz
274b05cf2d
Part: remove leftover comment markup
...
Closes #10731
2023-09-22 15:56:22 +02:00
Chris Hennes
0bbb10864b
Merge pull request #10656 from Ondsel-Development/dim_arc_angle
...
Sketcher_Dimension: Adds arc angle mode.
2023-09-19 12:42:56 -05:00
Pieter Hijma
9ae03a5e87
Part: Fix a missing argument for HLR projector
2023-09-19 09:02:13 -04:00
Paddle
1c8f49ee67
Adds a small convenience function to get arc of circle angle.
2023-09-18 21:33:24 +02:00
wmayer
beb39239f3
Part: fix crash in Geometry::Restore()
...
If a project contains an unknown geometry extension then the attempt to create it returns a null pointer which isn't checked and causes a segmentation fault.
See also forum: https://forum.freecad.org/viewtopic.php?t=81091
2023-09-17 19:29:28 +02:00
andrea
ad4f8783e3
removed unnecesary include into cmake
2023-09-15 17:10:00 -05:00
wandererfan
fa840560c2
[Part]code review changes for FeatureScale
2023-09-07 18:21:56 +02:00
wandererfan
9905572116
[Part]add scale command & feature
2023-09-07 18:21:56 +02:00
wmayer
b081bb05f7
Part: when replacing PyArg_ParseTupleAndKeywords with Base::Wrapped_ParseTupleAndKeywords then in a few cases the negation of the expression has been removed.
...
See also: https://forum.freecad.org/viewtopic.php?t=80958
2023-09-06 11:53:56 +02:00
luzpaz
9ed299a57a
Fix typos
2023-08-31 22:29:17 -05:00
Chris Hennes
0e8be10b90
Part: Wrap PyArg_ParseTupleAndKeywords
2023-08-25 15:34:26 -05:00
wmayer
423cc42ac8
Tests: add unit tests for:
...
* TopoShape::getElementTypeAndIndex
* ComplexGeoData::getTypeAndIndex
and fix crashes there when passing a null pointer
2023-08-25 19:23:18 +02:00
wmayer
f6d1fe1ab3
Part: refactor ViewProviderPartExt::getDetail
2023-08-25 19:23:18 +02:00
wmayer
bc8e9f5f29
Part: modernize C++: use default member init
2023-08-23 00:55:03 +02:00
wmayer
a0d86224f3
Part: modernize C++: use equals default
2023-08-22 15:14:03 +02:00
wmayer
0d854a56cd
Part: modernize C++: return braced init list
2023-08-19 11:35:41 +02:00
wmayer
312975edba
Part: modernize C++: use range-based for loop
2023-08-16 21:56:32 -05:00
Jonas Bähr
3e68d6fd50
Remove C++ escaping from *Py.xml templates
...
Now all escaping required for the C++ code generation is done when the
.cpp/.h files are generated. Previously, only newlines were escaped
automatically. This was a) inconsistent and b) leaked c++ details into
the xml data.
In addition, the escaping is now done in one central place, harmonizing
the three previous implementations.
Pre-existing c++ escape sequences in the XML files have been replaced by
their literal equivalent so that the resulting python doc sting remains
unchanged.
2023-08-16 13:17:25 +02:00
luzpaz
3d0bfa214f
Fix various typos
2023-08-13 08:17:01 -07:00
wmayer
9f456d712b
modernize C++: use equals delete
2023-08-10 17:29:05 +02:00
wmayer
d150fa7164
modernize C++: avoid bind
...
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
68d22d864b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
wmayer
0af4990817
modernize C++: make unique
2023-08-07 19:51:30 -06:00
Benjamin Bræstrup Sayoc
33384cff9c
[Everywhere] FileInfo::hasExtension for multiple values ( #9774 )
...
* [Base] Add hasExtension for multiple values
* [Gui] Use hasExtension for multiple values
* [Drawing] Use hasExtension for multiple values
* [Fem] Use hasExtension for multiple values
* [Import] Use hasExtension for multiple values
* [Mesh] Use hasExtension for multiple values
* [Part] Use hasExtension for multiple values
* [TechDraw] Use hasExtension for multiple values
2023-08-07 09:55:19 -06:00
wmayer
c7a17468e7
modernize C++: use noexcept
2023-08-07 16:06:58 +02:00
wmayer
4f10fc4fa0
modernize C++: use emplace
2023-08-06 20:29:56 -06:00
wmayer
2a88c7c7df
modernize C++: use bool literals
2023-08-06 01:35:39 +02:00
tomate44
df9c8f6556
Part: add optional tolerance to python sortEdges()
2023-08-05 15:17:26 -06:00
wmayer
899932cec0
Part/PD: modernize C++: redundant void arg
2023-08-05 16:50:31 +02:00
andrea
170c2b9957
removed old OCC <7 references
...
removed OCC <7 references
2023-08-04 21:22:40 -06:00
Abdullah Tahiri
7633b3ce93
Unused variable
2023-06-29 23:42:28 +02:00
wmayer
f44fa7a835
Part: fixes #5967 : Weird behavior in Placement dialog when using "center of mass" with Datum Plane
2023-06-29 22:49:39 +02:00
Pesc0
4a8d3853ba
[Toponaming] create ElementMap class ( #9175 )
...
* Copypaste ElementMap
* Add MappedNameRef
* Fix missing include
* Copypaste `findTagInElementName`
* fix error introduced _somewhere_
* refactor toponaming constants
* Move `findTagInElementName` in `MappedName`
* reintroduce workaround to compile ElementMap
* Added missing functions copied from complexgeodata
* fix last compile errors, reorder and format files
* remove recursive refs to ComplexGeoData
* Add more comments
* fixed comments and added tests
* added FIXME, make functions private, misc fixes
* Move static functions from complexGeoData to PostfixStringReferences. Rename to ElementNamingUtils
* Fix broken includes due to previous change
* Revert constants from string to const char*
* added childmap tests and made hasher public
* Make functions private
* Added remaining tests
* removed bool return from `erase` functions
* fix missing appexport
Co-authored-by: John Dupuy <jdupuy98@gmail.com >
2023-06-15 09:05:24 -05:00
luzpaz
129d5882a7
Migrate domain name from freecadweb to freecad ( #9352 )
...
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files
Closes #6415
2023-04-24 15:19:20 -05:00
xtemp09
c8f678087f
Fix the typo in #9267
2023-04-15 15:41:33 +07:00
xtemp09
93bdd9dc78
Fix memory leak when loading a font file
...
- FreeCAD allocated memory to load a font file, but did not deallocate.
std::unique_ptr fixed it.
- Removed unnecessary includes
2023-04-15 01:42:19 +07:00
wmayer
122ab14d92
Part: add functions to return the number of nodes and triangles of a tessellation
2023-04-11 13:34:44 +02:00
wandererfan
7fa7cb7f0b
[Part]handle unicode filename on win
2023-03-29 15:04:57 -04:00
alexneufeld
655066a135
Explicitly use App.Vector in docstrings
2023-03-27 16:34:28 +02:00
alexneufeld
3628c3055c
fix incorrect docstring for Part.Shape.extrude method
2023-03-27 16:34:28 +02:00