wmayer
9bfa461520
Core: Check returned pointer of convertSWIGPointerObj
2024-10-10 20:36:03 -05:00
Eric Price
9ee2c74545
Do not allow loft where the segment shapes are too close ( fix #5855 )
...
A loft or pocket only makes sense if the segments used for it have some minimum separation. Having the shapes identical causes segfaults in OCCT
Checking for CoG is a hack. Identical shapes have identical CoG - but an identical CoG does not necessarily mean identical shapes - however it can be argued that a shape that is not offset at least somewhat in the direction of the loft doesnt make a valid shape for a loft (it will typically freeze OCCT instead of crashing it) and a sufficiently suitable shape will have a different CoG
throwing the exception will make it easy to identify if there ever is a case where this is a bad thing - and exceptions are better than segfaults.
2024-09-30 17:58:13 +02:00
chris
6be69ac576
issue #15329 add missing include to resolve build error
2024-09-24 19:08:45 -05:00
Florian Foinant-Willig
22fbfeddc2
[PD] Fix Pad uptoshape and add unit test
2024-09-22 17:22:36 -05:00
bgbsww
c5d10cf236
Match Ruled Surface behavior to prior versions
2024-09-20 08:09:11 -05:00
Florian Foinant-Willig
8b9f5bdc4f
[PD] fix pad uptoface and uptoshape ( #16030 )
...
* [PD] fix Pad UpToFace and UpToShape
* specify struct pointers for Win
* Rename variables for MSVC compatibility - windows.h defines 'near' and 'far' as macros
* Add unit test
---------
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org >
2024-09-19 08:51:18 -05:00
hlorus
ab031bc92c
Measure: Use getGlobalPlacement method ( #16251 )
...
* Initial commit to apply delta also for interactive measurement
* Not required special logic to check if possible, it can be easily checked if the property exists
* remember setting so it is not required to turn it always on
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Measure: Use getGlobalPlacement method
Fixes #16058
---------
Co-authored-by: Martin Marmsoler <martin.marmsoler@gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-16 18:05:21 +02:00
bgbsww
0f53f2195d
Add override flag for recomputes; set it in relevant tests with old files.
2024-09-16 17:49:35 +02:00
bgbsww
a54f03f666
Move code for recompute dialog and disable warning
2024-09-16 17:49:35 +02:00
wmayer
86806cb353
Port: Include changes of FreeBSD port
2024-09-13 08:31:54 -05:00
Zheng, Lei
c6dc482f02
Part/Toponaming: import code for TopoShape::prepareProfiles() from LS3
...
* import code
2024-09-02 18:05:42 +02:00
bgbsww
3a6f70946a
Fix #16013 ( #16090 )
...
* Fix #16013
* Fix #16013
2024-09-02 18:00:47 +02:00
bgbsww
24bb499c1f
Cleanup element map in Revolution and add test ( #15959 )
2024-09-02 17:59:44 +02:00
bgbsww
2a541c9536
Toponaming: Remove remaining FC_USE_TNP_FIX defines
2024-08-31 13:21:10 -05:00
Florian Foinant-Willig
80c1ad4a0a
[PD] Fix Pad a Plane attached Sketch upto a Plane ( #16056 )
2024-08-31 13:09:39 -05:00
bgbsww
ecf7e51ab3
Toponaming: Remove all FC_USE_TNP_FIX protected old code
2024-08-26 11:12:48 -05:00
bgbsww
60640fa441
Horrible hack to work around bug in OCCT7.7.2
2024-08-26 18:09:38 +02:00
wmayer
cfb14da52e
Part: Prepare for clang-format
2024-08-26 17:56:58 +02:00
bgbsww
26ebefd651
Ignore standalone points in sketches when building faces
2024-08-26 17:51:29 +02:00
bgbsww
8c08549f5a
Update to Toposhape versions and fix shapebinder references with test ( #16036 )
...
* Update to Toposhape versions and fix shapebinder references with test
* Update src/Mod/PartDesign/PartDesignTests/TestShapeBinder.py
---------
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org >
2024-08-26 10:50:18 -05:00
Chris Hennes
baec1037d8
Part: Fix compilation with Qt6/MSVC
...
-/permissive does not allow the original unwrapped call to ParseTupleAndKeywords
2024-08-23 20:45:26 -05:00
bgbsww
c8c657eefe
Fix shape color / materials issues in fuse
2024-08-22 18:53:55 -05:00
bgbsww
c59b422f2c
Toponaming fix #15969 following LS3 code change
2024-08-22 18:52:22 -05:00
wmayer
c9a586f34a
Building: Boost dependency errors
...
Fixes #15999
2024-08-22 18:50:24 -05:00
bgbsww
40d23c2639
Toponaming: Support disabling hashing; getting element history
2024-08-22 11:24:09 -05:00
hlorus
aa98951b5c
Measure: Apply global placement when retrieving shape
2024-08-19 12:16:19 -04:00
bgbsww
f0982d1d61
Toponaming: Fuse call makeElementRefine; remove deprecated refineSha… ( #15897 )
...
* Toponaming: Fuse call makeElementRefine; remove deprecated refineShapeIfActive
* Part/Toponaming: import code for MultiFuse::execute() from LS3
* added expected values of testRefine
Co-authored-by: Zheng, Lei <realthunder.dev@gmail.com >
Co-authored-by: CalligaroV <vincenzo.calligaro@gmail.com >
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org >
2024-08-18 11:49:05 -05:00
bgbsww
d7d256e782
Toponaming: Match findSubShapesWithSharedVertex exception suppression
2024-08-12 11:59:08 -04:00
bgbsww
26b2631251
Toponaming: Squash to one index character in element names
2024-08-11 13:29:40 -04:00
bgbsww
25ba8ab223
Toponaming: Fix transformed; abstract index element name generation
2024-08-10 23:02:05 -04:00
bgbsww
99b753b006
Toponaming: Refactor out duplicated code using elementMap()
2024-08-10 10:47:01 -04:00
bgbsww
4afbe73f51
Toponaming: Fix PropertyTopoShape restore; tweak Loft test; missing TopoShape method.
2024-08-07 20:31:21 -05:00
bgbsww
80045d0e88
Toponaming: add code to implement guessing missing references
2024-08-05 11:01:46 -05:00
bgbsww
4aaf72dcc2
Toponaming: Final piece nine of fixing Save/Restore sketch external geometry
2024-07-29 09:38:21 -05:00
Zheng, Lei
8338cd98d5
Toponaming: Bring in updateLinks changes
2024-07-29 09:38:21 -05:00
bgbsww
e15646d158
Toponaming: Tests, cleanup, and fix axis drawing
2024-07-26 11:49:56 -04:00
bgbsww
b29abf7ffe
Cleanup, format
2024-07-24 16:41:15 -04:00
Zheng, Lei
a7bdbaa662
Toponaming: Transfer in getHigherElement
2024-07-24 15:10:42 -04:00
bgbsww
0178e848e4
Toponaming: Clean code, apply remark recommendations and Tweak tests
2024-07-22 12:55:23 -04:00
Zheng, Lei
f6494bdf05
Toponaming: Bring in composite shapes for findSubshapesWithSharedVertex ( searchSubShape )
2024-07-22 12:51:25 -04:00
Chris Hennes
3fa339e9eb
Merge pull request #15501 from bgbsww/bgbsww-toponamingSaveRestore4
...
Toponaming: Transfer in getLinksTo
2024-07-22 11:23:12 -05:00
bgbsww
5afdc19874
Toponaming: Cleanup
2024-07-21 17:40:42 -04:00
Zheng, Lei
c9232b141a
Toponaming: Transfer in getLinksTo
2024-07-21 17:36:50 -04:00
Chris Hennes
ac3b5b3c74
Merge pull request #15535 from bgbsww/bgbsww-toponamingSaveRestore3plus
...
Refactor all elementname pairs into clearer struct names
2024-07-21 11:40:39 -05:00
Chris Hennes
38b57ab8c7
Merge pull request #14918 from hlorus/measure_fix_assembly
...
Measure: Fix measure issues in assemblies
2024-07-20 23:06:24 -05:00
bgbsww
0bddc51805
Refactor all element name pairs into clearer struct names - renames
2024-07-20 16:32:12 -04:00
bgbsww
159c811bce
Toponaming: refactor getExportElementName to separate method
2024-07-19 10:19:57 -04:00
bgbsww
db9c075be8
Toponaming: Clean Code adding RefIndex to ExternalGeometry and supporting new migration types.
2024-07-19 09:39:19 -04:00
Zheng, Lei
1972156308
Transfer in code from linkstage3
2024-07-19 09:22:17 -04:00
hlorus
ba6fd2de39
Measure: Fix retrival of shape in measure geomtery handlers
2024-07-17 17:56:37 +02:00