Commit Graph

13168 Commits

Author SHA1 Message Date
wmayer
d6bf698d28 suppress warning C4996 2018-05-31 13:42:35 +02:00
wmayer
37411e0a7b fix string 2018-05-31 13:27:38 +02:00
wmayer
ed0642e308 fix const correctness 2018-05-31 13:15:31 +02:00
wmayer
443dde8d6c fix const correctness 2018-05-31 12:49:23 +02:00
Abdullah Tahiri
29f87ca6cd Sketcher: error message when trying to increase the degree of not-a-bspline fixes #3471 2018-05-31 11:42:24 +02:00
Abdullah Tahiri
4ce0f301ca Sketcher: bspline knot increase wrong string fixes #3470 2018-05-31 11:42:11 +02:00
Abdullah Tahiri
d9265b4aa8 Tests: Update test to remove redundants that failed to be detected with the old solver 2018-05-31 11:41:59 +02:00
Abdullah Tahiri
97effe4017 Sketcher: fix failure to notify solver issues, like redundancies, when using setUpSketch in SketchObject 2018-05-31 11:41:48 +02:00
Abdullah Tahiri
d2558643f3 Fix MatrixIndexType 2018-05-31 11:41:37 +02:00
Abdullah Tahiri
9b11cc086d GCS: Improvement in redundant constraint detection
==================================================

The solver uses some heuristics to determine the "redundant to remove" and notify it to the user.

Basically it would pick the solver redundant constraint that affects most groups of redundants (popularity contest).

In the simple cases, all the redundants are equally popular and the popularity contest is untied by using the tagid (let say for simplicity it is the number at sketcher level Constraint3, the tagid=3).

This means that in simple cases, the solver systematically decides that the redundant constraint to handle from those showing a linear dependency is the one appearing the last.

This commits changes the way to untie the popularity contest, by giving more priority to those sketcher constraints that need a lower number of solver constraints (in other words,
those constraints that remove a lower amount of DoF). In case of tie, the tagid is then used to break the tie.

At least:
fixes #3434
fixes #1557
2018-05-31 11:41:26 +02:00
Abdullah Tahiri
3ae3f25cf1 GCS: Fix report view formating and duplicated endline 2018-05-31 11:41:16 +02:00
Abdullah Tahiri
c7682464a1 Sketch: DoF finder icon/resource file 2018-05-31 11:41:04 +02:00
Abdullah Tahiri
7410647c22 Sketcher Toolbar: Removing DoF finder from the toolbar, as it can be accessed from the solver messages now
- Renaming of command
2018-05-31 11:40:53 +02:00
Abdullah Tahiri
ab5a22883d Sketcher: DoF finder command while using the default SparseQR
=============================================================

- Modification to transparently switch from SparseQR to DenseQR and back to SparseQR when using the DoF finder command.
- Command Tools dof finder command name change
2018-05-31 11:40:40 +02:00
Abdullah Tahiri
d75be1cd03 Sketcher: Support for clickable DoFs to launch DoF finder 2018-05-31 11:40:28 +02:00
Abdullah Tahiri
040923fcef Solver: solver sketch level support for driven constraints and parameters
- Support for addition of driving information to GCS constraints
- Support for keeping track of value parameters of driven constraints
- Support for getting which QR algoritm is being used at GCS level
2018-05-31 11:40:16 +02:00
Abdullah Tahiri
eb5bf9894a GCS: Full detection of dependent parameters with Dense Full Household pivoting QR decomposition
- Improve Debug information.
- Support for addition of constraints with driving information for the solver constraints.
- Removal of the driven constraints from the Jacobian for QR decomposition
- Removal of the value freewheeling parameter from the Jacobian for QR decomposition
- Full detection of dependent parameters where DoF are present for Dense QR.
2018-05-31 11:40:05 +02:00
Abdullah Tahiri
0a4df1f8da GCS: Support for solver constraints to store driven/driving status 2018-05-31 11:39:53 +02:00
Abdullah Tahiri
f60873bae6 Sketcher: New Command to select geometric elements with dependent parameters 2018-05-31 11:39:41 +02:00
Abdullah Tahiri
05e8a7cec2 GCS: Extension of solver geometric elements to store whether they have dependent parameters 2018-05-31 11:39:28 +02:00
Abdullah Tahiri
f88daf23cc Solver: Solver Sketch level dependent parameters and solver geometric element management 2018-05-31 11:39:15 +02:00
Abdullah Tahiri
31e902d204 GCS: Solver dependent parameters retrieval 2018-05-31 11:39:02 +02:00
looooo
cba64a3587 fix windows problem:
https://forum.freecadweb.org/viewtopic.php?f=4&t=29014
2018-05-31 11:02:33 +02:00
Mark Ganson TheMarkster
0980b1c168 Remove extra definition of obj.IntervalZ
Remove extra definition of obj.IntervalZ in Draft array object.

Was:
obj.IntervalZ = Vector(0,0,1)
obj.IntervalZ = Vector(0,0,0)

Now:
obj.IntervalZ = Vector(0,0,1)
2018-05-31 10:58:58 +02:00
Yorik van Havre
a36b449529 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2018-05-30 19:07:48 -03:00
wandererfan
bffc23f02f Format Dxf Group Codes as 3 chars 2018-05-30 19:06:58 -03:00
wmayer
f2ae921768 expose function to Python to get optimal bounding box 2018-05-30 21:27:49 +02:00
wmayer
e266c6320a respect settings of locatation navicube when creating a new view 2018-05-30 09:45:44 +02:00
wandererfan
ae2c717923 Fix typo in AddonManager 2018-05-29 09:57:10 +02:00
wandererfan
2a39bdc24c Write Dimension Blocks to Dxf file 2018-05-28 19:54:45 +02:00
wandererfan
d855f94b31 Add Header with version to dxf output file 2018-05-28 19:54:45 +02:00
wandererfan
e8fc79ee3d Avoid Qt warning re mdi window not in workspace 2018-05-28 13:27:11 -04:00
wandererfan
ce99d383fb Ignore selection changes while closing Page 2018-05-28 13:26:26 -04:00
Janne Keränen
37c4bda776 Correct small bug in CompoundFilter in command line
Without this, CompoundFilter does not work in Python script in non-GUI-mode.
See:
https://forum.freecadweb.org/viewtopic.php?f=10&t=27593&p=222303
and
https://www.freecadweb.org/tracker/view.php?id=3381
2018-05-28 16:55:15 +02:00
wandererfan
2e894444f7 Fix #3477 Unintended Deletion
- original fix for #3477 presented message box for each
  inactive selected item.  Now it presents 1 message box
  per document, like the check for deletion of linked
  objects.
2018-05-28 16:46:31 +02:00
pekkaroi
cf4aa9807a PathSimulator, fix typo false->False 2018-05-28 10:27:53 -03:00
pekkaroi
bce18dfb5c Improve backwards compatibility 2018-05-28 10:12:07 -03:00
pekkaroi
4cff32cc25 Cleaning 2018-05-28 10:12:06 -03:00
pekkaroi
645f980a31 Improved naming of the new parameters 2018-05-28 10:12:06 -03:00
pekkaroi
2fdfb0a485 Add IgnoreAbove parameter to not generate ramp above certain heights 2018-05-28 10:12:03 -03:00
Bernd Hahnebach
57c3044aa9 FEM: mesh netgen command, fix meshing while task panel is opened 2018-05-28 12:22:11 +02:00
Bernd Hahnebach
daef5693be FEM: material editor, add it to materials menue 2018-05-28 08:58:17 +02:00
Bernd Hahnebach
1df7b8c235 FEM: menue entries, add submenue for materials 2018-05-28 08:58:17 +02:00
Bernd Hahnebach
7292b05cfc FEM: selection widget module, fix console print message 2018-05-28 08:58:17 +02:00
Bernd Hahnebach
022c980977 FEM: Python VP, add return variable to unSetEdit methods and improve reseting the edit mode 2018-05-28 08:58:17 +02:00
Bernd Hahnebach
949084f056 FEM: material widget, add button to fix material property editing 2018-05-28 08:58:10 +02:00
Abdullah Tahiri
e97e616686 Sketcher: Fix crash on applying dimensional constraint to external element 2018-05-27 19:43:05 +02:00
wmayer
564b2ea86c fixes #0003493: Python Shape.isClosed() returns false for any solid, including primitive Parts 2018-05-27 15:10:44 +02:00
wmayer
f3dc1adc2c fix inconsistency with default value of random shape color 2018-05-26 18:52:58 +02:00
wmayer
9a3021818b implement option to change corner of navi cube 2018-05-26 18:51:53 +02:00