Commit Graph

1630 Commits

Author SHA1 Message Date
bgbsww
a5039ad697 Default freenet to true for sweep to fix rendering bug 2023-12-01 14:02:49 +01:00
wmayer
a566046de1 Part: use BRepTools::OuterWire to get outer wire of a face
In the past ShapeAnalysis::OuterWire() was used that may fail to determine the correct outer wire.

Forum thread: https://forum.freecad.org/viewtopic.php?t=83122
2023-11-30 12:41:49 +01:00
mwganson
26f23c945b [Part::Mirroring] Add support for mirror plane reference object 2023-11-27 11:17:48 -06:00
bgbsww
d6c3faac58 Add readonly length properties to part helix and spiral (#11406)
* Add readonly length properties to part helix and spiral

* Comment to explain non obvious Mass as Length
2023-11-27 10:52:23 -06:00
Chris Hennes
cfd41683a5 Core: Enable compiling with MSVC /permissive- (#11014)
* Base: Fixes for MSVC permissive-

* App: Fixes for MSVC permissive-

* Gui: Fixes for MSVC permissive-

* Main: Fixes for MSVC permissive-

* Fem: Fixes for MSVC permissive-

* Material: Fixes for MSVC permissive-

* Part: Fixes for MSVC permissive-

* Mesh: Fixes for MSVC permissive-

* Points: Fixes for MSVC permissive-

* Robot: Fixes for MSVC permissive-

* TechDraw: Fixes for MSVC permissive-

* Path: Fixes for MSVC permissive-

* Core; Changes per review comments

* TD: Revision from wandererfan

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-27 17:37:29 +01:00
wmayer
7c11ad0fb6 Part: fix TopoShapePy::optimalBoundingBox 2023-11-24 15:06:00 +01:00
wmayer
6d11e2206d Part: fix BSplineCurve2dPy::insertKnot 2023-11-24 15:06:00 +01:00
bgbsww
26f3254a2f Setting on 89.9 as a limit, enforce in dialog and properties 2023-11-22 10:30:54 +01:00
Pieter Hijma
bfc418bbf2 Make comments consistent 2023-11-21 16:19:29 +01:00
Pieter Hijma
d40404744b Add documentation for PolyHLRToShape 2023-11-21 16:19:29 +01:00
Pieter Hijma
f65ec3a00d Add constructor documentation as well 2023-11-21 16:19:29 +01:00
Pieter Hijma
572b54976c Add documentation for HLRToShape 2023-11-21 16:19:29 +01:00
Pieter Hijma
dc939f519a Remove comments from the text field 2023-11-21 16:19:29 +01:00
Pieter Hijma
bb77c0670a Fix a small problem with parameters
This is the same problem as in https://github.com/FreeCAD/FreeCAD/pull/10727.
Apparently it was also present in PolyAlgo.
2023-11-21 16:19:29 +01:00
Pieter Hijma
f97906c4e3 Add documentation for HLRBRep.PolyAlgo 2023-11-21 16:19:29 +01:00
Pieter Hijma
ca159ae847 Improve the documentation of HLRBRep.Algo 2023-11-21 16:19:29 +01:00
Pieter Hijma
75e18e3cf9 Change <S> to S
Otherwise, it is invalid XML
2023-11-21 16:19:29 +01:00
Rohan Mishra
6d6f8ca1e0 Update HLRBRep_AlgoPy.xml
#10728

Updated the API documentation of HLRBRep_AlgoPy.xml.
2023-11-21 16:19:29 +01:00
Chris Hennes
c556af673a Part: Add BRepFeat_MakeRevol.hxx to Precompiled header 2023-11-20 21:43:38 -06:00
bgbsww
0148cbaac1 Defend against surface not created from invalid face 2023-11-20 13:59:01 -03:00
Rohan Mishra
acecf141d9 Update ShapeFix_EdgePy.xml (#11193)
* Update ShapeFix_EdgePy.xml

Issue #11182
---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2023-11-20 10:49:41 -06:00
tomate44
810da3db88 Part : fix edge creation of Geom2d curves 2023-11-20 12:35:09 +01:00
sliptonic
462a354664 Merge pull request #11223 from wwmayer/Part_format_xml
Part: format XML files
2023-11-13 10:52:03 -06:00
Chris Hennes
37a8e348c6 Merge pull request #11231 from DeflateAwning/http-cleanup
Find and replace http://freecad to https://freecad
2023-11-06 11:16:13 -06:00
Chris Hennes
ce8f48967a Merge branch 'main' into modernize-type-check 2023-10-31 15:46:18 -05:00
DeflateAwning
1e3179e9bc Find and replace http://freecad.org to https://freecad.org
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Done in all remaining files (after doing it in SVGs in the last commit)
2023-10-29 22:39:22 -06:00
wmayer
30723acfa5 Part: format XML files 2023-10-28 22:45:15 +02:00
Roy-043
2cfd936af0 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
528db60111 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
918770c84c 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
02731c7816 Part: modernize type checking 2023-10-23 18:12:03 +02:00
Rohan Mishra
43967cd081 Update MakePrismPy.xml
#10773  
Solved the issue and Update the MakePrismPy.xml
2023-10-17 17:45:07 +02:00
Florian Foinant-Willig
a922be727f Part: fix crash with null face 2023-10-05 08:14:50 +02:00
Florian Foinant-Willig
bd2898725a Part: fix #10868 crash with null edge 2023-10-05 08:14:50 +02:00
liukaiwen
329904a055 [cmake] some definitions do not matter build now 2023-09-27 18:17:14 +08:00
wmayer
6b0c054023 Part: Add method Part.Compound.setFaces() 2023-09-25 15:31:30 +02:00
wmayer
ef9936a940 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
191879b4ea Part: remove leftover comment markup
Closes #10731
2023-09-22 15:56:22 +02:00
Chris Hennes
fb46c8c6f8 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
6c49f90ad3 Part: Fix a missing argument for HLR projector 2023-09-19 09:02:13 -04:00
Paddle
b97a2ef6dc Adds a small convenience function to get arc of circle angle. 2023-09-18 21:33:24 +02:00
wmayer
a78ba4b91c 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
fc7ae2ce27 removed unnecesary include into cmake 2023-09-15 17:10:00 -05:00
wandererfan
d7f5764b9e [Part]code review changes for FeatureScale 2023-09-07 18:21:56 +02:00
wandererfan
90aef60f32 [Part]add scale command & feature 2023-09-07 18:21:56 +02:00
wmayer
e6d350e719 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
40d2a90e3a Fix typos 2023-08-31 22:29:17 -05:00
Chris Hennes
068b39092c Part: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
wmayer
2c2347f746 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
66fb1c7777 Part: refactor ViewProviderPartExt::getDetail 2023-08-25 19:23:18 +02:00