Commit Graph

224 Commits

Author SHA1 Message Date
Andrei Pozolotin
9e1edf36f0 Resolve #11965 - no proper execute() for cross-property references
Solution B: parsequant() function
2024-02-19 11:12:52 -06:00
bgbsww
b8486c1562 Toponaming/Part: Remove makeElementShape and cleanup opcode code 2024-02-18 21:57:12 -06:00
Chris Hennes
0422f11867 Merge pull request #12484 from bgbsww/bgbsww-toponamingPartFeatures
Toponaming/Part  part features transfer
2024-02-18 21:56:34 -06:00
Vincenzo Calligaro
02d4c5e59a Part/Toponaming: tests for MapperHistory (#12402)
* Part/Toponaming: MapperHistory
 * added test for MapperHistory::modified
 * added test for MapperHistory::generated
 * renamed edges in the test for MapperHistory::modified

---------

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-02-18 16:42:41 -06:00
bgbsww
43d55a6ed2 Toponaming/Part: Clean and test PartFeatures 2024-02-18 12:57:49 -05:00
bgbsww
35539798b6 Toponaming/Part: Add tests and clean 2024-02-17 21:13:08 -05:00
bgbsww
6bac7fb6c2 Toponaming/Part: Add tests and clean 2024-02-17 19:30:47 -05:00
bgbsww
fc1d0cc71c Toponaming/Part: tests addition and cleaning 2024-02-17 18:07:23 -05:00
bgbsww
0dd2e686ff Toponaming/Part: Cleanup makeElementPipeShell, add tests, and some delinting 2024-02-16 22:16:58 -05:00
bgbsww
634e77498b Toponaming/Part: Clean and add tests 2024-02-16 14:01:12 -05:00
bgbsww
98269a5a21 TopoNaming/Part: cleanups and tests 2024-02-15 19:07:19 -05:00
bgbsww
04491c32ed Toponaming/Part: Clean up linearize, add tests, and some delinting 2024-02-15 16:53:01 -05:00
Chris Hennes
93e94d8868 Merge pull request #12414 from bgbsww/bgbsww-toponamingSearchSubShape
Toponaming/Part: Add  searchSubShape as findSubShapesWithSharedVertex
2024-02-15 12:49:42 -06:00
bgbsww
11075c396f Toponaming/Part: Add tests for searchSubShape 2024-02-15 12:36:23 -05:00
Ajinkya Dahale
17f5d1d44b [planegcs][test] Fix issue in arc-B-spline tangent test
Correct the size of the knot vector used (described here with knots and multiplicities).
2024-02-15 10:58:41 -06:00
Chris Hennes
456a6b25de Merge pull request #12405 from bgbsww/bgbsww-toponamingMakeElementDraft
Toponaming/Part: Transfer in MakeElementDraft
2024-02-14 21:10:56 -06:00
bgbsww
c6ca3e41b6 Toponaming/Part: Cleanup and test makeElementDraft 2024-02-14 12:20:10 -05:00
Chris Hennes
9f1e51966f Merge pull request #12360 from FreeCAD/revert-11937-issue_11825
Revert "Resolve #11825 - no automatic quantity conversion: App::anyToQuantity"
2024-02-13 19:00:32 -06:00
Florian Foinant-Willig
f9cebebd6b PD: handle null pointer in Feature::getBaseShape (#12385) 2024-02-13 17:41:25 -03:00
Chris Hennes
6fe05a9035 Merge pull request #12366 from bgbsww/bgbsww-toponamingGetSubTopoShape
Toponaming/Part:  Move getSubTopoShape
2024-02-13 14:09:24 -06:00
bgbsww
8d05c3ac89 Toponaming/Part: clean, doc, and test getSubTopoShape 2024-02-13 10:14:39 -05:00
PaddleStroke
03831b8fe3 AssemblyTest: Introduce assembly test module 2024-02-13 08:26:54 +01:00
PaddleStroke
59ba16582e vector3d getAngleOriented test. 2024-02-13 08:26:49 +01:00
Chris Hennes
950507a498 Revert "Resolve #11825 - no automatic quantity conversion: App::anyToQuantity"
This reverts commit c1ef15fbdf5db5aaf2ec86cb44bff237d1966238.
2024-02-12 15:29:15 -06:00
Adrián Insaurralde Avalos
592b31eb7b Base: escape quotes in Quantity::getSafeUserString
fix #12204 and fix #12206
2024-02-12 12:09:30 -06:00
wmayer
53427edc2c Tests: add unit tests for IsNormal() and IsParallel() 2024-02-12 11:58:45 -06:00
bgbsww
a6095da2af Toponaming/Part: Add tests, dependencies, and cleanup 2024-02-09 16:42:20 -05:00
Zheng, Lei
b2dac5a97d Toponaming/Part: Transfer makeElementBoolean in 2024-02-09 08:23:30 -05:00
Chris Hennes
6777b4843a Merge pull request #12189 from CalligaroV/toponamingTopoShapeWire
Toponaming makeElementWire
2024-02-08 20:59:26 -06:00
Chris Hennes
daf0a04a18 Merge pull request #11853 from AjinkyaDahale/sketcher-general-tangency-splines
[Sketcher] General Tangency with B-splines (re-do)
2024-02-08 13:46:44 -06:00
Chris Hennes
54bf37c54c Merge pull request #12295 from bgbsww/bgbsww-toponamingFeaturePartBoolean
Toponaming: transfer in FeaturePartBoolean
2024-02-08 13:29:38 -06:00
Ajinkya Dahale
6053798a85 [planegcs][test] Add Spline and Arc tangent test 2024-02-08 23:46:15 +05:30
bgbsww
7b330a523e Clean code and testing tweak 2024-02-08 11:09:36 -05:00
CalligaroV
b186d16ca7 Part/Toponaming: makeElementWires
* Renamed enum classes members to lowercaseCapword
 * Moved struct ShapeHasher back to TopoShapeMapper.h
 * Added test for MapperMaker::generated
 * Modifications for clang-tidy warnings
 * Formatting

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-02-08 13:56:30 +01:00
CalligaroV
44abeca013 Merge branch 'main' of https://github.com/FreeCAD/FreeCAD.git into toponamingTopoShapeWire
# Conflicts:
#	src/Mod/Part/App/TopoShape.h
#	src/Mod/Part/App/TopoShapeExpansion.cpp
2024-02-07 23:51:49 +01:00
CalligaroV
13cd0f1931 Part/Toponaming: makeElementWires
* Added test for MapperMaker::generated
 * Renamed spit into splitMkr in the test for MapperMaker::modified
 * Disabled test for TopoShape::makeElementWires

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-02-07 22:23:03 +01:00
Chris Hennes
dce4d20a8f Merge pull request #12237 from bgbsww/bgbsww-toponamingMakeRefine
Toponaming: Transfer in makeElementRefine
2024-02-07 15:19:27 -06:00
CalligaroV
55455ec804 Part/Toponaming: makeElementWires
* Added test for MapperMaker::modified

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-02-07 15:10:58 +01:00
bgbsww
7c1afff2d9 Add Test for MakeElementRefine 2024-02-06 15:58:37 -05:00
Adrian Insaurralde Avalos
f5da3925d9 Add Base::Tools::escapeQuotesFromString with corresponding test
To be used to avoid sending unescaped quotes to python console
2024-02-04 16:44:25 -06:00
bgbsww
57d8a9e61a Switch to using enum 2024-02-04 09:27:16 +01:00
Adrián Insaurralde Avalos
691511e975 Test: build Mod test only if the module is being built 2024-02-02 00:04:39 +01:00
CalligaroV
a137f29e61 Tests/Toponaming: Add test for simple shapes
* Added test for Tag Info generated by makeShapeWithElementMap
 * Make sure that there's at least one mapped element before checking the element map

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-02-01 15:19:42 +01:00
CalligaroV
02eb22928e Merge branch 'main' into toponamingTopoShapeWire
# Conflicts:
#	src/Mod/Part/App/TopoShape.h
#	src/Mod/Part/App/TopoShapeExpansion.cpp
#	tests/src/Mod/Part/App/TopoShapeExpansion.cpp

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-01-29 19:41:56 +01:00
bgbsww
29213ecb57 Merge branch 'main' into bgbsww-toponamingMakeElementShape 2024-01-28 11:19:11 -05:00
bgbsww
42435333ff Clean code and add tests 2024-01-28 11:04:34 -05:00
Chris Hennes
4740ac88f2 Tests/Toponaming: Post-merge cleanup 2024-01-27 14:01:35 -06:00
bgbsww
88838cfb4c Cleaned up complex test (#15)
* Element Map Test

* Rename test and add more assertions

* Reduce test complexity
2024-01-27 12:00:12 -06:00
Vincenzo Calligaro
1ecae13bca Tests for makeShapeWithElementMap (#12)
* Tests for makeShapeWithElementMap
 * Added nullShapesThrows tests for the classes derived from <TopoDS_Shape>
 * Added test passing as "sources" parameter of the tested method an empty vector of TopoShapes objects
 * Added test with unmappable sources
 * Added test to find shapes inside other shapes made from the first ones
* Tests for makeShapeWithElementMap with simple shapes
 * Added test to find source shapes' sub-shapes name in the elements maps
 * Added test to find the "MAK" OpCode in the elements maps names

---------

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-01-27 12:00:12 -06:00
bgbsww
7e550c7e26 Rename test and add more assertions 2024-01-27 12:00:12 -06:00