Commit Graph

37 Commits

Author SHA1 Message Date
wmayer
601637320d PD: Add test case to show the fix for the crash with active objects 2024-11-28 17:15:39 +01:00
wmayer
e523eab001 Tests: Add unit test to demonstrate failure of #17553 2024-11-02 23:45:02 +01:00
David Carter
233fcd1416 Material: PartDesign DiffuseColor custom attribute
PartDesign features did not inherit the custom attribute for
DiffuseColors as expected. The inheritance chain was incorrect. Also
added tests to ensure it's available.

fixes #15364
2024-07-29 11:24:46 -05:00
bgbsww
252707a803 Add an initial test to show TNP (#13233)
* Add an initial test to show TNP

* Add documentation, make review tweaks

* Quiet Lint
2024-04-03 16:53:58 -05:00
wwmayer
d3049deaa9 PD: Add test for helix (#11601)
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-01-10 07:26:18 -06:00
bgbsww
bf3ccbc5b6 Correct mistaken Helix patch; use MakePipe for frenet for speed; add tests (#11598)
* Cleanup and switch to using MakePipe

* Cleanup unused include

* Use Frenet mode in building pipe

* Restore original code, add a control property

* Hide property, and init on new objects

* Restore prior behavior for legacy objects

* Clean up git blame; add missing move to keep helix same with new makePipe call

* Remove debug include

* Use doxygen syntax for deprecation comment

* Add unit tests; restore code for angled helixes; optimize zero angle helixes

* Lower test precision to accept platform variations

* Loosen more

* Correct restoration

* Tweak test volumes to match restored helix creation

* Restore helix generation parameter

* Fix test; delint
2024-01-08 13:43:38 -03:00
Adrian Insaurralde Avalos
3fe4cdd977 [PD] Remove unused old hole feature implementation
Has been disabled for 7 years a there's an existing newer implementation
2023-10-18 12:09:13 +02:00
Jonas Bähr
b3ab9c1c3c PD: some cleanup of InvoluteGear
This commit removes obsolete files, gets rid of py2 habits like `xrange`
and fixes some comments and blank lines.
2023-03-13 22:10:41 +01:00
Jonas Bähr
3933825840 PD: Add tests loading InvoluteGears created with v0.20
This is in preparation for new features, to ensure we don't break
existing documents created with FreeCAD-0.20.
The fixtures have been created with the official mac build of
FreeCAD-0.20.1 using mostly default parametrization -- only the number
of teeth has been reduced in order to keep the file size low.
2023-01-22 21:44:03 +01:00
Jonas Bähr
96e7c6b3b5 PD: Add tests for InvoluteGear
There are some basic tests to cover the gear profile and its parameters
and some integration tests for the interaction with PD Pad and Pocket.

I followed the same pattern as the other PartDesign tests, e.g. not using
PEP8 style method names. Eventually some helper methods could be
extracted and moved to the common base framework in Mod/Test, but that's
another step.
2022-01-18 17:43:52 +01:00
donovaly
68673c6ad1 [PD] more hole cut work
- add definitions for IS 2009, 7046 and 12474
- remove useless file for a ISO 14583 since there are no such screws on the market
- rename "coarse" to "regular" since this what it actually is according to the norms
- uniform the x1 threads (for x2.0 etc we use a trailing zero and for some we use x1, for some already x1.0, thus consistently use x1.0)
- add some ISO 10642 entries
- correct ISO 4762:
  - correct some values
  - the does does not define a size M27
  - add the two missing sizes
2020-11-12 17:41:53 +01:00
donovaly
ea08a660eb [PD] hole creation
- propose valid values for the cut depth and diameter when creating new holes
- add new definitions for metric fine
- some code simplification and comments
2020-11-10 19:34:53 +01:00
wmayer
9eb080488d PartDesign: [skip ci] minor cosmetic changes 2020-10-31 13:32:18 +01:00
M G Berberich
6d1b292280 [PartDesign] Dynamic hole cut-types
‣ Make countersink and counterbore on metric holes freely definable by user.

‣ Fixed the Naming of M1.6, M2, M2.5 and M3.5

‣ Added constructor for custom enums from Enums to PropertyEnumeration

‣ Put definitions of cut-types (counterbore/countersink) for
  screwtypes into json-files for easy modification.

‣ Allow users to put its own definitions in json-files in
  [UserDir]/Mod/PartDesign/Resources/Hole

‣ Contains several examples of cut-type definition json-files that are
  propably not production-ready.

This uses a local copy of nlohmann::json¹ to read json-files.

__________
¹ This is a very nice,header-only C++ library under the MIT License
  (https://github.com/nlohmann/json). I copied the single-file-version
  and the forward-declaration-header into …/PartDesign/App/ so no new
  dependencies arise.
2020-10-31 12:49:00 +01:00
Adam Spontarelli
1eef7064f8 Initial addition of fcsprocket feature. This is a PartDesign tool that allows for the simple creation of ANSI standard roller chain sprockets. 2020-04-20 12:28:27 +02:00
wmayer
cdc507d9bb CMP0050: make PartDesign module aware of cmake policy 2018-08-20 17:19:04 +02:00
Kurt Kremitzki
44f163178a PDN: Add simple hole test 2017-08-30 10:41:55 -03:00
Kurt Kremitzki
c62a773cee PDN: Add tests for Boolean, MultiTransform, Primitives, Shapebinder 2017-07-26 23:16:12 +02:00
Kurt Kremitzki
544e6587cb Add linear and polar pattern tests 2017-07-11 02:27:38 -05:00
Kurt Kremitzki
fb5aeeaa7b Add dressup feature test structure 2017-07-11 02:27:38 -05:00
Kurt Kremitzki
4eb59453e7 Break out PartDesign tests into own folder 2017-07-11 02:27:38 -05:00
wmayer
c5876fe7ca + fix whitespace & cmake warning 2016-04-17 11:38:56 +02:00
Stefan Tröger
939286ca3e add shaft wizard only when building fem 2016-04-12 18:12:13 +02:00
Stefan Tröger
12c5e1f92f remove hole feature
A hole feature is something needed, however, the current implementation does not use the attacher code which would made it intuitive and compatibel to other workbench tools. A reimplementation is needed.
2016-04-12 18:12:13 +02:00
jrheinlaender
0a743b27da Python code of Hole Feature 2016-04-12 18:11:56 +02:00
wmayer
a622d14c2d + port to CMake 3.0 2014-11-15 18:48:58 +01:00
jriegel
ec2198107b move build specifier in own cMake group 2014-08-03 20:53:19 +02:00
jriegel
6d1d55dc15 Implement the python gear feature 2014-02-16 22:19:59 +01:00
jriegel
587f6b220b add fcgear
http://forum.freecadweb.org/viewtopic.php?f=9&t=5703
2014-02-16 22:19:55 +01:00
wmayer
1b957e98bc Fixes for OCC 6.3 2012-12-04 11:32:30 +01:00
jrheinlaender
d6bd7f1a7d Added for bore feature 2012-12-04 10:59:45 +01:00
wmayer
6dddb653d3 Add icon to wizard shaft, error handling of missing python modules, slight changes to the wizard shaft command 2012-12-02 15:24:55 +01:00
jrheinlaender
5c1948d8b6 Created shaft wizard (moved here from PartDesign branch) 2012-12-02 13:29:05 +01:00
wmayer
bd24d5beaf Missing reference to FilletArc.py 2012-03-11 11:04:19 +01:00
wmayer
3c76fc176e Fix INSTALL target in cmake files 2012-02-16 21:22:42 +01:00
wmayer
bde949f7e4 0000519: Patch to set proper RPATH's for system wide installation on Linux
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5270 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-11 12:36:36 +00:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00