Commit Graph

35857 Commits

Author SHA1 Message Date
Zheng, Lei
76df39e99d Toponaming/Part: transfer in getSubTopoShape 2024-02-13 10:01:17 -05:00
Chris Hennes
03b41403fa Merge pull request #12189 from CalligaroV/toponamingTopoShapeWire
Toponaming makeElementWire
2024-02-08 20:59:26 -06:00
Chris Hennes
c8d33261f8 Addon Manager: Fix signals in connection check 2024-02-08 18:59:38 -06:00
marioalexis
dfbc90d351 Fem: Add support for cyclic symmetry - fixes #12155 2024-02-08 16:08:59 -06:00
Chris Hennes
9695bf01b8 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
73d214a2ad Merge pull request #12295 from bgbsww/bgbsww-toponamingFeaturePartBoolean
Toponaming: transfer in FeaturePartBoolean
2024-02-08 13:29:38 -06:00
Ajinkya Dahale
3f1f6387d1 [Sketcher] Handle spline selection in Dimension tool 2024-02-08 23:46:17 +05:30
Ajinkya Dahale
73434e008a [planegcs] Simplify GCS::BSpline::CalculateNormal() 2024-02-08 23:46:17 +05:30
Ajinkya Dahale
459d210f15 [planegcs][test] Add Spline and Arc tangent test 2024-02-08 23:46:15 +05:30
bgbsww
b2cbd7e5a7 Clean code and testing tweak 2024-02-08 11:09:36 -05:00
Ajinkya Dahale
1e19926a77 [planegcs] Add SketcherExport macro to classes in Geo.h
...for use in tests.
2024-02-08 20:15:17 +05:30
Ajinkya Dahale
da48a72269 [planegcs] Implement BSpline::Value()
Needed for gtests currently.
2024-02-08 20:04:28 +05:30
Ajinkya Dahale
b1ef4be6fa [planegcs] Remove some numerical testing
If needed this can be moved to a gtest,
2024-02-08 20:04:28 +05:30
Ajinkya Dahale
65b4dd10ae [Sketcher] Expose general tangency with B-splines to Sketcher
The following commits were squashed into this

[Sketcher] Handle some corner cases in AngleViaPoint

[Sketcher] Avoid redundant constraints with B-splines...

When involving tangent, perpendicular and angle constraints.

[Sketcher] Add pre-commit changes

[Sketcher] Do not allow 2-selection tangent with B-spline

Also...

[Sketcher] Report error when using direct tangency with B-splines

[Sketcher] Fix malformed constraint when B-spline is selected second

To clarify, this means the second curve selected. The position of the point in
selection order does not matter in angle-via-point.

[Sketcher] Fix wrong number for B-Spline tangent on redundancy

[Sketcher] Remove existing point-on-object in some redundant cases

Particularly when point constrained on a B-spline is being used for
tangent, perpendicular or angle via point with the same B-spline.

[Sketcher] Fix direction issue with B-spline tangents.

Without these changes the solver might try to "twist" the B-spline to make the
angle between curves be 0 instead of PI (which may be closer to the initial shape).
2024-02-08 20:04:28 +05:30
Ajinkya Dahale
82f03593fd [planegcs] Implement calculateAngleViaParams
For use in angle-via-point with complex curves.
2024-02-08 20:04:27 +05:30
Ajinkya Dahale
5ba050b467 [Sketcher][planegcs] Implement parametric BSpline::CalculateNormal
As opposed to "punctual" that already exists for curves.
2024-02-08 20:04:27 +05:30
Ajinkya Dahale
6a3c0555d0 [Sketcher][planegcs] Support angle via point with params
These are intended to use when calculating normal simply with points could be
numerically expensive or otherwise nonviable.
2024-02-08 20:04:27 +05:30
marioalexis
268edeeb60 Fem: Use override 2024-02-08 08:29:19 -06:00
CalligaroV
3066f74747 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
d9d6ae825e 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
728c215372 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
31b40ce6a2 Merge pull request #12237 from bgbsww/bgbsww-toponamingMakeRefine
Toponaming: Transfer in makeElementRefine
2024-02-07 15:19:27 -06:00
CalligaroV
1938bbef69 Part/Toponaming: makeElementWires
* Added test for MapperMaker::modified

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-02-07 15:10:58 +01:00
Zheng, Lei
d72896c28d transfer in FeaturePartBoolean 2024-02-06 21:09:00 -05:00
bgbsww
46230c9a93 Add Test for MakeElementRefine 2024-02-06 15:58:37 -05:00
Kevin Martin
0dcfe94505 Handle all combos of "group into blocks" "use DXF colors" "use layers"
Fixes #11873 this was the primary goal of these changes

Fixes (partially) #11874 the parts of a polyline are combined as a
compound object (shape) but it would be preferable for them to be made
into a wire (if possible)

Fixes #11872 Objects in a block definition are now kept separately
until the block is inserted, in which case the inserted objects are
subject to all the other options regarding combining.

Fixes (partially, review required) #11871 Text and dimensions are now
kept as part of the block definition and are placed in the drawing when
the block is inserted but this code has not been extensively tested.

Affects #11875, custom types are not made, but the labels now reflect
the object types rather than all being "Shapennn"

This leaves the importer options handling in a bit of a mess that needs
cleanup eventually, but this can be a new issue.
This includes some importer flags that have no corresponding options
(e.g. import frozen layers), some flags not yet implemented, some
flags not yet even declared in the code because their implementation
is further off (import hatch outlines), and some suggested future
options (import SOLIDs as faces)

Centralize the calculation of the OCS for entities as they're read
from the DXF. Most of the entities don't use this yet, but some of
them roll their own crude Normal Vector handling. Because the new
code takes priority over the old for reading the normal vector, such
code will always see (0, 0, 1) as the extrusion direction.
2024-02-06 12:50:30 +01:00
Alexander Neumann
c57a83cb4f move #include <SMESH_Version.h> out of ifndef _PreComp_
fix position of #endif for MEFISTO removal
2024-02-05 08:50:56 -06:00
David Carter
e9b43a0f83 Material: Material editor enhancements
Improves compatibility when using the legacy editor.

Corrects a number of issues that prevented saved files from being displayed when using the legacy editor.

Reduces the verbosity of console messages.
2024-02-05 08:46:04 -06:00
Roy-043
5d729db905 Merge pull request #12269 from Syres916/Fix_Unguarded_RootNode_Specific_Child
[Arch] [Draft] Add guard for RootNode specific child
2024-02-05 12:30:57 +01:00
Syres916
e4bb7a98e2 [Arch] [Draft] Add guard for RootNode specific child 2024-02-05 11:00:38 +00:00
Adrian Insaurralde Avalos
963652c6a7 Avoid sending unescaped quotes to python console 2024-02-04 16:44:25 -06:00
Adrian Insaurralde Avalos
808e5d9d74 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
marioalexis
f34861c99b Material: Avoid potential dependency of core system on application module 2024-02-04 16:42:39 -06:00
Zheng, Lei
31b7c3d145 Transfer in makeElementRefine 2024-02-04 08:59:41 -05:00
Roy-043
c5d0fbd707 Merge pull request #12250 from Roy-043/Draft-Fix-messages-that-only-worked-for-objects-supplied-as-strings
Draft: Fix messages that only worked for objects supplied as strings
2024-02-04 11:51:29 +01:00
Roy-043
7ca885eb25 Removed too much in make_label.py 2024-02-04 09:50:45 +01:00
Chris Hennes
2192031ae3 Merge pull request #12229 from bgbsww/bgbsww-toponamingGeometry
Transfer in Geometry.x changes from RT branch
2024-02-04 09:27:43 +01:00
bgbsww
12fdd27326 Switch to using enum 2024-02-04 09:27:16 +01:00
bgbsww
f3c9b8ee97 Delinting pass 2024-02-03 18:33:07 -05:00
Roy-043
32072c7f9c Merge pull request #12251 from Roy-043/Draft-Fix-messages-for-Draft_Fillet
Draft: Fix messages for Draft_Fillet
2024-02-03 23:03:58 +01:00
Roy-043
e6c68aab31 Draft: Fix messages for Draft_Fillet
There were still too many messages.
2024-02-03 19:46:20 +01:00
Roy-043
178070af5d Draft: Fix messages that only worked for objects supplied as strings
Some error messages would only work if objects were supplied as strings. These would fail if objects were passed (as objects) that had already been deleted.
2024-02-03 19:38:49 +01:00
Zheng, Lei
1bb5350c51 App: fix PropertyPythonObject persistence backward compatibility
Related #10460
2024-02-03 17:20:46 +01:00
Roy-043
ede61694e3 Merge pull request #12242 from Roy-043/Draft-Fix-Draft_Wire-conversion-function
Draft: Fix Draft_Wire conversion function
2024-02-03 01:43:50 +01:00
Roy-043
842b0b230b Draft: Fix Draft_Wire conversion function
The Draft_Wire command can combine selected Draft_Wires and Draft_Lines into a single wire. This function did not always behave properly.
* Edges were not sorted, the result could have a different shape (with the correct vertexes).
* If edges formed  a closed shape the resultant wire was not closed.
2024-02-02 22:54:34 +01:00
Roy-043
90c90f705b Merge pull request #12234 from Roy-043/Draft-Draft_Arc_3Points-minor-consistency-update
Draft: Draft_Arc_3Points minor consistency update
2024-02-02 18:07:37 +01:00
Roy-043
ee3e1cd5ce Merge pull request #12230 from kpemartin/Issue11876
Remove excessive output from Draft object creation and editing
2024-02-02 18:06:02 +01:00
Roy-043
834aff05a9 minor edit 2024-02-02 15:17:13 +01:00
Roy-043
cfe13dc0c3 Merge pull request #12232 from Roy-043/Draft-Draft_Point-minor-consistency-update
Draft: Draft_Point minor consistency update
2024-02-02 15:10:54 +01:00
Kevin Martin
39bee92bea Replace deprecated escapes with valid ones 2024-02-02 08:58:49 -05:00