bgbsww
608c80b5a3
Toponaming: Remove remaining FC_USE_TNP_FIX defines
2024-08-31 13:21:10 -05:00
bgbsww
e4a509cc77
Toponaming: Remove all FC_USE_TNP_FIX protected old code
2024-08-26 11:12:48 -05:00
bgbsww
cfb4514df7
Toponaming: Update tests, implement missing subtractive operation tests,
...
fix helix and revolution
2024-07-30 09:12:58 -05:00
bgbsww
678f35fda2
Toponaming: Cleanup
2024-07-21 17:40:42 -04:00
bgbsww
ae6f7f25e8
Toponaming: Missing suppress property and code
2024-07-15 09:38:13 -05:00
Florian Foinant-Willig
cded7480bf
PartDesign: hide Suppressed property with FC_USE_TNP_FIX flag
2024-05-20 11:32:34 -05:00
Kacper Donat
302706be38
Gui: Add ability to disable single-solid rule by default
2024-05-20 12:25:36 -04:00
Kacper Donat
e4ed0d883f
PartDesign: Introduce ability to disable single-solid rule
...
This adds "SingleSolidRuleMode" enum that controls if PartDesign will
enforce singular solid. By default the single-solid is enforced so
nothing changes for the user, it must be explicitly disabled by setting
new Allow Compound boolean property on a given body.
Default for this value is controled using user parameter under
Mod/PartDesign/AllowCompoundDefault
2024-05-20 12:25:36 -04:00
Kacper Donat
d0a35c8c03
PartDesign: Refactor single-solid rule enforcement
...
This refactors a single solid rule checking code from using the solid
count directly to using well abstracted `isSingleSolidRuleSatisfied`
method. This makes code easier to read and is the basis for next step
which is allowing users to disable this checks.
2024-05-20 12:25:36 -04:00
bgbsww
86abf074c0
Toponaming: bring in missing code fragments in PartDesign
2024-05-13 08:45:26 -05:00
bgbsww
7961e82c66
Toponaming/Part: Fix all getBaseTopoShape calls. Tests and missing code.
2024-04-26 21:15:11 -05:00
bgbsww
239c3e6f78
Toponaming/Part: Fix review items
2024-04-10 12:14:01 -04:00
bgbsww
942ebd58f0
Toponaming/Part: Add deprecation comments, clean up code
2024-04-09 21:17:08 -04:00
Zheng, Lei
231a638fc7
TopoShape/Part: Bring in PartDesign dependencies
2024-04-09 21:17:08 -04:00
Florian Foinant-Willig
b5abde373d
PD: Use SuppressibleExtension
2024-02-29 18:24:27 +01:00
wmayer
64a91968a3
MSVC: fix compiler warnings
2024-02-25 00:12:34 +01:00
Florian Foinant-Willig
f9cebebd6b
PD: handle null pointer in Feature::getBaseShape ( #12385 )
2024-02-13 17:41:25 -03:00
Florian Foinant-Willig
056b90cce3
Set Suppressed false if no shape
2024-02-12 17:55:51 +01:00
Florian Foinant-Willig
f4763109c3
[PD] Add a Suppressed property to disable a feature
2024-02-12 17:55:51 +01:00
Florian Foinant-Willig
24934d7843
PartDesign: modernize type checking
2023-10-23 18:08:16 +02:00
wmayer
c8abd4a6d4
Part: modernize C++: return braced init list
2023-08-19 11:35:41 +02:00
Pesc0
c65f049d20
[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
01e8bbc2bf
Fix various typos and whitespace
2023-03-10 14:40:46 +01:00
Zheng, Lei
99c9d9b468
PartDesign: do not include transform for sub-object in Feature
2023-03-10 02:06:24 +01:00
luz paz
d265c9ff63
PD: remove trailing whitespace
2022-11-10 10:32:04 +01:00
berniev
f4ffd15864
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
Uwe
ac6235c577
[PD] App: remove superfluous nullptr checks
...
- also Body: get rid of some nasty single-letter variables
2022-07-17 18:07:00 +02:00
wmayer
d1d4b996e7
PD: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
f498cd1d32
[PD] App: remove unused includes
2022-02-20 20:41:46 +01:00
Zheng, Lei
2fee0c3b0c
PartDesign: fix DressUp base shape checking
2020-02-23 11:04:54 +01:00
wmayer
b1dd1e61a7
force strict ISO C++ (-Wpedantic)
...
for Fem, Import, PartDesign, Robot, Sketcher, TechDraw
2019-09-18 14:18:07 +02:00
Zheng, Lei
cd2b7e297c
PartDesign changes
...
* Mostly for supporting in-place editing
* Add new SubShapeBinder that support cross coordinate system,
external, and sub-object binding
2019-08-17 15:15:47 +02:00
wmayer
00de5bb7ad
Replace Base::Exception with appropriate subclass
2018-11-14 19:28:00 +01:00
wandererfan
0d3008e4eb
Fix #3401 warning on multiple solid
...
- PartDesign only uses the first result shape
of an operation and discards the rest without
warning.
- this also fixes #1707
2018-07-13 10:23:42 -03:00
wmayer
210a48cbf3
fixes #0003159 : ShapeBinder is part of solid
2017-11-09 23:21:06 +01:00
Stefan Tröger
6ae8b6482e
PartDesign: Make Base Feature compatible with GeoFeatureGroup. fixes #0003080
...
The Original BaseFeature implementation had some serious issues with scoped links. It failed completely for e.g. sketches on the BaseFeature as it made a local link to refere to a out of body object. The only solution to make this work correctly is to add a proxy object into the body which is alloed to exactly that, to link outside oof the body. Something like shapebinder.
2017-09-21 11:40:14 +02:00
DeepSOIC
5e5b3f8b61
PartDesign: add ViewProviderPython
...
+ bind PartDesign::Feature to PartDesign::ViewProvider, and adjust
viewprovider of PartDesign::FeaturePython accordingly.
2017-03-04 19:16:39 -03:00
DeepSOIC
ec29adfb55
PartDesign: add FeaturePython
...
Opens a window to extend PartDesign with Python
2017-03-04 19:16:39 -03:00
Kunda
9410e751e9
source typo fixes pt4 (only on py3 merged code)
2017-03-02 13:47:21 +01:00
wmayer
2c24067205
fix coverity issues
2016-11-20 17:16:33 +01:00
Wolfgang E. Sanyer
d1d2f1f811
This commit adds getShape and setShape to TopoShape
2016-08-06 23:42:55 +02:00
Stefan Tröger
3c39410002
PartDesign: Adopt to new property status bits
2016-04-12 18:12:22 +02:00
Alexander Golubev
3ed51ac4bd
PartDesign: add Origin to the Body and unstrap the module from the Parts
2016-04-12 18:12:18 +02:00
Alexander Golubev
305151be34
App/Origin: big refactoring
...
- Rebase App::Origin on App::DocumentObject
- Keep all control over the Origin structure inside the Origin and it's
ViewProvider
- Add OriginFeature class as common base for App::Plane and App::Line
- Rebase App::Plane and App::Line on top of newly created class and
move to the file.
- Change Origin's ViewProvider API associated with temporary display
- Lots of associated changes to files
- Several minor fixes
- Lots of new bugs
2016-04-12 18:12:18 +02:00
Alexander Golubev
af385f1c57
PartDesign/Feature: add an optional parameter to getBaseObject() to prevent it from throwing exceptions
...
In most cases getBaseObject() is used with an exception handler which
only detects if it failed but not the reason. This modification allows
to use it without excess exception handlers.
Also add the same parameter to SketchBased::getVerifiedSketch().
2016-04-12 18:12:15 +02:00
DeepSOIC
220c88edb6
PartDesign: tidy up sketch support and base feature confusion
...
Not complete, transformPlacement and positionBySketch are pending...
2016-04-12 18:12:11 +02:00
Stefan Tröger
f7a1fda101
don't show placement for part design features
2016-04-12 18:12:06 +02:00
Stefan Tröger
616e372e4a
switch linear pattern to coordinate system axis
2016-04-12 18:12:05 +02:00
jrheinlaender
d09eaa2168
Changed tree ordering of booleans and bodies
2016-04-12 18:11:51 +02:00
jrheinlaender
67b36115a4
Miscellaneous fixes
2016-04-12 18:11:51 +02:00