Commit Graph

13188 Commits

Author SHA1 Message Date
wmayer
c5e400cd38 Add methods to get intersections of mesh edges, project point on edge 2019-06-27 19:27:12 +02:00
Yorik van Havre
5fb22278e8 Arch: Removed log message in DAE exporter 2019-06-27 11:54:15 -03:00
luz.paz
ac2eb3604f [AddonManager] Add DynamicData WB Logo 2019-06-27 11:51:11 -03:00
carlopav
e7e3550901 [Draft] Cleaned code in arc 3Points preview
Arc tracker during creation is computed by arc tracker new method.
2019-06-27 11:50:45 -03:00
carlopav
87225f0a6b [Draft] Fixed a bug in arc editing and added preview
Fixed a bug so arc editing take correctly the placement into account.
Added preliminary support for preview during arc editing. To be improved in the future.
2019-06-27 11:50:45 -03:00
carlopav
04ce90c4fd [Draft] Arc Tracker by 3points method
Added arcBy3Points method to arc tracker
2019-06-27 11:50:45 -03:00
Syres916
cdcc647458 [AddonManager] Improve handling of Wb Readme images
...with particular regard to Windows character limit.
2019-06-27 11:49:44 -03:00
furti
f58c20afec Fix some problems with ArchFence
The commit that introduces the colorization option added some problems.
First the "sectionFaceNumbers" property is only set when an execute is
performed. When this does not happen, an exception is thrown when the
document is saved that contains a fence created with an older version
of FreeCAD.

Also the new Props on the ViewProvider where not set because the
"onDocumentRestored" is not reckognized for ViewProviders.
2019-06-27 11:48:50 -03:00
furti
99a816699f Fix possible colorization problem
When we set "UseOriginalColors" to true, it is possible that we cant
calculate the exact number of diffuse colors, because the "applyShape"
method optimized the shape somewhat. That operations could remove faces.

To fix this for now, we simply set the shape without further optimizations.
2019-06-27 11:48:50 -03:00
paullee0
41d54eb25f Fix offsetWire() to treat wire with 1 edge (circle e.g) correctly (no need to connect()) 2019-06-27 11:30:59 -03:00
Bernd Hahnebach
0944d2f45c FEM: flake8, lgtm, try to get them both quiet 2019-06-27 13:23:48 +02:00
Bernd Hahnebach
251a3b1ff5 FEM: gui objects, catch a syntax error, if the user triggers the OK button with a wrong input 2019-06-27 00:21:46 +02:00
Bernd Hahnebach
b6fa7bd78d FEM: gui objects, fix problems because off different Attribute names of part to mesh in mesh objs 2019-06-27 00:21:40 +02:00
Bernd Hahnebach
441b3d517e FEM: utils, add a method to get the Part to mesh 2019-06-27 00:21:34 +02:00
Bernd Hahnebach
ece1b7ecba FEM: gui, commands, typo the second one :-) 2019-06-26 21:35:46 +02:00
wmayer
c1d9087d09 add method to project points on mesh 2019-06-26 16:57:14 +02:00
wandererfan
916fe7ced3 [TD]Remove tracker on Cancel 2019-06-26 08:19:12 -04:00
mwganson
9a3fe1fb78 TaskCheckGeometry -- log geometry check errors to report view 2019-06-26 12:13:23 +02:00
mwganson
961ffce93e TaskCheckGeometry settings panel with runBOPCheck option 2019-06-26 12:02:43 +02:00
Zheng, Lei
0bab393394 BrowserView: fix QWebEngine focus problem 2019-06-26 11:10:51 +02:00
luz.paz
7f67c13100 [AddonManager] Add Inventor Loader logo to icons/
Relevant thread https://forum.freecadweb.org/viewtopic.php?f=9&t=36556&hilit=addon+manager&start=30#p314729
2019-06-26 11:02:31 +02:00
Bernd Hahnebach
76953d933c FEM: gui commands, typo in comment 2019-06-25 14:02:12 +02:00
Bernd Hahnebach
72d4c36f2b FEM: gmsh tools, comment not used variable 2019-06-25 00:14:43 +02:00
Bernd Hahnebach
73d8b31b55 FEM: mesh tools, quad4, fix mesh area (this has been wrong for years :-() 2019-06-25 00:14:43 +02:00
Bernd Hahnebach
c06178bf21 FEM: lgtm, red rid of unnecessary assignments 2019-06-25 00:14:43 +02:00
Bernd Hahnebach
79016e0881 Materials: code formating, flake8 2019-06-25 00:14:43 +02:00
Bernd Hahnebach
f445e34fb8 FEM: vtk post processing, fix result type names in linearization plot 2019-06-25 00:14:43 +02:00
Bernd Hahnebach
499703b265 FEM: gmsh mesh tools, do not use error message to print some log 2019-06-25 00:14:43 +02:00
Bernd Hahnebach
5f6352c6ec FEM: gmsh mesh tools, add some comments 2019-06-25 00:14:43 +02:00
sliptonic
00f082c97d Merge pull request #2282 from sliptonic/lgtmcleanup
Lgtmcleanup
2019-06-23 17:29:40 -05:00
wmayer
85270f5cd3 Fix a couple of clang compiler warnings:
-Wunused-variable
-Winconsistent-missing-override
-Wdelete-non-virtual-dtor
-Wunused-private-field
-Wformat
2019-06-23 15:19:12 +02:00
Abdullah Tahiri
b9417938c4 Sketcher: Fix Carbon copy leads to unsolvable sketch
====================================================

fixes #3973

https://forum.freecadweb.org/viewtopic.php?p=316251#p316198

This commit disables an old "axis orientation correction mode", which tried to
solve a problem with orientation of the axis. It never worked fine and it should
have never been introduced, as everything it intends to do should be done by
setting the appropriate placement offset.
2019-06-23 15:15:46 +02:00
wmayer
81f37959a7 fix -Winconsistent-missing-override 2019-06-23 10:37:28 +02:00
Abdullah Tahiri
e72b48e0cf ViewProviderAttachExtension: check for attach extension 2019-06-23 01:03:37 +02:00
Abdullah Tahiri
62975d2fcf Part Gui: Update attachment icon on attach extension change 2019-06-23 01:03:36 +02:00
Abdullah Tahiri
511bb070b9 PartDesign Gui: Extend ViewProviderDatum with Part::ViewProviderAttachExtension 2019-06-23 01:03:36 +02:00
Abdullah Tahiri
85c37aa6c0 PartDesign Gui: Extend ViewProvider with Part::ViewProviderAttachExtension 2019-06-23 01:03:36 +02:00
Abdullah Tahiri
680364b171 Part Gui: New ViewProvider extension for overlaying icons related to Part::AttachExtension 2019-06-23 01:03:36 +02:00
Abdullah Tahiri
7602d39dda Pixmap: Make bigger attachment icon 2019-06-23 01:03:35 +02:00
Abdullah Tahiri
2ac5707072 PartDesign: Refactor set/remove tip in the new Gui::ViewProvider mechanism 2019-06-23 01:03:35 +02:00
Abdullah Tahiri
321e9215d4 PartDesign: Extend Datums ViewProvider to overlay attachment status 2019-06-23 01:03:35 +02:00
Abdullah Tahiri
e632e9feb8 Sketcher: Fix carbon copy construction points
=============================================

fixes #3926

Points made of construction type are special non-constrainable points, such as (current) bspline knots.

This was not intended in Carbon Copy.
2019-06-22 23:15:07 +02:00
Abdullah Tahiri
0635822415 Sketcher: Polyline snap arc to 45 degrees bug fix
=================================================

fixes #3974

Snapping to 45 degrees during arc creation (hold ctrl during an arc within a polyline), resulted in
reduced precision, because Gui::Command::doCommand %f defaults only to six decimal positions, which is
a poor representation in radians of, for example, 90 degrees.

A work-around could have been to hardcode a higher number of decimals, as in %0.Xf. However, I do not like
such magic numbers.

The solution chosen is to use an App.Quantity object using as units degrees, which leads to no loss of precision.
2019-06-22 17:22:40 +02:00
Abdullah Tahiri
3810381d92 Sketcher: fixes no horizontal/vertical on segment after horizontal/vertical alignment
=====================================================================================

Selecting first the horizontal/vertical constraint and applying to a line segment with
a previous horizontal/vertical alignment constraint caused FreeCAD to refuse applying it.

fixes #4013
2019-06-22 09:58:42 +02:00
Abdullah Tahiri
f22d1393c7 Sketcher: Toolbar - add toggle deactivated state command 2019-06-22 08:26:31 +02:00
Abdullah Tahiri
2822381d44 Sketcher: ViewProvider representation of deactivated constraints 2019-06-22 08:26:31 +02:00
Abdullah Tahiri
8b5ee49db8 Sketcher: Settings - Deactivated constraints color selection 2019-06-22 08:26:31 +02:00
Abdullah Tahiri
70081d739b Sketcher: Constraints' widget deactivated constraints commands and representation 2019-06-22 08:26:31 +02:00
Abdullah Tahiri
4de857a471 Sketcher: GUI command to activate/deactivate constraints 2019-06-22 08:26:31 +02:00
Abdullah Tahiri
7e3fd1a343 Sketcher: Update icon resources 2019-06-22 08:26:31 +02:00