Andrea
8cc1565dcb
remove unnecessary InitApplication.h inclusion
...
The InitApplication library was being unnecessarily imported into some C++ files
2025-04-29 07:14:58 -05:00
Ajinkya Dahale
f869bace95
[Sketcher][test] Remove some obsolete TODOs
2025-04-10 09:20:18 +02:00
Ajinkya Dahale
c0d469d404
[Sketcher][test] Add tests for fixes done in #20150
2025-04-10 09:20:18 +02:00
Benjamin Nauck
b4eb28e50e
Sketcher: Use std::numeric_limits and std::numbers instead of defines
2025-03-29 13:32:39 +01:00
tritao
6c2c6847eb
CMake: Cleanup targets with transitive dependencies
2025-03-17 12:12:06 +00:00
Benjamin Bræstrup Sayoc
755229df23
Build: suppress warnings from 3rd party libraries
...
Warnings from 3rd parties are not relevant and are only polluting the warning output. Marking these libraries as SYSTEM suppresses warning.
https://gcc.gnu.org/onlinedocs/cpp/Invocation.html#index-I
https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html
2025-02-25 14:39:05 +00:00
Chris Hennes
3de97a43fe
Sketcher Tests: add [[maybe_unused]]
2025-02-25 14:35:12 +00:00
Joao Matos
cc6ffb44de
Core: Move PyCXX library to src/3rdParty.
2025-02-24 16:36:06 +00:00
bofdahof
62415907ee
current src path no longer required
2025-02-22 20:48:30 -06:00
Benjamin Nauck
a1c5767643
Mod: Use new addObject<T>(...) using regex
2025-02-10 18:35:38 +01:00
Ajinkya Dahale
c48f21585d
[Sketcher][test] Divide SketchObject tests into multiple files
...
...for managability.
2025-01-30 09:34:03 +01:00
Ajinkya Dahale
31457746c2
[Sketcher][test] Move helper functions away for reusability
...
...in other tests
2025-01-30 09:34:03 +01:00
Ajinkya Dahale
8f7a6628ca
[Sketcher][test] Add new test for internal geometry deletion
...
...when some are "used"
2025-01-16 15:56:21 +05:30
Ajinkya Dahale
8c53b2ded5
[Sketcher][test] Add tests for B-spline operations
2025-01-16 15:55:14 +05:30
Ajinkya Dahale
23cd6cb54e
[Sketcher][test] Tests for expose/delete internal geometry
2025-01-16 15:52:03 +05:30
Ajinkya Dahale
0f3aff0eac
[Sketcher][test] Create test for getConstraintAfterDeletingGeo+
...
[Sketcher] Add null case to constraint change on deletion checks
2025-01-16 15:52:02 +05:30
Ajinkya Dahale
f0f70daa0e
[Sketcher][test] Add and use helper function to get points of interest
2024-12-04 00:57:41 +05:30
Ajinkya Dahale
263331f6fb
[Sketcher] Refactor SketchObject::trim()
...
DO NOT MERGE because not complete: not all constraints are not transferred.
Includes:
* Adjust `deriveConstraintsForPieces` for trim
* Make sure new points are constrained on the cutting edges
* Add constraints at trim end(s) dependent on pre-exisiting ones with cutting curve(s). Also change tests to reflect that auto-coincidence can now be applied to non-periodic curves as well.
Known issue(s):
* Some redundant constraints may be added under certain circumstances (e.g. in
presence of perpendicular-via-point)
2024-12-04 00:57:40 +05:30
Ajinkya Dahale
b991c2fbc2
[Sketcher] Add tests for split and trim
...
Includes:
* Tests for splitting and trimming of various types of curves
* Assertions on constraints expected to be added on these curves
2024-12-04 00:57:40 +05:30
Ajinkya Dahale
311ac3591c
[Sketcher][test] Add unit tests for SketchObject::getPoint()
2024-12-04 00:57:39 +05:30
Jacob Oursland
fb7ce6405b
CMake: Add missing target_link_directories() for OCCT.
2024-11-26 16:03:08 -05:00
bgbsww
ecf7e51ab3
Toponaming: Remove all FC_USE_TNP_FIX protected old code
2024-08-26 11:12:48 -05:00
bgbsww
71870bd6f3
Toponaming: Touchup cleanup
...
Includes some header re-ordering from chennes.
2024-07-26 21:39:39 -05:00
bgbsww
e15646d158
Toponaming: Tests, cleanup, and fix axis drawing
2024-07-26 11:49:56 -04:00
bgbsww
0bddc51805
Refactor all element name pairs into clearer struct names - renames
2024-07-20 16:32:12 -04:00
Chris Hennes
11fa271eb5
Test: Support system GTest, and give warning if no submodule ( #13662 )
2024-06-03 10:40:35 -05:00
bgbsww
84ae6b9b7b
Toponaming: bring in missing code fragments in Part
2024-05-12 23:08:06 -04:00
Chris Hennes
3a9547c235
Start: Create 'First Start' screen
2024-04-28 12:57:00 -05:00
CalligaroV
6779c912bf
App/Toponaming: GeoFeature - fixes #13009 - fixes #13248
...
* Restored previous logic of GeoFeature::getElementName()
* Added precompiler directive to use the old logic if FC_USE_TNP_FIX isn't defined, otherwise use the new logic
* Reworked SketchObjectTest::getElementName() as a consequence of the previous points
Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com >
2024-04-04 22:09:12 -05:00
bgbsww
55acedb83d
Clean, enable disabled element map code in sketcher, add tests
2024-03-25 21:51:41 -04:00
Ajinkya Dahale
c5d462a3d9
[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
Ajinkya Dahale
459d210f15
[planegcs][test] Add Spline and Arc tangent test
2024-02-08 23:46:15 +05:30
wmayer
0b0e9effeb
tests: add initApplication() to avoid code duplications
2023-10-21 16:31:26 -05:00
howie-j
acbf135b78
[Sketcher] Fix angle constraint expression regression ( #10743 )
...
* fix 10742
* moved expression string modifier to helper function
* Tests: Add example tests for SketchObject
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* made expr modifier func static, pass by value and added unit tests
---------
Co-authored-by: Chris Hennes <chennes@gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-09-25 10:44:31 -05:00
pre-commit-ci[bot]
222a2520b1
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
Chris Hennes
1a960286a4
Tests: Reformat to current clang-format standard
2023-09-03 09:51:42 -05:00
wmayer
0b63d0cecb
Tests: move Sketcher test target to appropriate CMakeLists.txt file
2023-08-28 09:12:26 -05:00
Ajinkya Dahale
2167fb6f7e
[Sketcher] [gtest] Add gtests for geoIdFromShapeType
2023-07-21 22:43:45 -05:00
Ajinkya Dahale
532b391b69
[Sketcher] [gtest] Add SketchObject test
...
Create a document and then add a `SketchObject` to it. Does not work without
creating document.
Also `FCConfig.h` is needed for `FC_OS_WIN32`.
2023-07-21 22:43:45 -05:00
Chris Hennes
22d8c8f0dd
Sketcher: Add gtest unit test framework
2023-04-22 20:56:29 +02:00