Zheng, Lei
62d1c300fb
Toponaming: Bring in composite shapes for findSubshapesWithSharedVertex ( searchSubShape )
2024-07-22 12:51:25 -04:00
bgbsww
19e450a667
Refactor all element name pairs into clearer struct names - renames
2024-07-20 16:32:12 -04:00
bgbsww
16b8d99d62
Toponaming: refactor getExportElementName to separate method
2024-07-19 10:19:57 -04:00
pre-commit-ci[bot]
3d6a490003
Review cleanups
2024-06-28 11:57:43 -05:00
bgbsww
08859462ea
Toponaming: Cleanups
2024-06-28 11:57:43 -05:00
Zheng, Lei
3dbc1d7393
Toponaming: Transfer in missing Code for BaseFeatures and Sketches
2024-06-28 11:57:43 -05:00
Chris Hennes
0e0fce5678
Merge pull request #13906 from Rexbas/align-camera
...
Align camera to faces and edges
2024-05-20 11:28:24 -05:00
bgbsww
e50ef22e7b
Minor test tweaks, and small fixes to pass tests
2024-05-17 19:14:01 -05:00
bgbsww
52ed6eb848
Toponaming: Bring in Chamfer, Fillet code and add tests ( #14035 )
...
* Toponaming: bring in missing code fragments in Sketcher
* Toponaming: Fix infinite recursion, remove debug cruft, rough in fillet test
* Bring in missing code; fix chamfers
* Toponaming: Add code for fillets and test
2024-05-15 19:43:30 -04:00
Bas Ruigrok
f7078d13d4
Part: Implement getCameraAlignmentDirection() for PartFeature
...
Returns normal of a face or direction of an edge
2024-05-13 19:03:56 +02:00
bgbsww
d3c5df86ee
Toponaming: bring in missing code fragments in Part
2024-05-12 23:08:06 -04:00
bgbsww
9fc744fbe3
Fix tests, slip in TNP defense
2024-05-07 13:42:21 -04:00
bgbsww
7961e82c66
Toponaming/Part: Fix all getBaseTopoShape calls. Tests and missing code.
2024-04-26 21:15:11 -05:00
bgbsww
0d8631973e
Toponaming/Part: Fix hashing, hasher mismatches, and adjust test results to match
2024-04-15 23:00:27 -05: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
David Carter
ba20441935
Material: Material appearance
...
Uses new material system for appearance
Each feature object now has a property called ShapeMaterial that
describes its physical properties. If it has a shape, it has a
material.
The ShapeColor attribute is replaced by a ShapeAppearance attribute.
This is a material list that describes all appearance properties, not
just diffuse color. As a list in can be used for all elements of a
shape, such as edges and faces.
A new widget is provided to allow the user to select materials in a
consistent fashion. It can also launch the material editor with its
more advanced capabilities.
2024-04-04 07:39:58 -05:00
wmayer
c96fd71e4f
Fix several compiler warnings
...
* fix -Winconsistent-missing-override
* fix -Wunused-but-set-variable
* fix -Wunused-parameter
* fix -Wunused-lambda-capture
* fix -Wunused-private-field
* fix -Wpessimizing-move
2024-04-03 10:04:56 +02:00
Zheng, Lei
5da174f46e
Toposhape/Part: Transfer in FeatureFillet, FeatureChamfer and dependencies
2024-03-18 22:05:25 -04:00
luzpaz
65cdbe3e89
Fix various typos throughout the codebase ( #13029 )
...
* Fix various typos throughout the codebase
* [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-03-18 16:54:30 -05:00
bgbsww
16eecee812
Toposhape/Part:: Fix, relocate and test element methods in ComplexGeoData and TopoShape
2024-03-07 23:00:48 -05:00
Zheng, Lei
a21d7bbaf3
Toposhape/Part: Bring in element methods in FeaturePart, TopoShapePy::Init and TopoShape::GetPyObject
2024-03-07 13:15:40 -05:00
Zheng, Lei
d82fe1564f
Part/Toponaming: Transfer PartFeature Feature::create()
...
* Imported Feature::create() method in Part::Feature class
2024-03-02 09:41:36 +01:00
bgbsww
db38a7eb7e
Toposhape/Part: cleanup and test getElementName
2024-02-28 17:07:36 -05:00
Zheng, Lei
1d9fcfea9a
Toponaming/Part: trasnfer in getElementName
2024-02-28 17:06:09 -05: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
wmayer
b9e9fe435a
Part: modernize C++: use equals default
2023-08-22 15:14:03 +02:00
wmayer
c8abd4a6d4
Part: modernize C++: return braced init list
2023-08-19 11:35:41 +02:00
wmayer
7cb51a4980
Part: modernize C++: use range-based for loop
2023-08-16 21:56:32 -05:00
wmayer
948cbfccd9
modernize C++: avoid bind
...
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
52e1c7c33b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
Abdullah Tahiri
2834aebf90
Unused variable
2023-06-29 23:42:28 +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
38a01939e0
Migrate domain name from freecadweb to freecad ( #9352 )
...
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files
Closes #6415
2023-04-24 15:19:20 -05:00
Andrew
1eaf8a724e
Clean Mod/Part. remove old OCC <7.3 and #if 0 code.
2023-03-26 21:17:18 +02:00
wmayer
c770e1b677
Mod: catch exception raised by Rotation::setValue
2023-03-01 18:43:15 +01:00
luz paz
2f1ff7928b
Part: remove trailing whitespace
2022-11-15 14:19:30 -06:00
berniev
f4ffd15864
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
berniev
53ba98d636
Mod: use empty
2022-08-06 19:30:13 +02:00
Uwe
763a575b23
Mod: remove some unnecessary nullptr checks
2022-07-18 12:58:12 +02:00
wmayer
21c967ef77
Part: fix build failure
2022-07-04 02:21:59 +02:00
Uwe
4dced53a00
[Part] Pa* to Pre*: remove unneeded includes
...
- also sort includes
2022-07-03 20:47:03 +02:00
andrea
c66aadeb60
removed references to OCC<7
2022-06-25 14:29:24 +02:00
wmayer
8b9484c82f
App: add pure virtual methods to PropertyGeometry to delegate it to the geometry of sub-classes
...
Following the law of Demeter add some wrapper methods to PropertyGeometry and implement them in sub-classes. As a side-effect this makes some const_cast obsolete
2022-06-24 16:15:02 +02:00
mosfet80
c48a569696
Boost version <=1.60 is never used in freecad 0.20 ( #7038 )
...
* Boost version 1.60 is never used in freecad 0.20
2022-06-24 02:20:26 +02:00
Zheng, Lei
8bec44934b
Fix mixed line endings
2022-04-26 12:52:55 -05:00
Chris Hennes
2ecc125497
Part: PR6497 move return statement to new line
2022-03-29 12:37:00 -05:00
wmayer
6d2d45ceb7
Part: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
16467d9067
Revert "App: fix property ordering problem when undo/redo ( #3255 )"
...
This reverts commit 24d30636e4fb990fdbd67538360846ff09456dfc.
2022-02-22 01:21:49 +01:00
Zheng Lei
170a12089c
App: fix property ordering problem when undo/redo ( #3255 )
...
* Part: fix Placement/Shape onChanged() handling
* App: fix property ordering problem when undo/redo
See https://tracker.freecadweb.org/view.php?id=4265#c14271
* Gui: fix undo/redo signaling
Make sure to signal after all properties has been restored
2022-02-21 12:29:01 +01:00