Bernd Hahnebach
004f757ab7
FEM: some renameing for multiple solver:
...
- module names vs multiple solver
- stick with python command class names in Fem
- rename commands for new objects from _CommandFemSomeObjName to _CommandSomeObjName
- rename commands for do something to _CommandDoSomething
- change tool names to have a consistent naming in all FEM for menue tools and tool tipps
2016-05-16 13:22:54 +02:00
Bernd Hahnebach
676b73f3b5
FEM: split ccxInpWriter in new modules FemInputWriter and FemInputWriterCcx
2016-05-16 13:22:54 +02:00
Bernd Hahnebach
610b4b2bba
FEM: add module FemToolsCcx.py and make use of it
...
- move construktor from FemTools to FemToolsCcx
- FemComands and his childs, use the new FemToolsCcx class instead of super class FemTools
- TestFem, use new FemToolsCcx class instead of supper class FemTools
2016-05-16 13:22:54 +02:00
Bernd Hahnebach
2a6a57c5b6
FEM: ccxInpWriter, write vertex loads the same way like edge loads and face loads
2016-05-16 13:22:54 +02:00
Bernd Hahnebach
932679438a
FEM: add module FemMeshTools and move methods in there
2016-05-16 13:22:54 +02:00
Bernd Hahnebach
abdec1b6fd
FEM: fix unit test after small changes in writeAbaqus
2016-05-16 13:22:54 +02:00
Bernd Hahnebach
4bef49bb51
FEM: improvements in Abaqus (CalculiX) FEM mesh im- and export:
...
- add hexa8, hex20, penta6, penta15, quad4, quad8 to writeAbaqus in FemMesh
- make node order in ccxFrdReader and writeAbaqus fitting each other
2016-05-16 13:22:54 +02:00
wmayer
c60da6c6e9
+ fix build failure of Robot module when using occ
2016-05-15 21:01:44 +02:00
wmayer
9316a1511a
+ fix index error using occ matrix class
2016-05-15 16:12:24 +02:00
David Pello
5f0073b9e0
BSD Porting fixes, conditional compilation and use of gettimeofday()
2016-05-15 12:08:43 +02:00
blobfish
b5dfc41759
Part: Check Geometry: see following
...
adding parallel mode for bopargcheck. didn't help speed.
add time to bopalgo check
entry for stopOnFirstFaulty. didn't help speed.
adding new bopalgochecks
2016-05-15 00:06:22 +02:00
DeepSOIC
c922507f2f
Attacher: Py: fix crash on FreeCAD startup
2016-05-14 23:10:38 +03:00
wwmayer
6eb173a54b
Merge pull request #159 from DeepSOIC/Attacher16
...
Attacher16 - fixes, and Py interface
2016-05-14 18:23:27 +02:00
wmayer
bca7a1866e
+ port to OCC 7.0
2016-05-14 16:53:27 +02:00
DeepSOIC
71f70eb855
AttachEngine: fix crash when referenced objects get deleted
...
... by verifying if the pointers equal to objects contained in all open
documents. Not terribly good, but I can't think of a situation where
doing this search might cause trouble.
2016-05-14 02:14:51 +03:00
DeepSOIC
2d8a7614c5
Attacher: Py: fix docu strings
2016-05-14 00:50:30 +03:00
DeepSOIC
98a472b18d
Attacher: Py: renames
...
AttachEngine attributes and methods:
getShapeType -> getRefTypeOfShape
isShapeOfType -> isFittingRefType
downgradeType -> downgradeRefType
getTypeRank -> deleted (rank exposed through getRefTypeInfo )
getTypeInfo -> getRefTypeInfo
suggestMapModes -> suggestModes
2016-05-13 19:54:44 +03:00
DeepSOIC
632cf142fe
Attacher: Py: add GUI strings to getModeInfo and getTypeInfo
2016-05-13 19:54:44 +03:00
DeepSOIC
76c0a81fe3
Attacher: Py: GUI resources interface
...
Routines to get UI strings for attacher: mode names, mode tooltips,
ref.type names
2016-05-13 19:54:44 +03:00
DeepSOIC
8b4f1210ed
Attacher: Py: extend AttachEngine's interface
...
* add constructor
attributes:
* Mode
* CompleteModeList
* ImplementedModes
* GetModeInfo
* References
* SuperPlacement
* Reverse
* Parameter
* CompleteRefTypeList
methods:
* getShapeType
* isShapeOfType
* downgradeType
* getTypeRank
* copy
* calculateAttachedPlacement
* suggestMapModes
* readParametersFromFeature
* writeParametersToFeature
2016-05-13 19:54:44 +03:00
DeepSOIC
dcc8926236
Attacher: Py: implement Attacher attribute of AttachableObject
2016-05-13 19:54:44 +03:00
DeepSOIC
7000d551b7
Attacher: Py: create AttachEnginePy
...
Not very useful at the moment, just created the interface.
2016-05-13 19:54:44 +03:00
DeepSOIC
d4f1ef2f7a
Attacher: Py: add interface for changing attacher type
...
Plus a mechanism to remember attacher type of AttachableObject through
save-restore cycle.
2016-05-13 19:54:44 +03:00
DeepSOIC
fe295b701b
Attacher: Py: introduce Py interface of AttachableObject
...
Small - just the introduction.
Support for Py features based on AttachableObject.
Redirect Part2DObjectPython's father to be AttachableObjectPython.
2016-05-13 19:54:44 +03:00
DeepSOIC
897a66cbb7
Attacher: Py: withdraw positionBySupport from Part2DObject
...
to be reintroduced later in AttachableObjet Py interface
2016-05-13 19:54:44 +03:00
DeepSOIC
162378220d
Attacher: preparations for Py interface of shape type system
...
+ add getModeByName to AttachEngine
2016-05-13 19:54:44 +03:00
DeepSOIC
53bd9b674b
Attacher: fix wrong inertial calculation on solids
...
was using surface calculation instead of volume...
2016-05-13 19:54:44 +03:00
DeepSOIC
6ffa0c9b37
Attacher: initialize member variables
...
They got garbage values on creation, as was revealed when testing Py
interface.
2016-05-13 19:54:44 +03:00
DeepSOIC
d21995323e
Attacher: change Part2DObject to use Plane attacher by default
2016-05-13 19:54:44 +03:00
DeepSOIC
a41c79cd55
Attacher: AttachableObject should have virtual destructor
2016-05-13 19:54:44 +03:00
DeepSOIC
00d8537b66
Part: duplicate include cleanup
...
no functional changes
2016-05-13 19:54:44 +03:00
Yorik van Havre
0e4132a7d5
Merge branch 'master' of github.com:FreeCAD/FreeCAD
2016-05-12 23:16:59 -03:00
wmayer
c21888af6c
+ issue #0002542 : Part.Wire.makeoffset() doesn't handle circles correctly.
2016-05-12 19:03:23 +02:00
Yorik van Havre
3632129e5d
Merge branch 'master' of github.com:FreeCAD/FreeCAD
2016-05-11 10:19:13 -03:00
Wolfgang E. Sanyer
4ebb62be79
Fixed bug ID0002513, where Mesh.export failed.
...
The failure occered when Mesh.export was passed just a filename, such as 'out.stl'. If
'/some/path/out.stl' was passed it succeeded.
2016-05-10 22:29:40 +02:00
wmayer
59980c33d1
+ methods to highlight points, edges or faces of a shape
2016-05-09 23:48:30 +02:00
wmayer
1ccab846e2
+ apply f3nix:fix-gcc-warnings-1
2016-05-08 12:00:26 +02:00
wmayer
fbf72553f3
+ fix warnings
2016-05-08 06:19:32 +02:00
Mateusz Skowroński
56e5837fd3
Fix Tab order in TaskDatumParameters dialog.
2016-05-07 23:02:04 +02:00
Mateusz Skowroński
58daa046f1
Fix layout in TaskDatumParameters dialog.
2016-05-07 23:01:47 +02:00
wmayer
d8ad50d11d
+ move global function to namespace
2016-05-07 12:21:21 +02:00
DeepSOIC
c1f22cbd8d
Attacher: fix wrong superPlacement read-onlyness
...
It reacted to changes to unrelated properties. Fixed.
2016-05-07 11:24:41 +02:00
DeepSOIC
abf4ddf9f7
Attacher: UI: another fix of status label
...
When no references were filled in, and modes were switched, it falsely
claimed 'Attached'. This has been fixed.
2016-05-07 11:24:41 +02:00
DeepSOIC
651be3dcd1
Attacher: make positionBySupport return if attached or not
...
Needed as reliable way of testing if attachment is working or not.
2016-05-07 11:24:41 +02:00
DeepSOIC
2f6aaf3742
Attacher: add superPlacement to UI
...
Expose superPlacement as X,Y,Z,yaw,pitch,roll quantity boxes. With partial expression support.
2016-05-07 11:24:41 +02:00
DeepSOIC
b3e9c6b9a9
Attacher: make Placement read-only when attached
...
Read-onlyness of Placement and superPlacement properties is now
dynamically controlled by MapMode property value.
2016-05-07 11:24:41 +02:00
DeepSOIC
ebd5414a61
Attacher: UI improve status message display
...
Before, message used to display 'Selection accepted', when attachment
actually failed. Shouldn't happen anymore.
2016-05-07 11:24:41 +02:00
DeepSOIC
a392927750
Attacher: rework UI
...
* Remove hint system on buttons. Buttons show currently selected
reference type, instead.
* Change button's caption to "Selecting..." when selecting.
* internal logic rearrangements
2016-05-07 11:24:41 +02:00
DeepSOIC
f947101938
Attacher: use getModeName() instead of eMapModeStrings[]
...
getModeName() does range checking. eMapModeStrings[] will crash if out
of range.
2016-05-07 11:24:41 +02:00
DeepSOIC
505ec6a26d
Attacher: change suggestion routine interface
...
When another bit of information was needed to be extracted from mode
suggestion routine, it felt like listMapModes had too many arguments.
So, the arguments have been collapsed into a struct. This triggered a
few namespace-related changes, which lead to massive search-and-replace
changes all over FreeCAD.
So the only functional change carried out is the addition of reference
types readout to info returned by suggestor.
2016-05-07 11:24:41 +02:00
DeepSOIC
9d19bf023a
Attacher: new modes: Inertia CS, Inertia axes
...
Modes added:
3D and plane attachment: Inertia CS
Line attachment: Inertia axes
This commit may serve a good example of how to add new attachment modes.
2016-05-07 11:24:41 +02:00
DeepSOIC
d12141d1fb
Attacher: new mode: center of mass (point attacment)
2016-05-07 11:24:41 +02:00
DeepSOIC
71f5a8f980
Attacher: fix typo in tooltip
2016-05-07 11:24:41 +02:00
DeepSOIC
2b057ef192
Attacher: for reachable modes, display what's to add
...
For grayed out modes in list, show what's needed to get to the mode.
Like so:
"Normal to edge (add Vertex)"
2016-05-07 11:24:41 +02:00
DeepSOIC
e6911adc50
Attacher: display modes that can be reached
...
Attachment mode list used to display only the modes that fit current
references. Now, modes that can be reached by adding more references are
listed too, but grayed out.
2016-05-07 11:24:41 +02:00
blobfish
973dda6f88
Part: ModelRefine: adding basis surface to cylinder.
2016-05-07 09:45:39 +02:00
wmayer
7e01d0128b
+ issue #0002525 : Line color of shapes are always black
2016-05-06 13:57:13 +02:00
wmayer
524cdec261
+ suppress warnings with MSVC
2016-05-05 18:39:17 +02:00
wmayer
133ff16d0a
+ avoid code duplication
2016-05-05 18:38:36 +02:00
wmayer
cc88b376e1
+ fixes issue #0002224 : Drawings break on reopen. Template not found
2016-05-05 11:11:08 +02:00
Johannes Obermayr
1e061b5c02
Fix boost::any bug with Boost 1.54.
...
and set BOOST_MIN_VERSION to 1.48.
Fixes:
- http://freecadweb.org/tracker/view.php?id=0002505
- http://forum.freecadweb.org/viewtopic.php?f=13&t=15310
- http://forum.freecadweb.org/viewtopic.php?f=3&t=15400
- http://forum.freecadweb.org/viewtopic.php?f=10&t=14108
2016-05-02 18:31:08 +02:00
Yorik van Havre
a07ad8dcf1
Arch: Added pref option to not copy units to clipboard in survey mode
2016-04-30 11:38:19 -03:00
Yorik van Havre
eca3ce2dde
Arch: Fixed rebars to work with PartDesignNext
2016-04-30 10:47:05 -03:00
wmayer
9ee892eb35
+ add method to show parts of a mesh transparent
2016-04-29 18:15:31 +02:00
wmayer
d57b57d7ba
+ add method to set a viewer for Mesh selection
2016-04-29 18:14:28 +02:00
wmayer
f83506c510
+ rename BrushSelection class to FreehandSelection
2016-04-29 17:43:43 +02:00
wmayer
af72ae09c1
+ implement TopoEdge.isSeam(face)
2016-04-28 11:08:28 +02:00
Enmar Abrams
c12c4368cc
Fix crash from unviewed parametrized datum plane
2016-04-27 11:25:03 +02:00
wmayer
1166d8d2cc
+ fix compiler warning due to comparison of string literals
2016-04-26 18:57:25 +02:00
wwmayer
898bd8bb4c
Merge pull request #148 from f3nix/remove-qt3-2
...
Remove remaining Qt3 stuff - 2
2016-04-24 20:34:01 +02:00
Bernd Hahnebach
bdbefdc52a
FEM: replace tabs at line start by spaces
2016-04-24 19:10:33 +02:00
Bernd Hahnebach
b58e37b950
FEM: remove trailing whitespaces
2016-04-24 19:10:33 +02:00
Bernd Hahnebach
14eb6869a9
FEM: convert all windows code files to unix line ending
2016-04-24 19:10:33 +02:00
wmayer
1b1c0316d4
+ do not allow to create primitives while a task panel is open to avoid mess on the undo/redo stack
2016-04-24 18:27:24 +02:00
wmayer
de47702b17
+ fix typos + improve whitespaces
2016-04-24 18:11:02 +02:00
wmayer
d03a8fd386
+ fix various gcc & clang warnings
2016-04-24 16:21:19 +02:00
wmayer
6b4821a855
+ fix crash on abort of adding primitives
2016-04-24 14:17:01 +02:00
Mateusz Skowroński
c50bc17675
QInputDialog::getInteger() is obsolete in Qt4. Replace it with getInt().
...
This change is Qt4/Qt5 neutral.
2016-04-22 20:11:52 +02:00
DeepSOIC
b08a75bfb2
Attempt to fix gcc build
2016-04-21 22:34:20 +03:00
DeepSOIC
6eb450b7a0
Attacher: coding and translation style fixes
...
Replace QObject::tr() with qApp->translate, as suggested by @wwmayer
Curly braces around nested ifs.
Fix misleading comment in Attacher.h
2016-04-21 20:55:42 +03:00
DeepSOIC
4a1a1480ce
Attacher: list ref. combinations in UI
2016-04-21 20:55:42 +03:00
DeepSOIC
7e14a044a6
Attacher: change label in UI
...
"Attachment mode:" instead of "Available modes:"
2016-04-21 20:55:42 +03:00
DeepSOIC
cdc507fa36
Attacher: use the new strings in UI
...
* user-friendly mode names
* tooltips
2016-04-21 20:55:42 +03:00
DeepSOIC
314617f16a
Attacher: create special source file to contain attacher strings
2016-04-21 20:55:42 +03:00
DeepSOIC
1ca73cf428
Attacher: fix typesystem (forgotten ::init())
...
still doesn't work =(
2016-04-21 20:55:42 +03:00
DeepSOIC
b1fba06b33
Attacher: remove #include QString
2016-04-21 20:55:42 +03:00
DeepSOIC
d6a3d1b140
Attacher: fix superPlacement applied twice in some cases
...
superPlacement was applied twice on line and point attachment modes that
re-use 3d attachment modes code. Fixed.
2016-04-21 20:55:42 +03:00
DeepSOIC
431373823d
Attacher: split Attacher3d and AttacherPlane
...
Even though they share all the functionality now, I split them, to allow
independent user-friendly mode names.
2016-04-21 20:55:42 +03:00
Jose Luis Cercos-Pita
14cb2b8a75
Moved to version checking for anarchists and software realists, like matplotlib guys
2016-04-19 13:41:30 +02:00
Yorik van Havre
6b1c433807
FEM: Results can now be double-clicked to show their task panel
2016-04-17 14:01:10 -03:00
wmayer
c5876fe7ca
+ fix whitespace & cmake warning
2016-04-17 11:38:56 +02:00
mandeeps708
8059563681
adds new material: Aluminium-6061-T6
2016-04-17 05:02:38 +05:30
mandeeps708
043502d073
Materials readme
2016-04-17 04:26:23 +05:30
wmayer
cba54c51ad
+ disconnect boost signals on destruction
2016-04-16 15:38:04 +02:00
wmayer
099ceebec1
+ issue #0002504 : Crash in pad function after undoing some operations
2016-04-16 15:16:00 +02:00
wmayer
46d340530f
+ fix various warnings with VC12
2016-04-16 12:02:58 +02:00
Mateusz Skowroński
b5519922d8
QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
...
This change is Qt4/Qt5 neutral.
2016-04-15 11:55:12 +02:00
Mateusz Skowroński
3df6064e85
QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
...
This change is Qt4/Qt5 neutral.
2016-04-15 11:54:59 +02:00
Mateusz Skowroński
e797054304
Fix files encoding. Go from ISO8859-1 to UTF-8.
2016-04-15 10:22:08 +02:00
wmayer
88e987dd86
+ translatable tab name of Start page
2016-04-13 19:05:31 +02:00
wmayer
08df5cbc59
+ remove 'using namespace Part' inside header file
2016-04-13 16:20:31 +02:00
wmayer
df48d1668b
+ remove 'using namespace Attacher' inside header file
2016-04-13 15:57:49 +02:00
wmayer
0a7ab4e1ff
+ add missing license text
2016-04-13 15:20:41 +02:00
wmayer
5de9696365
+ fix warnings:
...
-Wsign-compare, -Wunused-variable, -Wunused-function, -Wswitch
+ fix Qt issues
2016-04-13 14:26:38 +02:00
wmayer
e3b609b309
+ consistent naming
2016-04-13 11:37:09 +02:00
Stefan Tröger
483e64f368
remove unneeded orig files
2016-04-12 19:10:19 +02:00
Stefan Tröger
4119bb7adc
Fix compilation issue in Attacher code
2016-04-12 18:12:24 +02:00
Stefan Tröger
cd2da9fe6d
Fix test cases by adopting to new behavior
...
Pad now does not have a Sketch property anymore but a profile property. Also due to changes in PropertyLinkSubList it ispossible that PropertyLinks get an empty list assigned, this must be supportet now.
2016-04-12 18:12:24 +02:00
Stefan Tröger
788035b80e
Part: Recalculate tessellation when requested
2016-04-12 18:12:23 +02:00
Stefan Tröger
5f45bcbc94
PartDesign: Fix body command
2016-04-12 18:12:23 +02:00
Stefan Tröger
8b0d53358a
PartDesign: Adopt primitive preview
...
The preview was developed when the "one feature only" visibility rule was not yet introduced. This commit maks it work again.
2016-04-12 18:12:23 +02:00
Stefan Tröger
6bf31e841e
PartDesign: Fix attachment external references
2016-04-12 18:12:23 +02:00
Stefan Tröger
306611e8f8
Fix rebase error
2016-04-12 18:12:23 +02:00
Stefan Tröger
036d0691dd
Fix Windows build errors
2016-04-12 18:12:23 +02:00
Stefan Tröger
e9b9d285ac
PartDesign: Unify datum and shapebuilder visuals
2016-04-12 18:12:23 +02:00
Stefan Tröger
666a5968cb
Override mode works with non-toplevel viewprovider
...
And adopt the part design body to handle the override mode correctly
2016-04-12 18:12:23 +02:00
Stefan Tröger
048c374080
PartDesign: body is responsible for visuals
...
-Hide all visual properties of features when they are part of a body
-Propagate all body visual changes to features
-Separate display mode from body mode to enable setting display mode for both "tip" and "through" modes
-Use default visuals for body shape and only make "through" a new display mask mode for the children
2016-04-12 18:12:23 +02:00
Stefan Tröger
03b08a311c
Fix sketch positioning with part and body
2016-04-12 18:12:23 +02:00
Stefan Tröger
d7e52f11a7
PartDesign: Fix context menus
2016-04-12 18:12:23 +02:00
Stefan Tröger
64de3b64e1
PartDesign: prevent claiming features
2016-04-12 18:12:23 +02:00
Stefan Tröger
90debce159
Fix rebase error
2016-04-12 18:12:23 +02:00
Stefan Tröger
3b27def228
PartDesign: prevent crash on delete and add body
2016-04-12 18:12:23 +02:00
Stefan Tröger
e7d8a1a9a4
Remove ShapeBinder2D
...
As profile based features can work with faces and wires now ShapeBinder can do everything that needed ShapeBinder2D before.
2016-04-12 18:12:23 +02:00
Stefan Tröger
2b0e6883c3
Fix workflow manager crash on windows
2016-04-12 18:12:23 +02:00
Stefan Tröger
4ec7fe6303
PartDesign: Adopt pattern to face based features
2016-04-12 18:12:22 +02:00
Stefan Tröger
f712f5e4ac
PartDesign: Modeling features work with faces
...
-Rename Sketchbased to ProfileBased to show new behavior
-Adopt ProfileBased to make the relevant helper functions work with faces too
-Adopt features for unified use of helper functions
-Adopt commands to allow face selection
2016-04-12 18:12:22 +02:00
Stefan Tröger
7dea66872e
Datums not selectable during edit
2016-04-12 18:12:22 +02:00
Stefan Tröger
5002e8e430
Fix crash on aborted pattern external axis
2016-04-12 18:12:22 +02:00
Stefan Tröger
7d30833349
PartDesign: Adopt to new property status bits
2016-04-12 18:12:22 +02:00
Stefan Tröger
a6c8f38cf0
no body allowed as body base feature
2016-04-12 18:12:22 +02:00
Stefan Tröger
7cd20adc9a
ShapeBinder: fix Null shape on recompute for copy
2016-04-12 18:12:22 +02:00
Stefan Tröger
e88b042a26
Fix shape binder placement
...
-- hidden for user
-- inherited by linked part
2016-04-12 18:12:22 +02:00
Stefan Tröger
4164f8fc4c
Ensure only a single PartDesign feature is visible
2016-04-12 18:12:22 +02:00
Stefan Tröger
24bdc173f7
PartDesign mirror must work with base planes
2016-04-12 18:12:22 +02:00
Stefan Tröger
99ef8e756d
Fix transform feature crash on apply
...
-Redundant "reset edit" and command commit removed
-Redundant apply call removed
2016-04-12 18:12:22 +02:00
Stefan Tröger
16433939e1
Add missing files
2016-04-12 18:12:22 +02:00
Stefan Tröger
c0b2568091
fix reference selection of origin features
2016-04-12 18:12:22 +02:00
Stefan Tröger
4be81b01e4
Handle external references for revolution et all
...
The reference selection, used in multiple part design features, treated body external references not corectly.
2016-04-12 18:12:22 +02:00
Stefan Tröger
3792f38191
Fix shutdown crash with primitives in the document
...
and cleanup the header
2016-04-12 18:12:22 +02:00
Stefan Tröger
4d12023f17
Prevent dressup crash due to multi command commit
...
the same functionality is provided by upstream accept functions
2016-04-12 18:12:21 +02:00
Stefan Tröger
28965457aa
Active view may not be 3d viewer
...
When for example the spreadsheet is open and an recompute is issued, the active view is not the 3d viewer which leads to crash if used for scene graph calculations.
2016-04-12 18:12:21 +02:00
Alexander Golubev
d43525370c
PartDesignGui: small rework to sketch-based task parameters
...
This done mostly for thurther unification them with other task
parameters/dialogs.
2016-04-12 18:12:21 +02:00
Alexander Golubev
96486cc4ed
PartDesign/App: a small fix to offset constraint syntax for Pad and Pocket
2016-04-12 18:12:21 +02:00
Alexander Golubev
6b75141514
Suppress a couple more warnings
2016-04-12 18:12:21 +02:00
Alexander Golubev
0cfc0cd424
Fix warnings introduced in new PartDesign
...
Mostly unused wariables and compare of signed & unsigned
2016-04-12 18:12:21 +02:00
DeepSOIC
81015b3f44
Fix problems with unlimited external geometry
...
Caused by recent changes by abdullah, which assumes there is external
geometry only if sketch has support.
http://forum.freecadweb.org/viewtopic.php?f=3&t=12746&p=102087#p102087
2016-04-12 18:12:21 +02:00
Stefan Tröger
e675c43ddf
Simplify the feature pick dialog
...
less options are easier to grasp for the user
2016-04-12 18:12:21 +02:00
Stefan Tröger
005c3db946
fix sketch classification for other body
...
hasObject does search recursive only in groups, but a body is not a group. Hence for sketches within a body this will always return false. Annother logic must be used to detect sketches in bodies.
2016-04-12 18:12:21 +02:00
Stefan Tröger
80fe971b55
fix sketch selection in part design
...
validateSketch was faulty: as every sketch is valid (non is removed) it could happen that the returned number was >0 but the iterator firstValidSketch was NULL nontheless. The routine needed to be udated to make snese and the usage in prepareSketchbased together with it.
2016-04-12 18:12:21 +02:00
Stefan Tröger
76c8cb3b69
add only a single reference copy
2016-04-12 18:12:21 +02:00
Stefan Tröger
2ab25ea414
Fix incorrect ShapeBinder recalculation
2016-04-12 18:12:21 +02:00
Stefan Tröger
4ed0302404
Ensure correct sketch placement calculation
...
As bodies are movable now they need to be taken into account for calculating the sketch placement.
2016-04-12 18:12:21 +02:00
Stefan Tröger
ef2437bb5c
Fix sketch on face of other body or part
...
The shapebinder object reduces the number of faces to 1, hence the subshape to select is always Face1 and not the original face name
2016-04-12 18:12:21 +02:00
Stefan Tröger
e7a96ac26f
fix body booleans
2016-04-12 18:12:20 +02:00
Stefan Tröger
585e4cebb5
PartDesign/Gui: minor fix sWhatsThis of text
2016-04-12 18:12:20 +02:00
Stefan Tröger
2ff2d29f02
Fix crossreference handling
2016-04-12 18:12:20 +02:00
Stefan Tröger
83eedba043
crossreferences only with ctrl button and fix missing return value
2016-04-12 18:12:20 +02:00
DeepSOIC
e2f70e5e5b
Sketcher: when refusing to link external, print why (in statusbar)
2016-04-12 18:12:20 +02:00
DeepSOIC
3df305cc4e
Sketcher: allow referencing everything; add testing for circular references
2016-04-12 18:12:20 +02:00
Stefan Tröger
5725dd7721
handle independent copies more gracefully
2016-04-12 18:12:20 +02:00
Stefan Tröger
3bd09ea570
change point of reference feedback for datums
...
On datum creation it is better to ask the user on OK than on tool activation, as he might hit cancel (and then the created references are till there) or even more important, he could add additional external references within the dialog. The disadvantae is that if the user sets "cross reference" ge gets asked again every time he opens and leaves the dialog.
2016-04-12 18:12:20 +02:00
Alexander Golubev
1f3d2df4d5
PartDesign/Body: add ability to store facebinders inside a body
2016-04-12 18:12:20 +02:00
Stefan Tröger
d5e035741a
ask user if he creates inter part/body references
2016-04-12 18:12:20 +02:00
Stefan Tröger
655bf961be
add task for datum shape features
2016-04-12 18:12:19 +02:00
Stefan Tröger
34541dea2f
PartDesign/Plane: several enhancements to plane icon
2016-04-12 18:12:19 +02:00
Stefan Tröger
e58ae2b616
Setup ShapeBinder Viewprovider and command
2016-04-12 18:12:19 +02:00
Stefan Tröger
811ccc410c
PartDesign: Reorder datum commands
2016-04-12 18:12:19 +02:00
Stefan Tröger
9969aac671
fix dependent copy references
...
to make them work with sketches an additional Part2DObject reference needed to be created
2016-04-12 18:12:19 +02:00
Alexander Golubev
36fbf73011
PartDesign/TaskLoftParameters: Added UpdateView checkbox +cleanup
2016-04-12 18:12:19 +02:00
Alexander Golubev
efef23d8e2
PartDesign/Gui: prevent Task*PatternParameters not crash on non sketchBased features
2016-04-12 18:12:19 +02:00
Alexander Golubev
aa7d054d47
PartDesign/TaskLoftParameters: removed unused hidden widgets
2016-04-12 18:12:19 +02:00
Alexander Golubev
0ff24fd618
Part/Gui: remove ViewProviderPart::onDelete which handled unnecessary body housekeaping
...
Also do some headers cleanup
2016-04-12 18:12:19 +02:00
Alexander Golubev
ba57a843ad
PartDesign/ViewProviderBody: reduce number of recalculations in the body
2016-04-12 18:12:19 +02:00
Alexander Golubev
3be2f99b52
PartDesign/Gui: rework of ViewProviderDatumCS
2016-04-12 18:12:19 +02:00
Alexander Golubev
fa29bfa667
PartDesign/ViewProviderDatum: minor enhancements
...
- added defaultSize constant
- fixed typo in margin{g,}Factor function name
2016-04-12 18:12:19 +02:00
Alexander Golubev
d4c67c0366
GeoFeaturertDesign/Gui: Add recompute sizes and datums to the body vp
2016-04-12 18:12:19 +02:00
Alexander Golubev
bceec93a92
PartDesign/Gui: rework ViewProviderDatumPlane
2016-04-12 18:12:19 +02:00
Alexander Golubev
7ac1ab6a6d
PartDesign/Gui: make Datums use general material interface
...
- Make Datums colorable and transparent
- Change default datums color to yellow and transparency to 60%
- Rework Lines and Points datum view provider
- Add ViewProviderDatum::defaultBoundBox()
2016-04-12 18:12:19 +02:00
Alexander Golubev
118f1cec6a
PartDesign/App: cleanup datum's classes and headers
2016-04-12 18:12:19 +02:00
Alexander Golubev
04f3ae0605
PartDesign/CommandBody: a minor fix in MoveTip command
2016-04-12 18:12:19 +02:00
Alexander Golubev
26fb01b429
PartDesign/Gui: add origin sizing and rework datums sizing
2016-04-12 18:12:18 +02:00
Alexander Golubev
1a26f7551f
PartDesign: add Origin to the Body and unstrap the module from the Parts
2016-04-12 18:12:18 +02:00
Alexander Golubev
2c2d155ee9
OriginGroup: add new abstraction layer between the Part and the GeoFeatureGroup
2016-04-12 18:12:18 +02:00
Alexander Golubev
8bca27463e
Part/Attacher: remove a couple of no more valid asserts
2016-04-12 18:12:18 +02:00
Alexander Golubev
797d6d3a11
App/Origin: big refactoring
...
- Rebase App::Origin on App::DocumentObject
- Keep all control over the Origin structure inside the Origin and it's
ViewProvider
- Add OriginFeature class as common base for App::Plane and App::Line
- Rebase App::Plane and App::Line on top of newly created class and
move to the file.
- Change Origin's ViewProvider API associated with temporary display
- Lots of associated changes to files
- Several minor fixes
- Lots of new bugs
2016-04-12 18:12:18 +02:00
Alexander Golubev
c6797b6c29
Revert "part deletion handling"
...
This reverts commit 6ab2002021ac1df26ebe77f488f5cd94e1df0b26.
2016-04-12 18:12:17 +02:00
Alexander Golubev
76b4685b5f
Commented out a portion of code cosed a segfault
2016-04-12 18:12:17 +02:00
Alexander Golubev
5016054a8b
PartDesign/Body: move deletion of subobjects to view provider
2016-04-12 18:12:17 +02:00
Alexander Golubev
abc925b62e
PartDesign/Gui: Make partDesign's add sketch command Workflow-aware
2016-04-12 18:12:17 +02:00
Alexander Golubev
492f1d24a4
PartDesign/Gui: initial migration command implementation
2016-04-12 18:12:17 +02:00
Alexander Golubev
c4f094bba4
PartDesign/Gui: rename some fonctions in ReferenceSelection.cpp
...
e.g. getPythonStr -> buildLinkListPythonStr etc
2016-04-12 18:12:17 +02:00
Alexander Golubev
f9e67626ec
PartDesign/Body: remowe Part::Feature from isAllowed()
2016-04-12 18:12:17 +02:00
Alexander Golubev
c388a84424
PartDisign/WorkflowManager: initial implementation
2016-04-12 18:12:17 +02:00
Alexander Golubev
8a2d4289f6
PartDesign/FeaturePrimitive: suppress a -Woverloaded-virtual warning
2016-04-12 18:12:17 +02:00
Alexander Golubev
c782a11aab
PartDesign/Gui: Move various utility stuff from Workbench to a separate file
...
Also do some header cleanup.
2016-04-12 18:12:17 +02:00
Alexander Golubev
a5fcd5775e
PartDesign: update body management commands according to the changes in body paradigms
2016-04-12 18:12:16 +02:00
Alexander Golubev
8b62680fe7
Sketcher: minor enhance in sketch interaction with body
2016-04-12 18:12:16 +02:00
Alexander Golubev
bf94c3ebf7
PartDesign: fix negative Offset property in pad and pocket
2016-04-12 18:12:16 +02:00
Alexander Golubev
444986e88a
PartDesign/Gui: move body commands to a separate file
2016-04-12 18:12:16 +02:00
Alexander Golubev
8c5d514b18
PartDesign: Body rework - add BaseFeature property and make Tip always point to solid
2016-04-12 18:12:16 +02:00
Alexander Golubev
e3c00ce650
PartDesign/ViewProviderPad: removed a TODO
2016-04-12 18:12:16 +02:00
Alexander Golubev
1b1bd5f17e
PartDesign/Gui: make Transformed ViewProviders use common code with other
2016-04-12 18:12:16 +02:00
Alexander Golubev
9cba6c48ea
PartDesign/TaskMultiTransformParameters: fix a segfault
...
The segfault was caused by premature delete of object
TaskMultiTransformParameter::subFeature refered to.
Steps to reproduce:
1. Create a multitransform
2. Add a sub transfurmation to it
3. Press cancel
2016-04-12 18:12:16 +02:00
Alexander Golubev
113c10a2b7
PartDesign: make transform parameter dialogs use common base code with other dialogs
...
subj;
Make PasrtDesign::Transformed provide common for all features
classes interface getBaseObject() instead of specific getSupportObject ();
Refactor some TransformedParameters methods.
2016-04-12 18:12:16 +02:00
Alexander Golubev
e6a99ce96f
PartDesign/Workbench: fix a crash
2016-04-12 18:12:16 +02:00
Alexander Golubev
147aff0395
PartDesign/Feature: minor gramma fix
2016-04-12 18:12:16 +02:00
Alexander Golubev
da1fb99dc5
PartDesign/ViewProvider: minor enhancements
2016-04-12 18:12:16 +02:00
Alexander Golubev
e28aaf4592
PartDesign/TaskDressUpParameters: disable edit of dressup features with broken supports
...
Also remove unused headers and fix spacing.
A final fixup for issues addressed in:
cb05b01 PartDesign/TaskDressUpParameters: fix a crash when editing a broken object
2016-04-12 18:12:15 +02:00
Alexander Golubev
1876c76f3c
PartDesign/Gui: make DressUp view providers use the common code.
2016-04-12 18:12:15 +02:00
Alexander Golubev
55f3f52f54
PartDesign/Feature: add an optional parameter to getBaseObject() to prevent it from throwing exceptions
...
In most cases getBaseObject() is used with an exception handler which
only detects if it failed but not the reason. This modification allows
to use it without excess exception handlers.
Also add the same parameter to SketchBased::getVerifiedSketch().
2016-04-12 18:12:15 +02:00
Alexander Golubev
013381ccb6
PartDesign/Gui: share code for revolution and groove view providers
2016-04-12 18:12:15 +02:00
Alexander Golubev
5ee0cea467
PartDesign/Gui: start to unify view providers code
...
- Moved all common code for part design features view providers to a base
class.
- Move shared code for Sketch based features to newly created
ViewProviderSketchBased class
- Add ViewProviderSketchBased to initialization
- Make Pad and Pocket ViewProviders to use the shared code
- Minor fixes to TaskFeatureParameters and some derived classes
2016-04-12 18:12:15 +02:00
Alexander Golubev
6266d514d3
PartDesign/ViewProviderDatum: minor fix in a comment
2016-04-12 18:12:15 +02:00
Alexander Golubev
5f6f16e757
PartDesign/FeatureDressUp: implement a proper getBaseObject()
...
The function getBaseShape() is removed and replaced with getBaseObject()
because it doesn't make a lot of scense: getBaseShape() masked the
base's class implementation (rather than redefine a virtual) which was
better in words of code reuse.
Also BaseFeature and Base properties relations are defined now in a
little another way.
2016-04-12 18:12:15 +02:00
Alexander Golubev
9feff04aad
PartDesign/TaskDressUpParameters: fix a crash when editing a broken object
2016-04-12 18:12:15 +02:00
Alexander Golubev
0ca40ed48b
PartDesign/Task{Pad,Pocket}Parameters: massive refactoring
...
Give a massive refactoring to Task dialogs for pocket and pad.
This commit features:
* Make Task dialogs for pocket and pad look nice in side-by side diff and
cross import features missing in each other.
* As a result it fixes several minor bugs.
* Gives a rework to the UpdateUI function.
* This one also fixes offset option support and migrates it to use unit
framework.
2016-04-12 18:12:15 +02:00
Alexander Golubev
143760c8d3
PartDesign/ViewProviderPad: removed unfinished reimplementation of doubleClick()
...
This one resulted in non proper reject of pad dialog. Because the
command transaction haven't started.
2016-04-12 18:12:15 +02:00
Alexander Golubev
11a71d46e3
PartDesignGui: move signal connections in several parameter dialogs after ui initialization
2016-04-12 18:12:15 +02:00
Alexander Golubev
f16829baee
PartDesignGui: Make DressUp and SketchSupport propertie dialogs use common accept() structure
2016-04-12 18:12:15 +02:00
Alexander Golubev
12742d94de
PartDesign/TaskThicknessParameters: fix copy-paste mistake in dialog
2016-04-12 18:12:15 +02:00
Alexander Golubev
9db8afd716
PartDesignGui: move shared code for all dressUp features into common place.
...
Also this allows the old workflow for thickness and draft features.
2016-04-12 18:12:15 +02:00
Alexander Golubev
b14d7c2e14
PartDesign: move common code for TaskDlg{SketcherBased,DressUp}Parameters into new base class
...
Added a new class: TaskDlgFeatureBased which currently contains common
code for TaskDlgSketcherBasedParameters::reject() as well as the same
methode for TaskDlgDressUpParameters.
It's likely that other Feature task dialogs will inherit this class too.
2016-04-12 18:12:15 +02:00
Alexander Golubev
0208a3667d
PartDesign/FeatureDressUp: make Base and BaseFeature properties track the same feature
...
Also remove reseting of read-only flag on placement properties on
removing Base feature: it doesn't make any scense for dressup features.
2016-04-12 18:12:15 +02:00
Alexander Golubev
98a0e30582
PartDesign: fix a crash in the loft
2016-04-12 18:12:14 +02:00
Alexander Golubev
86db4c3215
PartDesign/Gui: enable sketches on datum planes inside bodies
2016-04-12 18:12:14 +02:00
Alexander Golubev
e586f55fb2
PartDesign/Gui: more old workflow support
...
* remove an error message if adding a sketchbased feature without a body
* add champfer or fillet old workflow support
Also rework finishFeature() so at least champfer and fillet may be
inserted into any place of any apropriate body(not only the active one) of the body.
2016-04-12 18:12:14 +02:00
Alexander Golubev
a6ebfa496f
PartDesign/Gui/TaskDlgSketchBasedParameters: emhance object hiding/unhiding on reject()
2016-04-12 18:12:14 +02:00
Alexander Golubev
4590305921
PartDesign/Gui: enhance the TaskFeaturePick with new cotegory of sketches: notInBody
...
Also add option tp show already used sketches and fix some spacing.
2016-04-12 18:12:14 +02:00
Alexander Golubev
ffc6cc2f23
Share code for finding a body containing a feature
2016-04-12 18:12:14 +02:00
DeepSOIC
16e4ce20f0
PartDesign workflow without part/body
...
PartDesign: make datum features work outside of body/part
PartDesign old workflow: remove a few messageboxes about no part
PartDesign: old workflow: multitransform without body
Still has visibility issues, but generally works.
2016-04-12 18:12:14 +02:00
DeepSOIC
c3da141020
Revolution: fix failure on sketch edges used as an axis
...
PartDesign Revolution used to fail, when an edge of a sketch was
selected as an axis of revolution. This is fixed by this commit.
Also, made it support selecting an edge from the sketch the revolution
itself is made from.
2016-04-12 18:12:14 +02:00
DeepSOIC
125dda4d70
PartDesign: Make groove work via Revolution ui
...
Purpose: remove duplicate code.
Remaining: wrong title and icon in task dialog.
2016-04-12 18:12:14 +02:00
DeepSOIC
9776d30b87
PartDesign: rework axis and plane comboboxes and make it work without part.
...
Rework combobox filling and link hadling for revolution and transformed features, in order to get rid of hard-coded item indexes and make the lists more dynamic.
2016-04-12 18:12:14 +02:00
DeepSOIC
2625233dff
PartDesign: disable migration
...
Temporary. Later, a way to manually invoke it should be made.
2016-04-12 18:12:14 +02:00
Alexander Golubev
f509e1b0f1
remove unneeded sketcher tools from part design
...
Previously similar patch was commited by Stefan Tröger <stefantroeger@gmx.net> but lost during rebase.
2016-04-12 18:12:14 +02:00
Stefan Tröger
a8bd2f6f7f
prevent part design features from accidently cross referencing
2016-04-12 18:12:14 +02:00
Stefan Tröger
318c65eafd
fix independent copy and cross reference
2016-04-12 18:12:14 +02:00
Stefan Tröger
a35c231d2a
first take on enhanced feature pick task
2016-04-12 18:12:14 +02:00
Stefan Tröger
45aca9fb55
fix loft top face location
2016-04-12 18:12:13 +02:00
Stefan Tröger
986623f462
fix loft tool naming
2016-04-12 18:12:13 +02:00
Stefan Tröger
d2f4410c1e
fix datum crash when origin is selected
2016-04-12 18:12:13 +02:00
Stefan Tröger
e876d9aa81
fix loft result orientation
2016-04-12 18:12:13 +02:00
Stefan Tröger
ef11b75c79
fix pipe tool result orientation
2016-04-12 18:12:13 +02:00
Stefan Tröger
45861b4f92
remove linear and S-shape scaling from pipe
...
They worked and are nice feature, but the handling with properties must be worked out better. To avoid any incompatibility due to property changes the functionality is removed now.
2016-04-12 18:12:13 +02:00
Stefan Tröger
d980952d31
fix body and part tool texts
2016-04-12 18:12:13 +02:00
Stefan Tröger
7d759a5793
delete features when deleting body
2016-04-12 18:12:13 +02:00
Stefan Tröger
ecfe545b3b
add part tool to task dialog for no selection
2016-04-12 18:12:13 +02:00
Stefan Tröger
0606e767cd
fix pipe task dialog icon
2016-04-12 18:12:13 +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
DeepSOIC
72c70bcc50
Datum UI: fixes
...
* fix messagebox not popping when clicking OK but status is error
* accept preselection
* unify code for all datum commands
* edit selected datum if type matches, instead of creating new one
2016-04-12 18:12:13 +02:00
DeepSOIC
a48f9a682c
Sketcher: use Selection's getAsPropertyLinkSubList
2016-04-12 18:12:13 +02:00
DeepSOIC
03e354f7ac
PartDesign: fix porting procedure...
...
...that caused an assert in attacher that back/front subshape strings
were used for attachment to App::Plane.
2016-04-12 18:12:13 +02:00
DeepSOIC
4e57b1a2ec
Datum UI: fixes
...
* fix highlighting of reference buttons when active
* fix selection of whole objects
* fix some other logic
2016-04-12 18:12:13 +02:00
Stefan Tröger
de0768af80
fix crash on datum point preselect
...
It is unclear why the coordinates are NULL. This fix prevents the crash but does not fix the reason why this unnormality occurs.
2016-04-12 18:12:13 +02:00
Stefan Tröger
7deb6393cc
no temporaries at by reference parameter
2016-04-12 18:12:12 +02:00
Stefan Tröger
4e295c03ed
fix crash in boolean op if no base feature exists
2016-04-12 18:12:12 +02:00
DeepSOIC
98717f010a
Attacher: proximity modes
...
The modes that base on distToShape:
* a line that connects the closest points,
* the actual points
2016-04-12 18:12:12 +02:00
DeepSOIC
a3d9907e8c
PartDesign: adapt Datum UI to work using Attacher
...
* adapt
* introduce mode selection
* kill selection gate to allow selecting whole objects (selection gate
should be reintroduced to disallow references between parts, no
restrictions is a temporary state)
* prevent auto-switchover to next ref after an explicit push of a button
* fix highlighting of buttons when selecting corresponding reference
* allow creation of a feature, even if no mode fits references. With a
warning.
2016-04-12 18:12:12 +02:00
DeepSOIC
a5d38c9a99
PartDesign: patch old partdesign porting for changes in Datums
2016-04-12 18:12:12 +02:00
DeepSOIC
9e440b955c
PartDesign: transfer Datums to become AttachableObjects
...
Crude and quick, needs cleanup.
2016-04-12 18:12:12 +02:00
DeepSOIC
40592e6055
Attacher: line and point AttachEngines. Other changes.
...
* propose attachment modes
* refactor setUp and Copy
* split off postprocessing from 3D to reuse in 1D and 0D calculations
* AttachableObject: fix error printout in onChange
* AttachableObject: no more defaults to Attacher3D
* implementation of lines and points attachment (some of the proposed modes).
* refactor getShapeType, add getShapeType(obj, sub); add a flag to eRefType enum, indicating that referenced thing is a whole object that has placement.
* change readLinks to be static, and obtain shape types in the process.
* test mode enums lengths equality
* extend ObjectXY to work on conics.
* Fix upside-down sketches attached as TangentPlane on most shapes.
* Fix crash when a shape of unlisted type is in the links.
* fix attaching to datum lines go crazy because of infinities.
* abs->fabs
* support for App::Line
* Add namespace qualifiers to TYPESYSTEM_SOURCE-like stuff
2016-04-12 18:12:12 +02:00
DeepSOIC
4800957858
Attacher: change Part2DObject's MapMode default to mmDeactivated, and set mode to mmFlatFace only when reading files of old format.
...
PartDesign, Sketcher: set mapping mode when setting support
Mapping mode mmFlatFace is no longer default, so an explicit assignment
is required.
2016-04-12 18:12:12 +02:00
DeepSOIC
fa441a9623
PropertyLinkSubList, Sketcher: move legacy Support readout from PropertyContainer to Part2DObject
2016-04-12 18:12:12 +02:00
DeepSOIC
ad01411efc
Attacher: fix crash of suggestor on compounds
2016-04-12 18:12:12 +02:00
DeepSOIC
34784b2d29
PartDesign: Fix revolution
...
It failed to close task if starting a body.
2016-04-12 18:12:12 +02:00
DeepSOIC
f688546106
InvoluteGear: positionBySupport
2016-04-12 18:12:12 +02:00
DeepSOIC
acac286cd0
Sketch: expose positionBySupport python func
2016-04-12 18:12:12 +02:00
DeepSOIC
4cc9b32e32
PartDesign: accomodating to sketch's multisupport
...
* FeatureSketchBased getSupportFace check for mapping mode
* Fixes failure to place sketches on DatumPlanes
2016-04-12 18:12:12 +02:00
DeepSOIC
2a390660c8
Sketcher: minimalistic UI for new attachment engine
2016-04-12 18:12:12 +02:00
DeepSOIC
42ecc24ec5
Sketcher: new attachment engine
2016-04-12 18:12:12 +02:00
DeepSOIC
061747f367
Sketcher: change Support from PropertyLinkSub to PropertyLinkSubList
...
Note: may fail to build after this commit...
2016-04-12 18:12:12 +02:00
DeepSOIC
eccff10d90
PartDesign: fix refuse to pad
...
When something was depending on a sketch (another sketch, for example),
padding (revolving, pocketing, etc) it was impossible. This is fixed.
Also, padding or revolving a single sketch twice was allowed (with a
warning msg displayed).
2016-04-12 18:12:11 +02:00
Alexander Golubev
445c26f658
PartDesign/Body: make insert/removeFeature treat NULL in a less special way
2016-04-12 18:12:11 +02:00
Alexander Golubev
bf58a7be2a
PartDesign: make MoveFeatureInTree command use new insert functions
2016-04-12 18:12:11 +02:00
Alexander Golubev
9c113357c5
PartDesign: add migrating sketch support to MoveFeature command
2016-04-12 18:12:11 +02:00
Alexander Golubev
03d3f45277
PartDesign/Workbench: make a message more translation-frendly
2016-04-12 18:12:11 +02:00
Alexander Golubev
ad461fc472
PartDesign: fix spacing in several files
2016-04-12 18:12:11 +02:00
Alexander Golubev
7e1a76eb37
PartDesign/Workbench: move fix of sketch support into separate function
...
Outside PartDesign sketches can have no support plane for them. But
PartDesign doesn't allow that.
Move the code for migration of "free" sketches of planes
into a separate fuction so it may be reused.
2016-04-12 18:12:11 +02:00
Alexander Golubev
7c2413b0aa
PartDesign/Body: add methodes to insert features into specific place
...
Add a Body::insertFeature() methodes as well as python API for it.
2016-04-12 18:12:11 +02:00
DeepSOIC
ec2bbc4c34
Loft: fix build with MSVC2013
2016-04-12 18:12:11 +02:00
DeepSOIC
4b48362ec6
PartDesign: refactor positionBySketch
...
Rename it to positionByPrevious. Rewrite.
Rewrite SketchBased::transformPlacement.
2016-04-12 18:12:11 +02:00
DeepSOIC
03be8e1bba
PartDesign: tidy up sketch support and base feature confusion
...
Not complete, transformPlacement and positionBySketch are pending...
2016-04-12 18:12:11 +02:00
Alexander Golubev
b67c8bd34d
PartDesign/FeatureDraft: fix a wronly placed NOT
2016-04-12 18:12:11 +02:00
Alexander Golubev
b9f4e10fa5
PartDesign: fix a couple of crashes
...
The first crash was reported here:
http://forum.freecadweb.org/viewtopic.php?f=20&t=11205&start=50#p91052
The second one accures then moving a feature from a body without solid
features.
2016-04-12 18:12:11 +02:00
Stefan Tröger
08e4151ea1
make hole feature work again
2016-04-12 18:12:11 +02:00
Stefan Tröger
7f80e711f6
better active part and document tip handling
2016-04-12 18:12:10 +02:00
Stefan Tröger
d435e15a97
make part design loft functional
2016-04-12 18:12:10 +02:00
Stefan Tröger
987880fffa
add loft viewprovider
2016-04-12 18:12:10 +02:00
Stefan Tröger
c82e4117e9
add feature loft
2016-04-12 18:12:10 +02:00
Alexander Golubev
f4a5bf6acd
PartDesign: remove Body::isFeature() because it's the same as BodyBase::hasFeature()
2016-04-12 18:12:10 +02:00
DeepSOIC
36fe5994b9
Revolution: fix crash when selecting stuff during task
2016-04-12 18:12:10 +02:00
Danny Lepage
8aecb00a8d
Fix Debug Assert in CmdPartDesignDuplicateSelection::activated
...
Under Windows, "Edit/Duplicate selected object" raised a
Debug Assertion Failed "Expression: sequence not ordered".
2016-04-12 18:12:10 +02:00
Danny Lepage
63bdbe5561
Fix Boolean operation tooltip text.
...
As reported by triplus
2016-04-12 18:12:10 +02:00
DeepSOIC
578f038cf9
Fix programming error in DatumCS
2016-04-12 18:12:10 +02:00
DeepSOIC
7653d2d48f
Fix build on Windows
2016-04-12 18:12:10 +02:00
Stefan Tröger
ab2cc10ac7
add missing return value
2016-04-12 18:12:09 +02:00
Stefan Tröger
c0e850cd0d
remove import dependency on assembly workbench
2016-04-12 18:12:09 +02:00
Stefan Tröger
84cd1588d0
Update pipe icon and add it to the taskwatcher
2016-04-12 18:12:09 +02:00
Stefan Tröger
20d551bc88
fix part and body search for invalid objects
2016-04-12 18:12:09 +02:00
Stefan Tröger
3aae4ce011
respect part design placement rules in pipe
2016-04-12 18:12:09 +02:00
Stefan Tröger
620b2bb5d7
simple bugfixes
2016-04-12 18:12:09 +02:00
Stefan Tröger
68ee7f4f27
add two scaling modes
2016-04-12 18:12:09 +02:00
Stefan Tröger
df386cc3c1
make multisection work
2016-04-12 18:12:09 +02:00
Stefan Tröger
d796ca2bf9
better pipe view handling
2016-04-12 18:12:09 +02:00
Stefan Tröger
a727a9b93d
prevent inverted pipes and correct camera adjustment
2016-04-12 18:12:09 +02:00
Stefan Tröger
342ba89afd
generalize preview mode
2016-04-12 18:12:09 +02:00
Stefan Tröger
68d172687b
implement faster pipes with inner wires
2016-04-12 18:12:09 +02:00
Stefan Tröger
0db83e816a
allow sketches with inner wires as pipe profiles
2016-04-12 18:12:09 +02:00
Stefan Tröger
9c4e1070eb
add options for pipe tool
2016-04-12 18:12:09 +02:00
Stefan Tröger
e7803eca61
add basic part design pipe infrastructure
2016-04-12 18:12:09 +02:00
Stefan Tröger
54646ef5bd
fix wrong torus addition
2016-04-12 18:12:08 +02:00
Stefan Tröger
a8f27937de
fix sketch editing within transformed parts
2016-04-12 18:12:08 +02:00
Stefan Tröger
e7284ecde8
fix crash on cancel primitive
2016-04-12 18:12:08 +02:00
Stefan Tröger
6347fe8c86
make origin work correct with multiple parts
2016-04-12 18:12:08 +02:00
Stefan Tröger
ec68192fcf
fix primitive following cs in edit mode and add python console output when closing the task
2016-04-12 18:12:08 +02:00
Stefan Tröger
a19eaf201e
add command for adding a new part
...
note that the icon is a placeholder as currently parts have a system icon which can not be set for commands
2016-04-12 18:12:08 +02:00
Stefan Tröger
d8a0e398a9
make origin lines usable in groove
2016-04-12 18:12:08 +02:00
Stefan Tröger
ec125cf9f2
make origin lines usable in revolution
2016-04-12 18:12:08 +02:00
Stefan Tröger
c5ae4530ab
add primitive preview visualization
2016-04-12 18:12:08 +02:00
Stefan Tröger
0a82185b66
add more point possibilities for cs references
2016-04-12 18:12:08 +02:00
Stefan Tröger
4087ffaef7
make datum feedback more prominent
2016-04-12 18:12:08 +02:00
Stefan Tröger
d3a7e9a928
fix selection error on datum exception
...
and add user feedback for failed selections
2016-04-12 18:12:08 +02:00
Stefan Tröger
7cb6606dc2
add remaining coordinate system selections
2016-04-12 18:12:08 +02:00
Stefan Tröger
96584f776a
viewprovider for coordinate system update
2016-04-12 18:12:08 +02:00
Stefan Tröger
42264b43ca
add a few coordinate system reference systems
2016-04-12 18:12:08 +02:00
Stefan Tröger
c3f35d9f05
add part design thickness
2016-04-12 18:12:08 +02:00
Stefan Tröger
7971bdbb8e
delete primitive if initial task is canceled
2016-04-12 18:12:07 +02:00
Stefan Tröger
fc1e8b8d17
allow to add faces to fillet and chamfer
2016-04-12 18:12:07 +02:00
Stefan Tröger
329064d671
don't create unneeded second body if part is created
2016-04-12 18:12:07 +02:00
Stefan Tröger
49973895f9
fix primitive offset setting issues
2016-04-12 18:12:07 +02:00
Stefan Tröger
6067c64060
allow subtractive primitive only if base available
2016-04-12 18:12:07 +02:00
Stefan Tröger
49eb5467f7
add gui for remaining primitives
2016-04-12 18:12:07 +02:00
Stefan Tröger
3be4939bcc
add remaining primitive features
2016-04-12 18:12:07 +02:00
blobfish
c61718c63b
PartDesign: Gui: build error. couldn't find ui generated file in part build directory.
2016-04-12 18:12:07 +02:00
Stefan Tröger
fec86abc09
visualize the primitive add/sub shape in edit
2016-04-12 18:12:07 +02:00
Stefan Tröger
1f180a11da
make primitive task box work
2016-04-12 18:12:07 +02:00
Stefan Tröger
7654659c18
add primitive widget to task dialog
2016-04-12 18:12:07 +02:00
Stefan Tröger
296339f980
allow shapes as coordinate system references
2016-04-12 18:12:07 +02:00
Stefan Tröger
a7396dcb74
adopt code to new getBody parameter
2016-04-12 18:12:07 +02:00
Stefan Tröger
0385734339
primitive bug fixes, add cylinder and sphere
2016-04-12 18:12:07 +02:00
Stefan Tröger
8fdde38e75
add coordinate system datum
2016-04-12 18:12:07 +02:00
Stefan Tröger
d923bebccc
make transform features work with non-sketch based features
2016-04-12 18:12:07 +02:00
Stefan Tröger
cf83242f5b
fix basic additive box
2016-04-12 18:12:07 +02:00
DeepSOIC
31e4fd8994
Sketcher: fix free-standing sketches
...
See forum thread, Sketch support == NULL
http://forum.freecadweb.org/viewtopic.php?f=20&t=10942
2016-04-12 18:12:07 +02:00
DeepSOIC
439f392e88
Fix crash when adding datum and there's no active body
...
Plus fix double messageboxes about the lack of the body,
2016-04-12 18:12:07 +02:00
DeepSOIC
fe59e5286e
assert before crashing
2016-04-12 18:12:07 +02:00
DeepSOIC
83777a9610
Fix revolution and groove that mistakenly made a pocket.
2016-04-12 18:12:06 +02:00
DeepSOIC
f31aed1c40
Sketcher: Fix duplicate external avoidance false positives
...
Attempting to link to Edge1 of one object failed when there was already
an Edge1 linked from another object.
2016-04-12 18:12:06 +02:00
DeepSOIC
05b9dd60e3
fix build with MSVC11 aka 2012
2016-04-12 18:12:06 +02:00