Commit Graph

12094 Commits

Author SHA1 Message Date
wmayer
be6b8dcd40 create shape of sketch on project load in case it has been saved without a recompute beforehand 2017-09-12 15:55:35 +02:00
wmayer
612fbd4873 do some security checks to avoid accessing invalid data 2017-09-12 15:21:07 +02:00
Zheng, Lei
a2628f95d8 OriginGroupExtension: fix wrong static_cast 2017-09-12 13:51:47 +02:00
wmayer
98bf3bdb4a don't reverse orientation after converting mesh to shape 2017-09-12 07:59:31 +02:00
wmayer
da6976c2f4 add example code to selection classes 2017-09-11 19:13:48 +02:00
Bernd Hahnebach
656239948d FEM: py3, set prints in brackets 2017-09-11 10:21:01 +02:00
Bernd Hahnebach
d272c581e9 FEM: unit test, make it simpler to add new directories to the python module import test and add some comments 2017-09-11 10:21:01 +02:00
DeepSOIC
e70a1678f8 fix warning 2017-09-10 18:32:06 +02:00
DeepSOIC
0f92c3e559 Part: Attacher3D: new modes - align axes
New attachment modes:
"Align O-Z-X"
"Align O-Z-Y"
"Align O-X-Y"
"Align O-X-Z"
"Align O-Y-Z"
"Align O-Y-X"
They allow to attach a sketch by picking origin point and sketch axes
directions.
2017-09-10 18:31:54 +02:00
DeepSOIC
96f3f0fa26 Base: new Rotation constructor - on vectors
The new constructor accepts wanted directions of x,y,z axes of rotated
frame, and a priority string that affects how the vectors are made
perpendicular to each other.

Example - construct placement for sketch on XZ plane:

v = App.Vector
App.Rotation(v(1,0,0),v(0,0,1),v())
2017-09-10 18:31:40 +02:00
DeepSOIC
f8feb18a07 Part: Attacher1D: new attachment mode "Normal to face"
addresses #3175
https://freecadweb.org/tracker/view.php?id=3175

Also, renames Datum Line's "Normal" attachment mode to "Normal to edge"
in Gui, for the name to be specific.
2017-09-10 18:31:25 +02:00
DeepSOIC
576294d30f Part: Attacher: fix normal-to-path vertex usage, #3175
Modes affected:
* NormalToEdge ("Z tangent to edge", "Normal to edge"),
* Tangent

In these attachment modes, if vertex is linked first, the origin was
supposed to be placed on the vertex, but it was placed on the edge
instead, due to a bug. This commit fixes the bug.

Projects will be broken, which use above mentioned attachment modes, and
link Vertex as first reference, and the vertex does not lie on the edge.
To repair a project, edit the corresponding attachments, and swap the
order of references.
2017-09-10 18:31:11 +02:00
wmayer
155c0007e4 add security check for data validation in FEM fluid boundary panel 2017-09-10 17:52:11 +02:00
qingfengxia
05b19019ac FEM: bugfix for Console print std::string which needs c_str() conversion 2017-09-10 17:09:44 +02:00
qingfengxia
3990115f6e FEM: enable thermal and turbulence boundary setting UI 2017-09-10 17:09:19 +02:00
qingfengxia
f9c1884595 FEM: enable edge selection for FemConstraintFluidBoundary of 2D case 2017-09-10 17:09:00 +02:00
wmayer
d11267ff1e load/save setting in techdraw panel 2017-09-10 17:08:23 +02:00
wmayer
c810508119 fix path to resource file in UI forms 2017-09-10 16:24:53 +02:00
WandererFan
b9f5de85b2 Handle Qt5 change from QString::sprintf to asprintf 2017-09-10 15:26:16 +02:00
WandererFan
d15cd94f19 Ensure DrawView picks up DrawPage Scale at creation 2017-09-10 15:25:58 +02:00
WandererFan
dfe174aec5 Use system Decimals, alternate or custom for Dimensions
- Also make Dimension arrowhead size adjustable
2017-09-10 15:25:37 +02:00
WandererFan
833bd66a18 Fix page alignment when change to different Template 2017-09-10 15:25:22 +02:00
WandererFan
ab28ef7f62 Prevent crash when Source(s) have no Shape 2017-09-10 15:25:05 +02:00
WandererFan
485321f8ea Add requestPaint formerly in DrawView::execute 2017-09-10 15:24:50 +02:00
WandererFan
3e21b97867 Fix handling of Scale change in DrawViewSymbol classes 2017-09-10 15:24:30 +02:00
WandererFan
9e6248acc9 Add dumpSymbol method to DrawViewSymbol based classes
- this is mainly for debugging output from Arch/Draft
2017-09-10 15:24:14 +02:00
WandererFan
9379574016 Add preference for Template edit dot size 2017-09-10 15:24:00 +02:00
WandererFan
1722d1cd7d Include osifont in TechDraw
- also use PropertyFont instead of PropertyString
2017-09-10 15:23:46 +02:00
WandererFan
781338c347 Add RedrawPage command 2017-09-10 15:23:23 +02:00
WandererFan
b68b7badca Fix #2967 Allow fcstd to open without drawing TechDraw::DrawPage 2017-09-10 15:23:04 +02:00
WandererFan
d27b8387e8 Eliminate superfluous DPG executes 2017-09-10 15:22:49 +02:00
WandererFan
137930c654 Add Page level redraw signal 2017-09-10 15:22:34 +02:00
WandererFan
e8f2c68b5c Allow DrawPage updates to be suspended 2017-09-10 15:21:54 +02:00
Itai Nahshon
b9292683ae PathJobGui - use correct unit to show feedrates in the tool tab. 2017-09-10 15:05:37 +02:00
Markus Lampert
ce61fac68b Added buttons to use Z level of current selection for start or final depth. 2017-09-10 14:42:30 +02:00
Peter Lama
756ed3381e Fix Shape Binder crash when nothing selected first
Partially resolves issue #2517
2017-09-10 14:08:39 +02:00
wmayer
832e18689b check for null shapes before performing boolean operation 2017-09-10 12:41:46 +02:00
wmayer
4e413800ee in repr() of DocumentObjectPy return the full class name 2017-09-10 12:41:14 +02:00
wmayer
dcd7da480a support of loading old projects with shape binder or PartDesign boolean 2017-09-09 22:47:28 +02:00
wmayer
f92ea66903 copy check for disabled or nested recomputes from old implementation of recompute() 2017-09-09 19:11:28 +02:00
Pablo Gil
a1d1a4cb4b updating Body, Part and Assembly icons 2017-09-09 18:29:53 +02:00
wmayer
e260f9dabd improve whitespaces 2017-09-09 18:07:46 +02:00
Stefan Tröger
e3f560ef38 Prevent error messages when restoring a origin 2017-09-09 16:55:55 +02:00
Stefan Tröger
f83424d5e9 Remove unneeded debug print in test case 2017-09-09 16:55:55 +02:00
Stefan Tröger
283ab961b5 Ensure touched features, which override mustExecute(), are recomputed. 2017-09-09 16:55:55 +02:00
Stefan Tröger
71b7811495 Fix GeoFeatureGroup claimChildren in case some out-of-group item links to a child 2017-09-09 16:55:55 +02:00
Stefan Tröger
0439656133 Ensure that GeoFeatureGroup claims children when a parent of it is deleted. fixes #0003150 2017-09-09 16:55:55 +02:00
Stefan Tröger
0053e939e9 Ensure finding the correct parent GeoFeatureGroup 2017-09-09 16:55:55 +02:00
Stefan Tröger
9d4f1b754a Make sure all relevant links are found for object in GeoFeatureGroup. issue0003150 2017-09-09 16:55:55 +02:00
Stefan Tröger
946e470a6f Keep backlink consitent during undo/redo. issue 0003150 2017-09-09 16:55:55 +02:00