Commit Graph

2757 Commits

Author SHA1 Message Date
sliptonic
1066bb54ce Merge pull request #11693 from RohanMishra315/patch-6
Update ShapeFix_FixSmallFacePy.xml
2023-12-11 11:23:59 -06:00
sliptonic
b2aea637f4 Merge pull request #11683 from chennes/fixTDMissingBOPAlgoBuilder
Part: Add BOPAlgo_Builder.hxx to OpenCascadeAll.h
2023-12-11 11:22:17 -06:00
sliptonic
3f33cec4ee Merge pull request #11633 from mwganson/partmirroring
[Part::Mirror] fix bug where selection gate was not getting removed o…
2023-12-11 11:05:56 -06:00
Rohan Mishra
e3bb0afd34 Update ShapeFix_WirePy.xml
Fix the issue and Update ShapeFix_WirePy.xml.
2023-12-11 17:43:46 +01:00
Rohan Mishra
21e992932d Update ShapeFix_WirePy.xml
Issues #11184

Updated the docs of ShapeFix_WirePy.xml
2023-12-11 17:43:46 +01:00
André Caldas
560898907b Avoids using getNameInDocument() to test if DocumentObject is attached to a Document.
This patch substitutes by isAttachedToDocument() (almost) everywhere where
getNameInDocument() is used for this purpose.

The very few places not touched by this patch demand a (just a little) less trivial change.
When we change the returning type of getNameInDocument() to std::string,
those places will be easily found, because they shall generate a compiler error
(converting std::string to bool).

Rationale:
The fact that getNameInDocument() return nullptr to indicate
that the object is not attached to a document is responsible for lots of bugs
where the developer does not check for "nullptr".

The idea is to eliminate all those uses of getNameInDocument() and, in the near future,
make getNameInDocument() return always a valid std::string.
2023-12-11 17:37:58 +01:00
Rohan Mishra
e89025c413 Update ShapeFix_FixSmallFacePy.xml
Updated the docs of ShapeFix_FixSmallFacePy.xml
2023-12-09 22:24:40 +05:30
Chris Hennes
2008436cc9 Part: Add BOPAlgo_Builder.hxx to OpenCascadeAll.h
Needed by TechDraw DrawProjectSplit
2023-12-07 19:56:06 -06:00
mwganson
4dddfa79fb [Part::Mirror] fix bug where selection gate was not getting removed on cancel button clicked 2023-12-04 12:40:10 -06:00
Rexbas
a3aeed8c03 Part: Use vector.data() to get data pointer 2023-12-03 12:35:15 +01:00
Rexbas
2d4409f710 Part: Use materialIndex.setValuesPointer() only if the new values are different 2023-12-03 12:35:15 +01:00
wmayer
1245c3f3b2 Python: deprecated aliases have been removed in Py 3.12 2023-12-02 14:45:55 +01:00
bgbsww
a4db18af56 Default freenet to true for sweep to fix rendering bug 2023-12-01 14:02:49 +01:00
wmayer
d529193f75 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
Yorik van Havre
3ade39ccf1 Translations (#11551)
* Updated ts files

* merged crowdin translations

* [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 11:29:38 -06:00
mwganson
6ea4a743b1 [Part::Mirroring] Add support for mirror plane reference object 2023-11-27 11:17:48 -06:00
bgbsww
08d84fce15 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
fa65438556 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
c18ecb1a9b Part: fix TopoShapePy::optimalBoundingBox 2023-11-24 15:06:00 +01:00
wmayer
5f3c6b6d1a Part: fix BSplineCurve2dPy::insertKnot 2023-11-24 15:06:00 +01:00
bgbsww
aa6da42ca1 Setting on 89.9 as a limit, enforce in dialog and properties 2023-11-22 10:30:54 +01:00
bgbsww
e7a84ea725 Prevent attempting to create an infinite helix 2023-11-22 10:30:54 +01:00
Pieter Hijma
d91e54dfab Make comments consistent 2023-11-21 16:19:29 +01:00
Pieter Hijma
10c6d64e34 Add documentation for PolyHLRToShape 2023-11-21 16:19:29 +01:00
Pieter Hijma
99f7bc700d Add constructor documentation as well 2023-11-21 16:19:29 +01:00
Pieter Hijma
974651e159 Add documentation for HLRToShape 2023-11-21 16:19:29 +01:00
Pieter Hijma
eeb56dd914 Remove comments from the text field 2023-11-21 16:19:29 +01:00
Pieter Hijma
80aecd0508 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
ef1e119405 Add documentation for HLRBRep.PolyAlgo 2023-11-21 16:19:29 +01:00
Pieter Hijma
bdca56e766 Improve the documentation of HLRBRep.Algo 2023-11-21 16:19:29 +01:00
Pieter Hijma
0d2609bf37 Change <S> to S
Otherwise, it is invalid XML
2023-11-21 16:19:29 +01:00
Rohan Mishra
c0a1f81ca5 Update HLRBRep_AlgoPy.xml
#10728

Updated the API documentation of HLRBRep_AlgoPy.xml.
2023-11-21 16:19:29 +01:00
Chris Hennes
632d5e80ee Part: Add BRepFeat_MakeRevol.hxx to Precompiled header 2023-11-20 21:43:38 -06:00
Chris Hennes
90dc4aeb13 Update translations 2023-11-20 13:46:22 -06:00
Mark Ganson TheMarkster
a86ae2790b [Part Workbench]Prevent error when using link in boolean cut (#11398) 2023-11-20 14:22:25 -03:00
bgbsww
8cc48c488f Defend against surface not created from invalid face 2023-11-20 13:59:01 -03:00
Rohan Mishra
8d2d3e5315 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
wmayer
9a14239d76 Part: add test for Geom2d.toShape 2023-11-20 13:00:09 +01:00
tomate44
207bcfa80d Part : fix edge creation of Geom2d curves 2023-11-20 12:35:09 +01:00
sliptonic
c83f9273fe Merge pull request #11223 from wwmayer/Part_format_xml
Part: format XML files
2023-11-13 10:52:03 -06:00
Chris Hennes
954c2fa03f Update translations 2023-11-09 12:23:56 -06:00
Chris Hennes
aaa0db3867 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
cf84c171e6 Merge pull request #10978 from FlachyJoe/modernize-type-check
Modernize type and derived type checking
2023-11-06 10:44:32 -06:00
wmayer
bec1302fcf Part: refactor SectionCut 2023-11-02 08:17:06 +01:00
wmayer
25689aa9eb Part: fix crash in SectionCut 2023-11-02 08:17:06 +01:00
wmayer
d07441a0dd Part: refactor SectionCut::startCutting() 2023-11-01 16:58:35 +01:00
wmayer
474d5cc037 Part: refactor SectionCut::collectObjects() 2023-11-01 16:58:35 +01:00
wmayer
7f87b917e8 Part: fix manual formatting of SectionCut::setupConnections() 2023-11-01 16:58:35 +01:00
Chris Hennes
b2f069f8b0 Merge branch 'main' into modernize-type-check 2023-10-31 15:46:18 -05:00
wmayer
a1ecc2b543 Part: refactor constructor of SectionCut 2023-10-30 14:36:18 +01:00