Commit Graph

2799 Commits

Author SHA1 Message Date
Chris Hennes
ca6d9f9944 Part/Toponaming: Basic linter cleanup of makeShapeWithElementMap
No major refactoring.
2024-01-27 12:00:12 -06:00
Zheng, Lei
f592b66ecb Part/Toponaming: Add original code for makeShapeWithElementMap
Called TopoShape::makESHAPE in the original Toponaming branch. The code here has been modified as little as possible to get it to compile in current main.
2024-01-27 11:59:56 -06:00
Zheng, Lei
9aeb396d00 Transfer in MakeElementShell 2024-01-25 11:00:01 -05:00
Chris Hennes
63a6592f03 Merge pull request #12064 from bdieterm/fixPlaneTransparency
Gui: add explicit transparency specification
2024-01-23 21:33:20 -06:00
bgbsww
4d12e338ec Merge branch 'main' into bgbsww-toponaming-makeElementFace 2024-01-23 08:14:07 -05:00
Chris Hennes
096c11e47f Merge pull request #12023 from bgbsww/bgbsww-patch-30
Initial code of mapSubElement Test
2024-01-22 16:02:00 -06:00
Chris Hennes
852c6ae7d3 Part/TopoShapeMapper: Add missing PreCompiled include 2024-01-22 15:57:54 -06:00
bgbsww
5d40864811 Small cleanups 2024-01-22 16:14:20 -05:00
bdieterm
f0eb40f155 Part: add color transparency unit tests 2024-01-22 19:28:35 +01:00
bgbsww
266d9c880a Merge branch 'main' into bgbsww-toponaming-makeElementFace 2024-01-22 12:50:13 -05:00
Chris Hennes
5a7956cd61 Merge pull request #12014 from bgbsww/bgbsww-patch-29
Toponaming ShapeMapper
2024-01-22 11:23:56 -06:00
bgbsww
17cab3e3ff Update src/Mod/Part/App/TopoShapeExpansion.cpp
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-01-22 12:12:21 -05:00
bgbsww
26dbd32c15 lint / review cleanups 2024-01-22 11:01:19 -05:00
bgbsww
0a4ec777ad apply Comp to Comparator name change 2024-01-21 16:06:32 -05:00
bgbsww
d405fdadc4 Add tests, reformat to modern C++, clean 2024-01-21 15:34:46 -05:00
bdieterm
abfe38e0e7 Gui: add explicit transparency specification 2024-01-21 17:41:31 +01:00
bgbsww
ab3bb9fb71 Improve tests 2024-01-19 10:49:47 -05:00
bgbsww
fae1cd569f Lint and other cleanups 2024-01-18 11:46:15 -05:00
Zheng, Lei
e425b5b2db Toponaming move makEFace as makeElementFace and dependencies 2024-01-17 20:38:50 -05:00
bgbsww
60ae251b61 Initial code of mapSubElement Test 2024-01-17 09:13:39 -05:00
bgbsww
0cb513f084 Move MapperMaker and MapperHistory out to future PR 2024-01-17 08:55:16 -05:00
Zheng, Lei
160ad0dc81 Restore RT hash code for OCC < 7.8.0 2024-01-16 22:43:59 -05:00
Zheng, Lei
8811a590b0 ShapeMapper code from RT branch to new TopoShapeMapper files 2024-01-16 20:11:43 -05:00
Chris Hennes
a36f6bbc0a Merge pull request #11883 from wavexx/pch_build_fix
Fix build with precompiled headers
2024-01-16 14:06:34 -06:00
Chris Hennes
f0a734fed0 Part/Toponaming: Refactor makeElementCompound
Refactor to address linter issues, breaking up large methods, renaming variables, etc.
2024-01-15 18:17:32 +01:00
Zheng, Lei
c59bced261 Part/Toponaming: Add original code for makECompound
Renamed to makeElementCompound and modified as little as possible to get it to compile in the new framework. All required auxilliary methods are also brought in.
2024-01-15 18:17:32 +01:00
Chris Hennes
7d64c3af2f Merge pull request #11896 from Pesc0/toponaming-shapeprotector
Toponaming shapeprotector
2024-01-14 21:03:09 -06:00
Chris Hennes
67e533826f Part/Toponaming: Modify constructors to set owner of ShapeProtector 2024-01-12 10:00:45 -06:00
Pesc0
97c0dedabe Part/Toponaming: Pesc0's work replacing ShapeProtector
In realthunder's original version this class was not derived from TopoDS_Shape, but rather duplicated
its interface and wrapped its non-const methods. This resulted in quite a lot of boilerplate, so in
the merged implementation we are now deriving from TopoDS_Shape and only overriding the non-const
methods. The downside is that if OCCT adds or changes methods we will have to add them proactively
to this class so that they don't bypass the TNP code.
2024-01-12 09:57:33 -06:00
bgbsww
bd1fc0fc03 Add support for OCCT 7.8.0 (#11909) 2024-01-09 19:47:25 -06:00
bgbsww
494cb9388c Detect circular references in sketches, and add corresponding tests (#11716)
* Possible fix for 10482 circular reference regression with tests

* Remove redundant test

* Cleanup pre PR

* [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>
2024-01-06 18:13:44 -06:00
Chris Hennes
fce7dea6f7 Update translations (#11886)
* Update 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>
2024-01-03 09:27:18 -06:00
Yuri D'Elia
755bad25da Part: Fix build with pch
Move QtAll inclusion (which includes GL itself) after manually including
<GL/glext.h> to correctly get ARB extensions.
2024-01-02 19:28:50 +01:00
Chris Hennes
a2c1d9ff8e Part/Toponaming: clang-tidy cleanup of cache calls 2023-12-27 21:16:59 -06:00
Chris Hennes
ee2be48cd7 Part/Toponaming: Add original cache methods 2023-12-27 21:16:15 -06:00
Chris Hennes
e5b95c7522 Part/Toponaming: Clang-tidy cleanup of TopoShapeCache
Part/Toponaming: Move implementions to cpp file
Part/Toponaming: Automated code cleanup
Part/Toponaming: Address boolean blindess with HistoryTraceType
Part/Toponaming: More linter cleanup
Part/Toponaming: Add located and moved methods
Part/Toponaming: Moved and Located
Part/Toponaming: Add missing methods
Part/Toponaming: Add test framework for TopoShapeCache
Part/Toponaming: Add documentation provided by realthunder
Part/Toponaming: Extend tests for TopoShapeCache
Part/Toponaming: Rename getInfo to getAncestry
Part/Toponaming: Fix bug with newer OCCT
Part/Toponaming: Add final tests and tweak naming
Part/Toponaming: Address reviewer comments
2023-12-27 21:16:15 -06:00
Chris Hennes
68f43efa3e Part/Toponaming: Add TopoShapeCache base implementation
Copied from RealThunder's TopoNaming branch and modified only as much as required to enable compilation.
2023-12-27 21:16:09 -06:00
Yorik van Havre
651fc54a8c merged crowdin translations 2023-12-20 09:27:37 +01:00
Yorik van Havre
1f65348080 Updated ts files 2023-12-20 09:27:37 +01:00
Paddle
30e2a109e6 PythonConverter: Extend for Hyperbola/Parabola/BSpline 2023-12-20 06:59:47 +01:00
luzpaz
20fe2f1508 Docs: minor tweek to GeometryDoubleExtensionPy.xml
Follow-up to #11709
2023-12-18 07:42:10 -06:00
luzpaz
86b6132243 Docs: minor tweek to GeometryBoolExtensionPy.xml
Capitalize first letter.
2023-12-18 07:41:53 -06:00
sliptonic
6d0db27bd9 Merge pull request #11693 from RohanMishra315/patch-6
Update ShapeFix_FixSmallFacePy.xml
2023-12-11 11:23:59 -06:00
sliptonic
fc1c3e005e Merge pull request #11683 from chennes/fixTDMissingBOPAlgoBuilder
Part: Add BOPAlgo_Builder.hxx to OpenCascadeAll.h
2023-12-11 11:22:17 -06:00
sliptonic
6af7c25117 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
cf3f2dcda0 Update ShapeFix_WirePy.xml
Fix the issue and Update ShapeFix_WirePy.xml.
2023-12-11 17:43:46 +01:00
Rohan Mishra
94b7c48dbe Update ShapeFix_WirePy.xml
Issues #11184

Updated the docs of ShapeFix_WirePy.xml
2023-12-11 17:43:46 +01:00
André Caldas
89dbab9b0e 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
6582672f9e Update ShapeFix_FixSmallFacePy.xml
Updated the docs of ShapeFix_FixSmallFacePy.xml
2023-12-09 22:24:40 +05:30
Chris Hennes
826ab2e91e Part: Add BOPAlgo_Builder.hxx to OpenCascadeAll.h
Needed by TechDraw DrawProjectSplit
2023-12-07 19:56:06 -06:00