bitacovir
1a7fd88bc3
Add SVG icon for Part Reverse Shape command
...
Part Reverse Shape command does not have icon for the FreeCAD UI (Part WB).
This commit adds SVG file with icon for this command. Also, it makes the necessary changes on Command.cpp and Part.qrc files.
The new SVG icon follows the FreeCAD Artwork Guidelines and were saved as Plain SVG format.
The icon designs keep the style of the existing icons in the Part Workbench:
https://wiki.freecadweb.org/Part_Module
The discussion with the request can be found in the UX/UI Design FreeCAD Forum:
https://forum.freecadweb.org/viewtopic.php?f=34&t=44278&hilit=bitacovir
2020-09-13 10:01:50 +02:00
donovaly
d4519d5aec
[PD and Part] add possibility to create skew prisms
2020-09-12 13:28:00 +02:00
Zheng, Lei
18c0d8ab12
Part: fix dangerous static_cast usage in view provider
...
Because Gui::ViewProviderLink can be used to override the view provider
of any object, it is not safe to assume view provider type without
explicit checking.
2020-09-09 13:16:46 +02:00
tomate44
c493d42bfe
SurfaceOfExtrusion: use uIso and vIso methods of parent class
2020-09-09 11:06:21 +02:00
wmayer
fc8eecb8eb
Part: [skip ci] make Tube command behave like all other solid creation commands
2020-09-04 12:21:40 +02:00
wmayer
d91508fece
Part: [skip ci] set proper icons for Tube feature
2020-09-03 19:18:30 +02:00
wmayer
06d6cc579f
Part: [skip ci] add MapMode support to Tube feature, raise an error if inner > outer radius, set icon to command and tree view (use cylinder icons for the time being)
2020-09-03 17:47:25 +02:00
mwganson
df0204466e
[CheckGeometry] fix segfault, reformat output with lower case, use try/except to check for runtime python errors and fall back on OCCT method if script failed.
2020-09-03 12:09:38 +02:00
mwganson
a4e38baeb3
[CheckGeometry] add new shapecontent builder instead of OCCT's to correct some errors in OCCT's values and to add for some more advanced information, e.g. volume or area, add new method to Base::Interpreter runStringWithKey() -- allows to run a python script and get a string return value
2020-09-03 12:09:38 +02:00
wmayer
a5899f3892
Part: [skip ci] return std::unique_ptr from Part::makeFromSurface() to avoid memory leaks
2020-08-29 23:56:12 +02:00
tomate44
efb403b8f9
Edge.curveOnSurface : add placement to the output tuple
2020-08-29 22:22:43 +02:00
tomate44
7d3ff633b7
Part.EdgePy : get access to stored Pcurves
2020-08-29 22:22:43 +02:00
tomate44
2ea94bee60
Part.Curve2d : adjust parameters
2020-08-24 16:09:54 +02:00
tomate44
f504152917
Part.Curve2d : fix for toShape sometimes generating wrong BSpline curves
2020-08-24 16:09:54 +02:00
tomate44
bba3d2a322
fix long spiral bug similar to #954 . Work around OCC bug #23314
2020-08-22 14:29:07 +02:00
carlopav
9b71dd77b6
Part: grouped ViewProviderExt subdivided view properties
2020-08-21 12:36:46 +02:00
vocx-fc
9c20a1f6be
Part: rename to uppercase, Part_ProjectionOnSurface
...
For consistency with all other commands that start with capital letter.
2020-08-17 16:32:28 +02:00
luz paz
71cf0e64f3
Part: fix typos in source function names and variables
...
Found via `codespell`
2020-08-17 16:32:28 +02:00
wmayer
9c17fe359b
Part: [skip ci] fixes #0004117 : Crash during extrusion
2020-08-13 14:23:16 +02:00
wmayer
17cd649341
Part: code simplifications and sorting
2020-08-10 12:43:48 +02:00
donovaly
26ebfbf846
code simplifications and sorting
2020-08-10 11:12:47 +02:00
donovaly
3ce634b126
TaskFaceColors.cpp: correctly end box selection if necessary
2020-08-10 11:12:23 +02:00
donovaly
da08611c47
[Part] FaceColors cleanup
...
- indicate if one is in the Box Selection mode
- get rid on dialog if one really wants to cancel (no other Task dialog does this and it is annoying)
- fix clumsy dialog layout
2020-08-10 11:11:50 +02:00
MA-LAPTOP\apeltauer
f9cbec0d51
Improve the projection on surface algorithm. For now the first possible solution was taken. If several solution exists, this leads to a miss match.
...
Now check the distance of the projection shape and the original shape and the take the projection with the smallest distance.
Discussion can be found here: https://forum.freecadweb.org/viewtopic.php?f=8&t=49341&p=422925#p422925
2020-08-10 10:23:06 +02:00
donovaly
940c27288b
[PD] [skip ci] disable keyboardTracking for primitives and attachment
...
When modifying primitives in complex geometries having a recompute for every keystroke can be annoying. Disabling keyboardTracking fixes this but keeps the immediate preview when using the spin buttons.
2020-08-10 10:14:17 +02:00
luz paz
59e3ea096e
Crowdin: Merge new translations [skip-ci]
2020-08-07 17:17:35 +02:00
wmayer
da5bd6594b
Part: [skip ci] move grid handling from ViewProvider2DObject to ViewProvider2DObjectGrid
2020-08-07 16:48:07 +02:00
wmayer
6592a76ac3
Part: [skip ci] use of ViewOrthoProjMatrix in ViewProvider2DObject::updateData to compute the grid
2020-08-07 13:32:29 +02:00
0penBrain
86658c339a
[GUI/Sketcher] Add option to disable grid auto-sizing based on shape boundbox
...
Sketcher makes use of this option to self-manage the overall grid size
2020-08-07 13:30:42 +02:00
wmayer
ad7fbee066
Part: [skip ci] fix crash when closing document while face colors panel is open
2020-08-06 11:26:24 +02:00
Zheng, Lei
488419cd73
Part: fix FaceMakerBullseye plane finding
...
Copy the shape to work around OCC circular edge transformation bug
2020-07-31 17:37:18 +02:00
vocx-fc
598baecd37
Part: move Shape view properties to Part design preferences
2020-07-30 12:28:28 +02:00
Abdullah Tahiri
60d73e0e8e
Part: Attacher intersection calculation fix
...
===========================================
In OCCT 7.4 (and apparently <= 7.4 too):
A GeomAdaptor_Curve obtained directly from BRepAdaptor_Curve will not work because it won't respect the
Location/orientation of the underlying curve.
This commit proposes to create a new GeomAdaptor_Curve from an intermediary curve handle to work around
this issue.
2020-07-29 19:06:59 +02:00
wmayer
cd5341001e
remove superfluous includes of iostream, use iosfwd instead
2020-07-28 15:22:23 +02:00
wmayer
244d7aae41
LGTM: [skip ci] fix: Inconsistent definition of copy constructor and assignment ('Rule of Two')
2020-07-27 14:39:14 +02:00
wmayer
3b0eeb63e8
LGTM: [skip ci] fix: Inconsistent definition of copy constructor and assignment ('Rule of Two')
...
Remove user-defined copy constructor of Exception classes without assignment operator
2020-07-27 13:47:41 +02:00
wmayer
44f42a8e2c
LGTM: [skip ci] fix: Declaration hides parameter
...
A local variable hides a parameter. This may be confusing. Consider renaming one of them.
2020-07-27 10:57:34 +02:00
wmayer
dc65b055e5
LGTM: [skip ci] fix: Empty branch of conditional
...
An empty block after a conditional can be a sign of an omission and can decrease maintainability of the code.
Such blocks should contain an explanatory comment to aid future maintainers.
2020-07-26 15:49:14 +02:00
wmayer
d5d7d65bfc
LGTM: [skip ci] fix: Large object passed by value
2020-07-24 18:32:31 +02:00
wmayer
cb2099aa6b
Part: optimize ViewProviderPartExt::getNormals
2020-07-22 20:33:17 +02:00
wmayer
b25dee58d5
Coverity: Uninitialized scalar/pointer field
2020-07-20 17:34:30 +02:00
wmayer
b480a207c0
Coverity: Uncaught exception
2020-07-20 17:34:29 +02:00
wmayer
83cc9e9580
Coverity: Useless call
2020-07-20 17:34:28 +02:00
wmayer
1a16cde1f5
Coverity: Structurally/Logically dead code
2020-07-20 17:34:28 +02:00
wmayer
421f6c52cb
Coverity: Dereference after null check
2020-07-20 17:34:25 +02:00
wmayer
6f06fbf36d
PVS: V601 The bool type is implicitly cast to the double type
2020-07-18 10:59:28 +02:00
wmayer
16f953ad65
PVS: V1004 A pointer was used unsafely after it was verified against nullptr
2020-07-18 10:59:27 +02:00
wmayer
0f18bdeb72
PVS: V524 It is odd that the body of 'getLastUKnotIndex' function is fully equivalent to the body of 'getFirstUKnotIndex' function
2020-07-18 10:59:27 +02:00
wmayer
f29a1c43cb
PVS: V773 The exception was thrown without releasing the pointer. A memory leak is possible.
2020-07-18 10:59:27 +02:00
wmayer
cbb5f99ade
PVS: V730 Not all members of a class are initialized inside the constructor
2020-07-18 10:59:27 +02:00