Commit Graph

3710 Commits

Author SHA1 Message Date
Sebastian Hoogen
850ca3ac54 trivial bugfix in Draft DXF export
wrong namespace for Part.OCCError
2015-03-11 21:35:30 +01:00
wmayer
9ba57683d5 + method to get Eigensystem of mesh data 2015-03-10 22:47:46 +01:00
wmayer
cc7c1d1f44 + fix assert failure in FemMesh 2015-03-10 12:44:22 +01:00
Yorik van Havre
0009e58291 Merged crowdin translations 2015-03-07 15:17:58 -03:00
Bernd Hahnebach
89a6e67e35 Fem: ContraintForce: units are no longer printed on widget 2015-03-06 17:03:35 +01:00
Bernd Hahnebach
4a8e1a58b0 Fem: Fix in CalculiX file if not supported shapes are used for constraints 2015-03-06 17:03:22 +01:00
Bernd Hahnebach
baba11610a FEM: add comments to CalculiX input file 2015-03-05 22:31:04 +01:00
Eivind Kvedalen
3743008cda - Self-reference bug
- Refactoring/clean-up of code
- Dependency tracking of aliased cells
- Various resolution errors
- Rewriting of ranges when columns/rows are inserted/removed
- References to aliases keep their units.
2015-03-04 22:18:20 +01:00
Yorik van Havre
21211aeff2 Draft: Fixed translation of snap bar 2015-02-28 16:45:04 -03:00
Stefan Tröger
d5ee7a6efe implement correct vertex normals
- use mesh vertices uv value to get correct normals from face
- remove unused normal and shading options for parts
2015-02-28 15:09:38 +01:00
wmayer
d29d62b4ab + fix linker error with MSVC 2012 2015-02-28 12:42:27 +01:00
wmayer
bebca4e54c Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-02-27 23:28:04 +01:00
wmayer
b24f25d874 + in Fem constraint force dialog handle empty Direction 2015-02-27 23:27:08 +01:00
Yorik van Havre
8d8eba6dac Updated ts files from source 2015-02-27 18:56:51 -03:00
Yorik van Havre
8d98921dd7 Updated translations from crowdin 2015-02-27 18:46:03 -03:00
Yorik van Havre
9e67696fd5 Material: Added missing units 2015-02-27 13:31:13 -03:00
wmayer
2a4d29d0ac + use undo/redo for Fem constraint force dialog 2015-02-27 11:21:05 +01:00
Bernd Hahnebach
d44d0fbda3 Fem Workaround for choosing material data 2015-02-26 23:26:11 +01:00
Bernd Hahnebach
fb908f6f82 make main material cards to work correctly with FemWB 2015-02-26 21:25:59 +01:00
Bernd Hahnebach
b42ea802b5 Fem make CalculiX Inputfile editable befor run CalculiX 2015-02-26 09:56:58 -03:00
Bernd Hahnebach
d5d6b08980 Standard CalculiX Material added 2015-02-26 09:56:58 -03:00
Sebastian Hoogen
75ced60a58 + fixes #0001966: edges in Shape2DView extend beyond endpoint 2015-02-25 18:45:40 -03:00
Yorik van Havre
67d303ae85 Arch: removed old debug message 2015-02-25 18:44:45 -03:00
wmayer
f69b38dcde + fix doc string of Part.makeLoft 2015-02-25 21:36:40 +01:00
Sebastian Hoogen
ed80eb6c35 enter rubberband after moved by dragIgnoredDistance
issue #1149
2015-02-24 23:51:11 +01:00
Bernd Hahnebach
a6dd8870ab Fix Fem Find Calculix binary (if installed) on Linux 2015-02-24 17:12:50 +01:00
Bernd Hahnebach
38eaf76dea Fix Fem DirectionVector of the ForceObject 2015-02-24 17:12:34 +01:00
Bernd Hahnebach
08a5a89847 Fix Fem we do not have initial stresses 2015-02-24 17:12:14 +01:00
Sebastian Hoogen
a77106a58f adapt importCSG to makeFace property and change in importDXF
in commit 06a689eff2
2015-02-24 16:36:25 +01:00
Yorik van Havre
627e32aa2c Arch: misc bugfixes in IFC export 2015-02-23 19:34:29 -03:00
wmayer
007f939731 + check for correct OCC version 2015-02-23 16:05:17 +01:00
Yorik van Havre
2fdb1aeeff Draft: do not show Draft Tray toolbar when importing only the Draft module 2015-02-22 21:29:34 -03:00
wmayer
b5b54c59f1 + fix for OCC 6.3 2015-02-22 18:41:18 +01:00
wmayer
153e988237 + make argument of multiFuse const reference 2015-02-21 12:48:12 +01:00
Sebastian Hoogen
c2ce8f5eba add TopoShape::multiFuse method
to fuse multiple shapes at once.
2015-02-21 12:35:21 +01:00
Sebastian Hoogen
acfafc0b2b Use multiple tool shapes for MultiFuse Feature
issue #1971
2015-02-21 12:35:20 +01:00
wmayer
312f63e43e + edit command for meshes to display components 2015-02-20 22:28:37 +01:00
wmayer
18f1cf7821 + fix issue with bad default value of natural direction 2015-02-20 14:40:03 +01:00
wmayer
22b63a7653 + fix ambiguous shortcuts 2015-02-18 13:07:42 +01:00
DeepSOIC
aeabffeed8 Sketcher: bugfix in updating constraints after external geometry delete 2015-02-17 12:27:32 +01:00
DeepSOIC
13406a4daf Sketch:Validation: swap endpoints for reversed + constraint orientation locking controls
Added buttons to port sketches to CCW-emulation Sketcher.

Bonus =) : Added constraint orientation lock/unlock buttons (affects
point-wise modes of tangent and perpendicular constraints so far)
2015-02-17 12:27:32 +01:00
DeepSOIC
0767cd35f8 Sketcher: fix reversed geometry and rotated arcs
Fixes a bug where an arc, ellipse, or arc-of-ellipse, being reversed in
XY plane, behaved badly in sketcher (see forum thread "Sketch: how to
handle reversed external arcs?"
http://forum.freecadweb.org/viewtopic.php?f=10&t=9130 ).
Also fixes a problem with rotated arcs (see forum thread "Rotating Arc
in Sketcher"
http://forum.freecadweb.org/viewtopic.php?f=22&t=9145#p74262 ).

This is done by adding an emulation flag to a few methods in
Part::GeomXXX, which makes the shape to pretend being non-reversed
(CCW). This causes endpoints of reversed arcs of circles lineked as
external geometry to swap, causing broken sketches sometimes.
2015-02-17 12:27:31 +01:00
Abdullah Tahiri
0b081876e5 Ellipse: External geometry rotated fix
This commit solves the problem that a ellipse appears rotated when added as external geometry, if the face having the
elliptical shape has a direction vector in the -z axis.

This solves the problem. However, the issue with CW and CCW shapes in the sketcher shall be further investigated in order
to arrive to a general acceptable solution.
2015-02-17 12:27:31 +01:00
Eivind Kvedalen
c3af4232a4 Spreadsheet: getProperty does not return 0 when property is not found, but throws an exception. Handle this instead. 2015-02-17 11:47:56 +01:00
Eivind Kvedalen
4ab13b9fea Spreadsheet: Remove empty set from documentObjectToCellMap. 2015-02-17 11:47:11 +01:00
Eivind Kvedalen
43e777c7e5 Spreadsheet: docDeps property was not properly maintained, resulting in spurious links to other objects. 2015-02-17 11:46:12 +01:00
Eivind Kvedalen
2621c22409 Spreadsheet: Don't return error message when custom attribute is not found. 2015-02-17 11:45:30 +01:00
Eivind Kvedalen
1b43ca109b Spreadsheet: Consistently use App::Document::Label as reference for document names when tracking dependencies. 2015-02-17 11:44:55 +01:00
Eivind Kvedalen
1f94a15869 Fixed crash when setting/resetting bold/italic/underline on empty cells. 2015-02-17 11:44:21 +01:00
Yorik van Havre
423e700e8a Arch: fixed support of 2D entities in IFC importer 2015-02-16 12:20:29 -02:00
Yorik van Havre
9b4b46f1d0 Arch: small fix in DAE importer 2015-02-15 23:41:46 -02:00
Yorik van Havre
0bb651da4d Updated translation files 2015-02-14 12:16:39 -02:00
Yorik van Havre
7bbdb0a333 Spreadsheet: Added translation file 2015-02-14 12:15:01 -02:00
Yorik van Havre
0b0f6cf215 Spreadsheet: Added back old python spreadsheet code for archiving purposes 2015-02-14 12:03:22 -02:00
wmayer
f54da66bd3 + remove unused variable 2015-02-13 22:13:38 +01:00
Eivind Kvedalen
d153fb2dbd + Fixed merge of cells to retain value in upper left cell+ Replaced std::map::at() with iterators and find. Removed some superfluous calls to std::map::find()
+ Visual Studio fixes
+ Fixed return values
+ Removed unused variables
2015-02-13 21:53:59 +01:00
Eivind Kvedalen
383ffa6e15 Initial implementation of Spreadsheet module (C++ version) by Eivind Kvedalen.
Various fixes for Windows by
Peter Lama <peterldev94@gmail.com>
Werner Mayer <wmayer@users.sourceforge.net>
2015-02-13 21:53:58 +01:00
Yorik van Havre
5a9d79ac94 Draft: Fixed DXF imorter for non-GUI operation - fixes #1961 2015-02-13 16:49:29 -02:00
Yorik van Havre
40f0927705 Arch: Adapted IFC importer for new IfcOpenShell6
Squashed following commits:
* Arch: Adapted IFC importer for IfcOpenShell6
* Arch: further fixes for ifcopenshell6 compatibility
* Arch: IFC importer now converts to/from  meters for better compatibility with IfcOpenShell
* Arch: further fixes with ifcopenshell6
* Arch: precision adjustments in IFC exporter
* Arch: small fix in makeRoof
2015-02-13 16:41:34 -02:00
Yorik van Havre
6202476061 Draft: made new DXF libraries dialogs translatable 2015-02-13 16:01:16 -02:00
wood-galaxy
c516b2456e Draft : Show dialog if DXF libraries not found/not downloadable 2015-02-13 15:31:50 -02:00
wmayer
e551c4ef28 + write out material information for x3d format 2015-02-13 17:26:49 +01:00
Sebastian Hoogen
192a32d8d1 refuse to change the placement of PartDesign::Feature Objects
in OpenSCAD/Explode Group command
2015-02-13 00:40:27 +01:00
Yorik van Havre
cd5783ac2e Draft: fixed importSVG - fixes #1964 2015-02-12 11:57:39 -02:00
Sebastian Hoogen
cd771f65c6 meshing was removed from StlTransfer
with OCCT CR0025357 issue #1906
2015-02-12 13:46:14 +01:00
Yorik van Havre
4bb365f9b6 Draft: Small fix in DXF importer - fixes #1961 2015-02-12 13:46:14 +01:00
Yorik van Havre
f99b6cf534 Fixed typo 2015-02-12 13:46:13 +01:00
Yorik van Havre
f278c297fd Drawing: reset the default template to the classic one 2015-02-12 13:46:13 +01:00
Sebastian Hoogen
12407a1057 disable conversion of BSplines to circles in SVG drawing output
partly revert 0a31bebaed
2015-02-10 15:45:34 +01:00
Yorik van Havre
7b34d02c4c Draft: re-added Draft-Drawing tool to DraftWB 2015-02-09 12:26:41 -02:00
Johannes Obermayr
4ef4369d09 Mod/Complete: Check for modules at runtime.This fixes runtime errors if e. g. TestGui isn't installed due to -DBUILD_TEST=OFF ... 2015-02-08 16:37:14 +01:00
Johannes Obermayr
b63c5d0e04 Mod/Complete: Check for modules at runtime.
This fixes runtime errors if e. g. TestGui isn't installed due to -DBUILD_TEST=OFF ...
2015-02-08 16:24:04 +01:00
Sebastian Hoogen
faac8c36ba add encoding parameter to .as_std_string()
to handle PyUnicode Objects. Usually ASCII for object names and Utf-8
for file names and console output.
issue #995
2015-02-08 15:37:00 +01:00
Sebastian Hoogen
8ee81e0516 set the max. segments in BSpline approximation to 50
in Draft and Drawing WBs
2015-02-08 15:14:32 +01:00
Sebastian Hoogen
8ec87dbdf2 rename python classes for shapes and
implememnt __getstate__ and __setstate__ to enable pickling
issue #1948
2015-02-04 17:07:29 +01:00
wmayer
79173e37cd + correct usage of SoPolygonOffset 2015-02-02 14:18:16 +01:00
wmayer
65c56d0bd6 +support to write/read colors to/from OFF file 2015-02-02 09:59:02 +01:00
Yorik van Havre
dc623f2646 Fixed a typo 2015-01-27 13:57:49 -02:00
Yorik van Havre
8628a6e0e0 Draft: small fix in SVG generation 2015-01-26 17:38:30 -02:00
Yorik van Havre
d8146a0cf8 Updated ts files 2015-01-26 16:23:48 -02:00
Yorik van Havre
6ffc0e177a Drawing: small fix in DraftView command 2015-01-26 16:00:13 -02:00
wmayer
97987db462 + fix problems on unit tests, open transaction when creating distance object, layout warning, ... 2015-01-25 14:04:33 +01:00
wmayer
683e342cff + fix linker error with MSVC 2015-01-25 12:22:04 +01:00
Sebastian Hoogen
5a9484f06c round the drawing view projection direction
before calculating the necessary view rotation to anticipate the
rounding that happens on saving and reloading the file. fixes #1909
2015-01-24 23:37:38 +01:00
wmayer
be38772631 + fixes #0001482 2015-01-24 16:32:21 +01:00
wmayer
ed46ec272f + slight fix in file filter 2015-01-24 16:31:49 +01:00
Yorik van Havre
9b345d8264 Arch: Corrected some texts 2015-01-23 12:45:11 -02:00
Yorik van Havre
06a689eff2 Draft: Added warning dialog against heavy DXF import operations - fixes #1685 2015-01-22 12:21:15 -02:00
Sebastian Hoogen
d059520046 Use splines in dxf drawing output 2015-01-20 20:08:40 -02:00
Sebastian Hoogen
c05f7762f8 import dxf splines as Draft BezCurve if applicable
fixes 1743
2015-01-20 20:07:25 +01:00
Sebastian Hoogen
17a85e4352 Set offset mode for extrusion draft 2015-01-20 11:30:13 +01:00
Sebastian Hoogen
9c698201e2 handle Draft Ellipse arcs 2015-01-20 11:28:17 +01:00
Sebastian Hoogen
2509e59b51 catch non-orthogonal transformation matrix
bugfix for f045df1ef3
2015-01-20 11:26:39 +01:00
Yorik van Havre
a91fcc681c Draft: Improvements to Trimex tool - fixes #1598
* Autotrim 2 intersecting draft lines, wires or arcs
* Don't snap if CTRL is not pressed
* Allow to trim/extend against itself
2015-01-19 13:49:33 -02:00
Yorik van Havre
767d7b442a Draft: fixed leftovers from last commit 2015-01-18 13:44:56 -02:00
Yorik van Havre
044c1c0ef1 Draft: More robust method to write DXF arcs 2015-01-18 13:42:17 -02:00
Yorik van Havre
8fbe631046 Draft: Fixed svg export view box - fixes #1810 2015-01-17 12:51:09 -02:00
wood-galaxy
1de729d6e9 + fixes #0001923: Fix typo for a string within the Arch wokbench 2015-01-17 11:41:22 +01:00
wmayer
1f44226882 + copy DiffuseColor property when creating simple copy 2015-01-16 23:31:07 +01:00
wmayer
f5c363db9d + fixes #0001922: occ exception during python shell.makeHalfSpace 2015-01-16 23:11:07 +01:00
Yorik van Havre
79458a83d0 Draft: minor fix in up/downgrade 2015-01-16 19:57:39 -02:00
Yorik van Havre
62b0498e6f Draft: Added a recompute() at the end of Upgrade and Downgrade 2015-01-16 18:05:02 -02:00
Yorik van Havre
90540deb29 Arch: Removed Create from Scratch option from presets - fixes #1835 2015-01-16 17:34:24 -02:00
Yorik van Havre
f0ce2e6be6 Moved Draft-Drawing tool to the Drawing WB (renamed Draft View) 2015-01-16 17:16:39 -02:00
Sebastian Hoogen
0aabd2d5ec importDXF: bugfix for handling weights in splines 2015-01-16 18:22:42 +01:00
Sebastian Hoogen
c90c2441d2 importDXF: provide polygon fallback for splines
with invalid multiplicities
2015-01-16 15:10:31 -02:00
Sebastian Hoogen
ad54783016 improve DXF spline import 2015-01-16 15:10:31 -02:00
Yorik van Havre
9de492592d Draft: SVG linestyles are now settable in preferences - fixes #1773 2015-01-15 17:58:52 -02:00
Yorik van Havre
06e78d70c9 Draft: Upgrade tool now supports sketches with circles or ellipses - fixes #1881 2015-01-15 17:15:27 -02:00
wood-galaxy
f72c802f5d Arch CutPlane : Fix some strings to be translatable 2015-01-15 10:27:49 -02:00
wood-galaxy
73c342e05c Arch Roof : Improvement on gable case 2015-01-15 10:26:43 -02:00
wood-galaxy
16564430a1 Arch Roof : Add units in column header. 2015-01-15 10:26:43 -02:00
wmayer
ee4436b2c0 + add toShape() to Part.Point, allow to pass Part.Point in Part.Vertex 2015-01-15 11:39:53 +01:00
wmayer
17099d0545 + fixes #0001916: Cannot cancel angle constraint dialogue in sketcher 2015-01-15 00:36:44 +01:00
Sebastian Hoogen
f045df1ef3 avoid using transformGeometry in importSVG 2015-01-14 11:56:45 -02:00
Yorik van Havre
ae3fafea6c Updated base translation files for crowdin 2015-01-13 20:00:09 -02:00
Yorik van Havre
7a710279ad Draft: Fixed continued dimension - fixes #1891 2015-01-13 19:07:05 -02:00
wmayer
fa4f8b0735 + do not throw exception from inside signal handler to get useful stack trace for segmentation faults 2015-01-13 22:01:59 +01:00
wmayer
395d5249d4 + minor change 2015-01-13 21:54:54 +01:00
wmayer
477099bbfe + remove useless stuff from Init files 2015-01-13 16:19:19 +01:00
Yorik van Havre
7d0dc068e4 Draft: Allow to draw lines by length & angle - fixes #1383
* Added a Length property to Draft line objects
* Added length & angle parameters to the line drawing tool
2015-01-13 12:10:52 -02:00
wmayer
5289967304 + fixes #0001482: v0.14 Mirrored objects parent the original object 2015-01-13 00:03:20 +01:00
wmayer
eb9b6acdd6 + re-enable reading/writing grid size 2015-01-12 16:29:31 +01:00
wmayer
3f03e954da + fixes #0001914: A4_Landscape_ISO7200 2015-01-12 11:27:30 +01:00
Richard Crozier
65092be5f3 Correct spelling of FEM Netgen Mesh 'Fineness' parameter 2015-01-12 11:12:30 +01:00
wmayer
c6fe925dfd + fixes #0001856: Add standard set of blank ISO drawing template sizes 2015-01-12 01:56:14 +01:00
wmayer
c9a70c7f03 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-01-12 01:44:13 +01:00
wmayer
b437dfd9da + fixes #0001912: Drawing Workbench Not Displaying Views of Cylindrical Parts. 2015-01-12 01:43:48 +01:00
Yorik van Havre
4cf15ae696 Draft: implemented new, more robust version of sortEdges - fixes #1911 2015-01-11 22:09:29 -02:00
wmayer
e16305cb83 + fixes #0001791: Counterbores do not follow when hole is moved 2015-01-12 00:55:56 +01:00
Yorik van Havre
af65c413d1 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-01-11 15:55:32 -02:00
Yorik van Havre
74856e5fbf Draft: Dimensions ExtLines property can now be negative - fixes #1677 2015-01-11 15:55:19 -02:00
wmayer
0b904e674b + support Bezier curves for SVG output 2015-01-11 16:02:27 +01:00
wmayer
82edb4b50a + fixes #0001662: IGES does not export correctly 2015-01-11 12:14:41 +01:00
wmayer
0a31bebaed + fixes #0001898: Drawing workbench draws cylinder in orthographic projection wrong 2015-01-11 01:46:31 +01:00
wmayer
9cb8471fa2 + fixes #0001856: Add standard set of blank ISO drawing template sizes 2015-01-10 22:21:20 +01:00
wmayer
2e91cd1000 + add new templates from triplus 2015-01-10 22:19:46 +01:00
wmayer
3210d0d2a0 + issue #0001856: Add standard set of blank ISO drawing template sizes 2015-01-10 19:09:58 +01:00
wmayer
0954adf784 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-01-10 15:15:42 +01:00
wmayer
6a3437e28e + fixes #0000692: Sketcher: Add angle constraint for arcs 2015-01-10 15:15:18 +01:00
Sebastian Hoogen
ff8ad03aa3 bugfix in dxf output of arc
regression created by 099ece5c00
2015-01-10 12:09:00 -02:00
Sebastian Hoogen
fe4ab358e5 issue #1450 2015-01-10 12:09:00 -02:00
wmayer
2bff32d704 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-01-10 12:17:57 +01:00
Yorik van Havre
183a0f066b Draft: Fixed typo - fixes #1907 2015-01-09 20:46:07 -02:00
Yorik van Havre
02eecc4fd7 Draft: small bug in Draft GUI - fixes #1908 2015-01-09 20:43:33 -02:00
wmayer
396e9c93b7 + fixes #0001553: printing drawing full size (1:1) prints wrong size 2015-01-09 21:15:27 +01:00
wmayer
ddfb525c87 + fixes #0000932: Unexpected scaling of a printed Drawing From FreeCAD but not always from exported SVG 2015-01-09 14:00:18 +01:00
wmayer
311ba87b6c + issue #0000932: Unexpected scaling of a printed Drawing From FreeCAD but not always from exported SVG 2015-01-07 19:35:52 +01:00
wmayer
f24e216db4 + fixes #0001652: Proper support of units for all geometric primitives 2015-01-07 15:31:07 +01:00
wmayer
be2e191681 + fixes #0001669: Part operation with parts in groups splits again when moved back into group 2015-01-07 11:02:52 +01:00
wmayer
80db2a3bd9 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-01-06 18:39:00 +01:00
wmayer
010fc6f307 + fixes #0001721: PartDesign Pad 'Up to face' face selection in the 3D view not working 2015-01-06 18:38:33 +01:00
wood galaxy
641c295d44 Arch : Added mid-point to Frame Basepoint - fixes #1892 2015-01-06 13:44:44 -02:00
wmayer
fb19ea5089 + fixes #0001870: Revolution and Groove in Part-Design do not hide the sketch and parent-feature for some geometries 2015-01-06 15:00:24 +01:00
Julien Nabet
b325bcea3d Fix some cppcheck reports:
- (error) va_list '<var>' was opened but not closed by va_end()
- (style) Same expression on both sides of '||'
- (style) Same expression on both sides of '!='
2015-01-06 11:37:44 +01:00
Yorik van Havre
bde130821d Draft: Finished ellipse support - fixes #1788 2015-01-05 19:23:02 -02:00
wmayer
71efef4761 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-01-05 16:29:06 +01:00
wmayer
ee86871bed + fixes #0000763: Bad IGS import 2015-01-05 16:28:40 +01:00
wood galaxy
03183527b2 Draft : fix some utf8 decode
Impacted Lines : 688,2061,2972
2015-01-05 13:13:45 -02:00
wood galaxy
2db39c3d71 Arch : Fix some utf8 decode 2015-01-05 13:13:45 -02:00
wood galaxy
95c0fe3a84 Arch : Internal object name are in English.
Arch objets Label could be translated.
2015-01-05 13:13:45 -02:00
wood galaxy
5657eed566 Arch: Fixed building label 2015-01-05 13:13:45 -02:00
Sebastian Hoogen
be447e64b5 revise drawing dxf ellipse export 2015-01-05 12:26:51 +01:00
Sebastian Hoogen
099ece5c00 determine the angles of an arc only by the axis and paramter range 2015-01-05 12:26:50 +01:00
Yorik van Havre
9ee08a97ea Draft: fixed #1664 again 2015-01-04 20:38:47 -02:00
Yorik van Havre
47f172bfa2 Arch: Fixed window label 2015-01-04 15:33:54 -02:00
Yorik van Havre
a7b3b85aa1 Arch: Fixed the task panel of Windows - fixes #1835 2015-01-04 15:00:31 -02:00
wmayer
d3bc389765 + exception handling if moving sketch fails 2015-01-04 13:02:11 +01:00
wmayer
4cfc2a1a08 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-01-03 22:39:45 +01:00
wmayer
6c187572c7 + fix undo/redo issues with ortho views 2015-01-03 22:39:07 +01:00
Yorik van Havre
9b9526e4cc Arch: fixed behaviour of clones of windows - fixes #1841 2015-01-03 15:40:02 -02:00
Yorik van Havre
3db987d9b7 Draft: Added a Fuse property to Array objects - fixes #1768 2015-01-03 14:47:29 -02:00
wmayer
d8e0df9e97 + fixes #0001678: Visibility property is ignored on drawing sheets 2015-01-03 17:09:17 +01:00
wmayer
e7963472b0 + close drawing view when deleting page object 2015-01-03 14:23:17 +01:00
wmayer
3614a08911 + fixes #0001698: All drawing pages are opened automatically when opening a project file 2015-01-03 13:45:12 +01:00
wmayer
c47eea61fa + return point/facet indices as unsigned long in Python 2015-01-03 11:24:57 +01:00
Yorik van Havre
77882051fa Draft: Made initial Face mode dependent on fill mode pref setting - fixes #1812 2015-01-02 19:53:39 -02:00
wmayer
08828e5dc0 + fixes #0001225: Allow User to Rotate Arc Radius Constraint Text and Leader 2015-01-02 21:26:03 +01:00
Yorik van Havre
fe994efa66 Draft: Fixed import of DXF splines - fixes #1743 2015-01-02 17:05:27 -02:00
Yorik van Havre
12afbc9ed5 Arch: trivial bugfix 2015-01-02 16:49:31 -02:00
Yorik van Havre
1dd069ec7f Raytracing: added transparency to lux feature - fixes #1771 2015-01-02 16:48:35 -02:00
wmayer
26666a1fda + minor optimization 2015-01-02 12:26:29 +01:00
DeepSOIC
c4fb8fc8ae Sketcher: AngleViaPoint: revert from OCC angle precalculation
Returning back to the slow temporary-sketch-based
calculateAngleViaPoint, because OCC-based version was incompatible with
always-CCW sketcher geometry. More info in "Sketch: how to handle
reversed external arcs?" forum thread
http://forum.freecadweb.org/viewtopic.php?f=10&t=9130&sid=1b994fa1236db5ac2371eeb9a53de23f
2015-01-02 11:48:34 +01:00
DeepSOIC
93d00b2dab Sketcher: validateConstraint update
Refactor validateConstraint and add angle-via-point and snell's law
support there.
2015-01-02 11:48:33 +01:00
DeepSOIC
684036fae8 Sketcher Ellipse: code cleanup
deleting redundant overloaded functions involving arc-of-ellipse, a few
todo comments, not implemented methods, System(constraintlist)
constructor.
2015-01-02 11:48:33 +01:00
DeepSOIC
ab7d980de0 Sketcher: solver rebranding - renamed directory
Sketcher: solver rebranding - updated references

cleanup

Sketcher: GCS: remove unused NAN and INF
2015-01-02 11:48:32 +01:00
DeepSOIC
9cc2ff7944 Sketcher Constraints: small code refactor
Unifying first checks in grad().
2015-01-02 11:48:32 +01:00
DeepSOIC
8660d9a914 Sketcher Ellipse: porting to DeriVector2
Sketcher Ellipse: porting tangent-line to DeriVector2

Replacing a ton of unreadable, sage generated math code with
easy-to-manage C++ code.

Sketcher Ellipse: porting internal align-t to DeriVector2

Sketcher Ellipse: small math refactor; const members

Moving the repeating code computing deriv+value of major radius to a
method of GCS::Ellipse.
Marking several methods of DeriVector2 as const member functions.

Sketcher Ellipse: porting arc angle rules to DeriVector2

Just porting.
Probably a complete remake of the concept is worth... Angles can be
calculated explicitly, there's no need to load the solver. I see no
benefits whatsoever on using the solver to keep track of angle values.

Sketcher Ellipse: porting equality to DeriVector2
2015-01-02 11:48:31 +01:00
DeepSOIC
43e8b30846 OpticConstraints: Adding Snell's law
Fix AngleViaPoint to support new derivative calculation technique.

OpticConstraints: Adding Snell's law. Fix AngleViaPoint to support new derivative calculation technique.

Snell's law constraint added to GCS, but not yet exposed and cannot be
tested.
Since the way CalculateNormal() returns derivatives had changed,
AngleViaPoint constraint needed modifications. Nothing serious.

OpticConstraints: SnellsLaw progress

Addable through python. Fix math. Some quick-and-dirty visual stuff to
get rid of hangs and to see the constraint in action.

OpticConstraints: SnellsLaw: flipping logic fix

OpticConstraints: SnellsLaw progress

Added toolbar button. Allowed editing a datum by doubleclick. New error
message approach during constraint creation.

OpticConstraints: SnellsLaw

OpticConstraints: SnellsLaw: list label improvement

OpticConstraints: SnellsLaw: fix after rebase

OpticConstraints: SnellsLaw: expose helper constraints

Snell's law internally is made of three constraints: point-on-object,
coincident and the Snell's sin/sin. They were all buried under one UI
constraint. Exposing them allows to construct reflection and
birefringence on the point (attempting to do so used to result in
redundant constraints and was often not functional at all).
This commit breaks compatibility with older files.

OpticConstraints: SnellsLaw: small refactor of math

Placing the duplicated code of error and gradient calculation into a
private method.

OpticConstraints: SnellsLaw: fix datum edit unit

OpticConstraints: SnellsLaw: fix datum edit bug

After previous fix, the dimensionless value was not accepted (the
constraint's value did not change, the changes were ignored).
2015-01-02 11:48:31 +01:00
DeepSOIC
68ec9e44f8 OpticConstraints: SnellsLaw: icon 2015-01-02 11:48:30 +01:00
DeepSOIC
397e37ad1c GCS: fundamental changes to simplify derivatives
GCS::Vector2D was morphed into a DeriVector2, a derivative-aware vector.
A bunch of vector math methods were added that implicitly calculate
respective derivatives. Now, there is no need to calculate the partials
- most is done implicitly.
2015-01-02 11:48:30 +01:00
DeepSOIC
3838bddcdb AngleViaPoint Constraint
AngleViaPoint: fixes in UI routines + new messages

Goofed undo message in tangency via point is fixed.
Forgotten updateActive, clearSelection have been added.
New more informative error messages for tangent constraint.

AngleViaPoint: using it instead of via line tangency

* replaced the helper construction line for ellipse-to-ellipse and
similar tangency with a point. Using tangent-via-point there
* deleted tangency via line for point-to-point on
(cherry picked from commit 9e3fa8c8de0f49c0ef3c978e015eb905358dbdd9)

AngleViaPoint: internal/external tangency locking

*Added automatic tangency type lockdown for all new constraints (only
for point-wise tangency).
Tangency type is stored in the constraint datum field, as an angle value
shifted by Pi/2 (to be able to treat 0.0 as undefined type).
Added ability to switch the tangency by setting datum value from python
(can be abused by passing arbitrary angle).
Further simplified the tangency related code in Sketch.cpp.

AngleViaPoint: added license to Geo.cpp

AngleViaPoint: renames in Constraints.cpp/.h

Changed some names to increase self-explanatoryness:
bool "remapped" renamed to "pvecChangedFlag"
"ReconstructEverything()" renamed to "ReconstructGeomPointers()"

AngleViaPoint: renames in Constraints.cpp/.h

Changed some names to increase self-explanatoryness:
bool "remapped" renamed to "pvecChangedFlag"
"ReconstructEverything()" renamed to "ReconstructGeomPointers()"

AngleViaPoint: using for endpoint perpendicularity

+ direction lockdown, just as with tangency.
+ quite a lot of old code is gone because of that

AngleViaPoint: perp-ty UI routine made similar to tangent

(Git has made a very messy diff.)
The changes are:
* Perpendicularity-via-point (3-element selection) support added.
* Endpoint-to-curve and endpoint-to-endpoint supports all shape
combinations.
* a bit of code cleanup and clarifications.

AngleViaPoint: placement of perpendicular icon in 3d view

AngleViaPoint: fix: allow setDatum of perpendicular constraint

AngleViaPoint: fix: centers of ellipses are not endpoints

isSimpleVertex used to return false for centers of ellipses and arcs of
ellipses, which made them being accepted for point-to-point tangency.
Should be fixed forever, mo more changes are expected to be necessary
for new types of geometry.

AngleViaPoint: precalc with OCC (work in progress)

Work in progress (not yet working).
Using OCC's tangent to replace implementation of
SketchObject::calculateAngleViaPoint.

AngleViaPoint: fix math: normal now points inwards, where it was intended initially and goofed up.

AngleViaPoint: adding comments to the code

AngleViaPoint: using GeomCurve::closestParameterToBasicCurve for angle precalculation

AngleViaPoint: Py method: changeConstraintsLocking

changeConstraintsLocking(True) - locks/re-locks all lockable
tangency/perpendicularity constraints of the sketch (applicable to
existing sketches).
changeConstraintsLocking(False) - removes locking information from
lockable constraints

AngleViaPoint: final SketchObject::calculateAngleViaPoint

Now, finally, using OCC functionality (thanks Abdullah!), without
composing temporary Sketch object.
2015-01-02 11:48:29 +01:00
DeepSOIC
9f821e06b5 Sketcher: Responsivity tweaks and AngleViaPoint Constraint
Solver iteration limit independent of system size (reduces hangs when
solver fails to converge).
Repaint() instead of update() to force render for every movePoint.

Sketcher: New Constraint AngleViaPoint

* Adding generic CalculateNormal() method
* Reconfiguration of GCS geometry classes: adding a base class "Curve",
that has a pure virtual function CalculateNormal().
* Initial inplementation of the new function.
* adding Vector2D class (I wanted to reuse the existing, but got wierd
compile errors, so implemented a new one... TODO.)
* Adding redirection support into GCS shapes. Adding a Copy method to
GCS::Curve.
* Automatic point-on-object
* Angle precalculation: when AngleViaPoint is added, angle is properly calculated based on
existing geometry.
* Added tangency-via-point using one.
* Implemented placement of tangency-via-point icon in 3d view. Also
affected is the placement of point-on-object icon (since it is very
similar code, it is now shared with tangency-via-point)
* Placement and moving of angle datum
Functions: calculateAngleViaPoint, isPointOnCurve,
calculateConstraintError exposed to python
* Endpoint tangency: All endpoint-to-endpoint and endpoint-to-curve tangency now works
through AngleViaPoint constraint and obsolete code clean up (most procedures
addConstraintTangentXXX2YYY)
2015-01-02 11:48:28 +01:00
Abdullah Tahiri
ec03fb541f Part: Extension of Geometry::Curve
Part: Extension of Geometry::Curve to wrap more functions of OCC

Apart from:
    bool tangent(double u, gp_Dir&) const;
that was already implemented, now it also implements:
    Base::Vector3d pointAtParameter(double u) const;
    Base::Vector3d firstDerivativeAtParameter(double u) const;
    Base::Vector3d secondDerivativeAtParameter(double u) const;
    bool normal(double u, gp_Dir& dir) const;
    bool closestParameter(Base::Vector3d point, double &u);

i.e. apart from giving the tangent vector for a given curve at parameter value u,
it also gives:
   - The point cartesian coordinates of the curve point at parameter value u
   - The vector of the first derivative at parameter value u
   - The vector of the second derivative at parameter value u
   - The normal vector to the curve at parameter value u
   - The parameter value of a curve closest ot a given point

Code cleanup: Changing Trim functionality of Ellipse to use OCC calculations

Part Curve functions extension: closestParameterToBasicCurve

It provides the parameter of the curve closest to a given point. If the curve is a Trimmed curve, the parameter of the basic underlaying curve closest to the point is provided.
2015-01-02 11:48:28 +01:00
Sebastian Hoogen
a8dd528c1a Build python Qt resource files at compile time
fixes #1888
2015-01-02 11:14:07 +01:00
Yorik van Havre
f3af41e4cc Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-01-01 19:06:26 -02:00
Yorik van Havre
051b38b1c1 Arch: temporarily disabled custom subvolume in windows 2015-01-01 19:06:11 -02:00
Yorik van Havre
60b648b053 Arch: Equipments now take the diffuse color of their base object on creation 2015-01-01 19:06:00 -02:00
wmayer
f545455466 + fixes #0001889: Crash when undoing move of base object of a part fillet 2015-01-01 21:05:19 +01:00
Yorik van Havre
2680395ede Draft: adapt icon sizes from preferences settings - fixes #1783 2014-12-31 21:23:24 -02:00
Yorik van Havre
845849fa91 Arch: implemented reading & writing of Ifc properties in IFC files 2014-12-31 18:35:39 -02:00
Yorik van Havre
244373779d Arch: Fixed IFC import bug - fixes #1887 2014-12-31 15:21:41 -02:00
Yorik van Havre
3f607d73a4 Arch: Fixed Arch example - fixes #1789 2014-12-31 14:42:22 -02:00
Yorik van Havre
cb5a807990 Arch: Added a MoveWithHost property to all Arch objects which specifies if they must be moved/rotated together with their parent - fixes #1820 2014-12-31 14:04:23 -02:00
Yorik van Havre
1f9ecfa509 Draft: Better error messages when trying to convert a bspline to a sketch 2014-12-31 13:17:25 -02:00
wmayer
ca5062cbfe + fixes #0001885: Unhandled exception when trying to enter edit-mode for objects while drawing view is active 2014-12-31 14:08:03 +01:00
wmayer
4d618955b3 + fixes #0001884: Crash when double-clicking on Clip element with drawing page closed 2014-12-31 13:15:33 +01:00
wmayer
2c53bd1e9a + fixes #0001670: Orthographic projection: scale/position is empty when unchecking 'Auto scale/position' 2014-12-30 19:14:07 +01:00
wmayer
c231866b8d + fixes #0001746: Part Fillet and Chamfer do not show correct length/radius when editing old items 2014-12-30 17:20:32 +01:00
wmayer
ff09f0524d + fixes #0001656: Vertical/horizontal distance constraint confuses for a line or two points 2014-12-30 15:20:29 +01:00
wmayer
72f947433c Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2014-12-29 22:28:52 +01:00
wmayer
f51daa88e0 + fixes #0001819: Getter Methods for Data inside a sketch 2014-12-29 22:28:12 +01:00
Yorik van Havre
2f78c021db Arch: Fixed encodings in Survey - fixes #1825 2014-12-29 18:54:33 -02:00
Yorik van Havre
638fa8ba75 Draft: Changed working plane button text to Auto - fixes #1879 2014-12-29 17:54:04 -02:00
wmayer
84aad261fc + fixes #0001876: replace helpful text in task tab with an info button 2014-12-29 18:49:17 +01:00
wmayer
d83c02387c + fix constraint evaluation function 2014-12-29 15:17:04 +01:00
wmayer
6a1cb47e30 + fixes #0001616: crash when selecting 'Edit Sketch' 2014-12-29 01:13:03 +01:00
wmayer
e329cb5c3a + fixes #0001878: model refine exception 2014-12-28 18:10:02 +01:00
wmayer
7d8b1f30c3 + fixes #0001720: Freecad crash when handling invalid sketches 2014-12-28 17:10:54 +01:00
wmayer
6a211b9dbe + fixes #0001060: Editing sketch crashes FreeCAD 2014-12-27 22:47:21 +01:00
wmayer
16a8965038 + do not long apply changes in mesh settings on existing mesh objects 2014-12-27 18:32:18 +01:00
wmayer
7149cce90f + fixes #0000957: Sketch view problem when go to edit 2014-12-27 17:50:37 +01:00
wmayer
93e5668967 + make undo/redo accessible from drawing view 2014-12-26 22:46:02 +01:00
wmayer
9290274e1c + fixes #0000711: fileted borders not projected on 2D drawing + deleted views still showing 2014-12-26 22:24:45 +01:00
wmayer
d060cdf400 + revert changes for issue 1873 2014-12-26 00:08:26 +01:00
wmayer
272cb566e9 + fix minor issue in toggle construction command 2014-12-25 23:13:01 +01:00
wmayer
29d50dbc01 + improve whitespace 2014-12-25 23:10:42 +01:00
wmayer
e8802adcbe + fixes #0001838: When In Sketcher Make It Difficult To Mistakenly Delete A Feature 2014-12-25 22:43:09 +01:00
wmayer
a6b8bd6815 + improve whitespace, fix warnings 2014-12-25 09:48:23 +01:00
wmayer
33bc596fd8 + fixes #0001873: Error working with getSelectionEx()[0].SubObjects 2014-12-23 22:04:34 +01:00
Yorik van Havre
11a4025c4b Arch: Fixed Ifc explorer to work with recent ifcopenshell 2014-12-23 17:34:56 -02:00
Sebastian Hoogen
d0126061c8 DRAWEXE export: minor bugfix 2014-12-23 15:58:17 +01:00
Sebastian Hoogen
ca3ad00da8 SVG export: minor improvements and bugfixes
export Names as "id" attributes and Lables to "title" elements.
avoid duplicate path names in SVG export
handle faces with holes in SVG export
sort the edges in given wires using fixWire()
2014-12-23 15:57:57 +01:00
wmayer
2db457b74a Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2014-12-23 15:32:37 +01:00
wmayer
3fa8a1ed2b + fixes #0001874: Scripted constraints not evaluated correctly 2014-12-23 15:32:03 +01:00
Yorik van Havre
da5504eebb Draft: Fixed autoconversion of bsplines to circles in DXF export 2014-12-23 12:13:25 -02:00
wmayer
c918ef7e40 + fix whitespaces in Python module 2014-12-22 12:54:09 +01:00
wmayer
491ea2b52a + use QApplication instead of qApp 2014-12-22 12:30:44 +01:00
wmayer
02cc02eaee + fix build failure 2014-12-21 11:21:32 +01:00
Abdullah Tahiri
75377ebfd3 Part Module New Feature: Hyperbola & ArcOfHyperbola
- Completed Hyperbola c++ implementation and python wrapper
- Created ArOfHyperbola c++ and python wrapper implementation
2014-12-21 00:54:07 +01:00
Abdullah Tahiri
6997cc9991 Part Module New Feature: Parabola & ArcOfParabola
- Completed Parabola c++ implementation and python wrapper implementation
- Created ArOfParabola c++ and python wrapper implementation
2014-12-21 00:51:24 +01:00
Michael Georg Hansen
8effb87566 Prevent pages and views from being put into the drawing sheet. 2014-12-20 22:18:43 +01:00
Michael Georg Hansen
ec4ed868b6 Remove leftover debug output and use named parameters. 2014-12-20 22:18:22 +01:00
Michael Georg Hansen
fe1d67fd65 Simplify access to projection properties.
Directly access the properties where possible.
2014-12-20 22:17:46 +01:00
Michael Georg Hansen
1816f88575 Reuse projection settings from an existing view when creating new draft views.
Select a draft object and a view on a drawing page, then the view created for
the draft object will have the same projection settings as the selected view.
2014-12-20 22:17:08 +01:00
Michael Georg Hansen
ef24aaa3ce Reuse projection settings from an existing view when creating new part views.
Select a part and a view on a drawing page, then the view created for the part
will have the same projection settings as the selected view.
2014-12-20 22:16:41 +01:00
wmayer
6af1186d27 + remove Makefile.am, remove some leftovers, avoid including unneeded headers in GCS.cpp 2014-12-20 14:06:54 +01:00
wmayer
d486f3351d + fix pow() ambiguity 2014-12-20 14:01:23 +01:00
Abdullah Tahiri
501c40f0e6 Sketcher: Ellipse implementation enhancements
- ArcOfEllipse enhancement: Tangency ArcOfEllipse to ArcOfEllipse or ArcOfCircle by selecting end/starting points...
- Minor bug corrections (Thanks DeepSOIC)
- ExposeInternalGeometry python command
- DeleteUnusedInternalGeometry python command
- On deletion of an Ellipse/ArcOfEllipse all further unconstrained internal geometry is also deleted.
- This cleans up the code by eliminating code repetition in the creation methods.
- Major bug fix for autoconstraints for ellipse and arc of ellipse creation (for both creation methods)
- Major bug fix Start and Endpoint constraints of an arc of ellipse where not taking into account that Sketcher arcs are always CCW, so they have to be exchanged if we convert a CW arc into a CCW arc.

Sketcher: General bug fix: Tangency wrongly suggested

What?
=====
- On creation of a shape autoconstraints are suggested.
- Tangent autoconstraint was suggested even with lines perpendicular to the tangency direction

Reproduce
=========
- Make a circle on the origin and move the mouse along the X axis, it will suggest a tangency that is impossible
- Click on the axis and no circle will be created

Solution
========
- The SeekConstraint now can use the parameter dir to give a direction that is substantially perpendicular to the expected tangency, so that
if an object having a direction (a line) is hit, a tangency will not be suggested if within around 6 degrees of being parallel.
- Additionally, if such a line is an X,Y axis of the sketch, tangency will only be suggested if the direction is within 6 degrees of being perpendicular (i.e. it is almost tangent already while sketching).
- This difference is due to the fact that an X or Y axis can not "move" to meet the object under creation, whereas a line can.
2014-12-20 12:33:37 +01:00
Mark A. Taff
80120a6bac Ellipse implementation: Several bug fixes
I. Fix minor bug where wrong b was used to create ellipse internal geometry.

Tweak the internal geometry code a bit and reformat it so it isn't so wide.
Also begin debugging constraint conflicts on small circular ellipses.

There seem to be two issues currently in major/minor internal geometry lines:
  1) Sometimes minorLength > majorLength due to round-tripping doubles, and
  2) Constraint conflicts when majorLength > minorLength by an epsilon on the order of 1e-6

(cherry picked from commit 5c3e20af1a95c860112289dcdda54ea99778bc3a)

II. When testing for a valid ellipse, also ensure that the mangled major axis length > the mangled axis length.

This additional condition ensures that major and minor axis constraints don't conflict in the case of small
(nearly) circular ellipses.

The is still a potential bug in the solver when the major length is just slightly larger than the minor, but this fix
makes it nigh impossible to reproduce.
(cherry picked from commit 7e274bc32d9aa1a12ab52bfa33ed80353540b062)

III. Code clean up

Remove redundant 3d vectors.

(cherry picked from commit c656d5165c8bae8f101a2b46af6b12348d06cefe)
2014-12-20 12:33:37 +01:00
Abdullah Tahiri
c8d7f70dba Sketcher: Ellipse implementation: Art by Jim 2014-12-20 12:33:36 +01:00
DeepSOIC
fc7f1791d2 Fix intern. geom. placement for ellipse arc a<b
(cherry picked from commit 896372cbae2d5667f72f6ee9e628eea482846156)
2014-12-20 12:33:36 +01:00
Abdullah Tahiri
83edcf4c86 Sketcher: Ellipse : Integration of all conics under a single toolbar space 2014-12-20 12:33:35 +01:00
Abdullah Tahiri
ba2c2d36e0 Sketcher: Ellipse implementation Art by Jim
- Art for setting all conics under a single icon
- Art for ellipse for 3 points creation method
2014-12-20 12:33:35 +01:00
Mark A. Taff
bccb9466cc Implement two construction methods for ellipses:
--Center, major radius, minor radius
  --Periapsis, apoapsis, minor radius

Artist: We need an icon for periapsis, apoapsis, minor radius method.
(cherry picked from commit f0a4339621b0bf901754af14c3cd36c95ca55966)
2014-12-20 12:33:35 +01:00
Abdullah Tahiri
901bbbed57 Sketcher: Various Ellipse enhancements
- Autoconstraints for Ellipse
- Conversion of a Part.Arc of an Ellipse to Sketcher.
2014-12-20 12:33:34 +01:00
Sebastian Hoogen
dc5c64703a support for ellipses and elliptical arcs in flattened SVG output
(cherry picked from commit 59eabdbcb043f3d462c3e9ed0ba21cfe65b7aae6)
2014-12-20 12:33:34 +01:00
Abdullah Tahiri
f5df65c4c4 Sketcher: Ellipse enhancement: All internal geometry is shown on creation
Elements that have internal geometry are created with the internal geometry on creation.

It has been under discussion for a long time. Ulrich was in favour (asked for it several times).
DeepSOIC implemented the focus because he hated the poor dragging of the ellipse when empty.
2014-12-20 12:33:33 +01:00
DeepSOIC
9d135bdc4e Sketcher: Ellipse enhancement: Negative focus on creation to improve dragging
Focus2 is thrown in automatically for ellipse arcs

(cherry picked from commit 1ab814e6b07fd946dbb2910cc1bfb8588c61afb8)
2014-12-20 12:33:33 +01:00
Abdullah Tahiri
d0362fa4a2 Sketcher Ellipse and ArcOfEllipse: Extra features and bug fixes
- Visual representation of equality constraint: Separate circle and arcofcircle implementation from ellipse and arcofellipse implementation
- Fix for Alignment constraint: Now it allows to assign a second element, one by one
- Box selection for ArcOfEllipses
  Fixes the bug that vertex far away got selected due to lack of sync between the selection and draw loops.
2014-12-20 12:33:32 +01:00
DeepSOIC
f24b589d67 Sketcher Ellipse bug fix:
- Fix placement of equality symbols at ellipses and arcs of ellipses
2014-12-20 12:33:32 +01:00
Abdullah Tahiri
a067a7c25a Sketcher Ellipse and ArcOfEllipse: Extra features and bug fixes
- Minor changes to alignment constraint selection to avoid to create objects just for simple calculations
- Equality constraint of Ellipse, ArcOfEllipse and combinations of those elements
- Bugfix for internalalignment creation of major and minor of ellipse and extension to arcofellipse
- Trim support for ellipses
- Solver threshold for rank calculation set at 1e-13.
- Trim support for arc of ellipse
- Ellipses and ArcOfEllipses as external geometry
- Validate Sketch now supports arcs of ellipse
- Tangents of Ellipse or ArcOfEllipse to any of ArcOfcircle, circle and Ellipse (using construction elements)
- Perpendicularity constraint
- Bug fix: Show/hide internal geometry not working for external geometry
- Visualization of Internal alignment constraints when selecting in the constraint widget
- Equality for ellipses and arc of ellipses
2014-12-20 12:33:31 +01:00
DeepSOIC
21354e9a8b Sketcher Ellipse bug fixes:
- Fix of internal geometry creation
- Fix swapped negative and positive ends of major radius line on creation
- Removing the fudge factor (no longer needed)
- Fix to restore internal alignment - autodecide on constraint creation which point of the line is closer to the position
2014-12-20 12:33:30 +01:00
Abdullah Tahiri
fb0d830560 Sketcher Ellipse and ArcOfEllipse: Major bug fixes
- Change mode so that focus1 is not a point, but two doubles so that visual model and solver model match in number of points.
- Solver fix to deal with reduced constraint partials accuracy (threshold for matrix rank calculation tweak)
- Changes suggested by logari81
2014-12-20 12:33:30 +01:00
DeepSOIC
e423c308af Sketcher Ellipse bug fix: Jump back on mouseup when shrinked 2014-12-20 12:33:29 +01:00
Abdullah Tahiri
a458c3e6d2 Sketcher New Feature: Ellipse support
- Ellipse introduction button via (center,majaxis extreme, a point in edge), ellipse is always CCW so that Z axis goes in the positive direction of the sketch
- Backwards compatibility with files of previous versions of ellipse not defining a phi angle
- Art by Jim (all the icons you see and the XPMs shown on creation of an ellipse)
- Element Widget support for ellipses
- Box selection for ellipses
- Point on Ellipse constraint based on the gardener's method based on Ulrich's function proposal (radcan simplified, i.e. with simplify_radical sage function)
- Tangent: Ellipse to Line based on DeepSOIC's geometric formulation (radcan simplified)

Sketcher New Feature: Internal Alignment Constraint
- The element to which internal alignment is applied has to be selected last.
- All other elements are added in the order of priority, taking into account existing elements
- Art by Jim (beautiful icons).

Sketcher New Feature: Tool to show/hide/restore the internal geometry of an element
- New functionality for show/hide internal geometry:
  toggles between hiding all unused internal geometry elements and showing all internal geometry.
  The restore function is implicit to the showing all internal geometry

Sketcher New Feature: Arc of Ellipse support
- Part::Geometry + Python implementation
- ArcOfEllipse creation method
- Art by Jim (all the icons you see and the XPMs shown on creation of arc of ellipse elements)
- Sketcher Element widget for ArcOfEllipse.

Bug fix: Select elements associated to constraints works now for foci internal alignment constraints
2014-12-20 12:33:29 +01:00
Abdullah Tahiri
6eec2e9851 Ellipse implementation: Art by Jim
- it also includes a shell script equivalent to the UpdateResources.bat for those who use linux
2014-12-20 12:31:27 +01:00
Richard M. Shaw
a8d24be3b3 Update CMake config to work with smesh 6.5.3.1.
New fork of standalone smesh is available here:
https://github.com/tpaviot/smesh
2014-12-19 11:23:38 +01:00
wmayer
f37a752975 + fixes #0001848: Radius of circle given in degrees 2014-12-16 12:10:15 +01:00
wmayer
171a8cf85a + fixes #0001857: Broken start page in Ukrainian language 2014-12-16 10:20:29 +01:00
wmayer
78f07f8731 + fixes #0001790: Crash on undo/redo with a selection 2014-12-14 00:06:08 +01:00
wmayer
ff7e33b95d + reimplement copyObject based on merge document 2014-12-13 21:43:20 +01:00
Yorik van Havre
7e86d94a48 Material: Added mk2's material cards 2014-12-13 13:36:51 -02:00
Yorik van Havre
4f3b1e2595 Drawing: added new set of empty templates - issue 1856 2014-12-13 13:30:15 -02:00
Yorik van Havre
b2df659699 Fixed small error in concrete material 2014-12-12 14:56:27 -02:00
J.L. Cercos-Pita
f58807168d Removed autotools makefile template 2014-12-12 14:49:58 -02:00
J.L. Cercos-Pita
5a23e77385 Fixed the module copy path 2014-12-12 14:49:58 -02:00
J.L. Cercos-Pita
fc7c75ba84 Regenrated the branch (rebase failed) 2014-12-12 14:49:58 -02:00
Yorik van Havre
94187a6872 Draft: small fix in Draft.py 2014-12-12 14:38:07 -02:00
wmayer
7801fbef3a + fixes #0001849: Enable Spin Boxes support for Pad, Fillet and Chamfer 2014-12-11 18:25:30 +01:00
wood galaxy
6aa91b3622 Ready for merge : fix issues #1618 and #1607
Implement getSubVolume to cut wall with roof.
Now Roof is not hidden when removing it to a wall.
2014-12-08 12:23:01 -02:00
wood galaxy
341782ec54 Implement Overhang 2014-12-08 12:23:01 -02:00
wood galaxy
1876f36611 Fix bug if user enter thickness = 0 2014-12-08 12:23:01 -02:00
wood galaxy
715b5d7fe9 Add a new Arch Roof Builder 2014-12-08 12:23:01 -02:00
wmayer
2608d0aaf2 + 0001849: Enable Spin Boxes support for Pad, Fillet and Chamfer 2014-12-07 00:38:02 +01:00
jriegel
9a07c3ad9e fix in reading results from Calculix 2014-12-06 13:10:09 +01:00
wmayer
6872b2c393 + fixes #0001736: Parts with multiple colors are displayed in a single bad color after hiding 2014-12-04 14:36:43 +01:00
Yorik van Havre
a6563fb03a Draft: Fixed polygon center snap 2014-12-03 11:16:08 -02:00
wmayer
c6f1132664 + degree symbol is not 7-bit ASCII, use utf-8 2014-12-03 10:26:15 +01:00
wmayer
351ad4f6c7 + fixes #0001363: VRML export can produce corrupt files 2014-12-02 15:40:36 +01:00
wmayer
640c9cbf8b + fixes #0001361: StartPage scripts and resources are installed twice 2014-12-01 15:57:23 +01:00
wmayer
dd3412b159 + improve whitespaces 2014-12-01 11:36:33 +01:00
jriegel
38fc7ba604 Merge branch 'refs/heads/master' into review-CL-Bundler 2014-11-29 15:43:19 +01:00
wmayer
2896372a75 + fix mesh unit tests 2014-11-29 15:17:58 +01:00
wmayer
c04c513b41 + fix typo, consistent icon name 2014-11-26 14:36:11 +01:00
Abdullah Tahiri
fe3beb89fd Sketcher Enhancement: Merge sketches : Art by Jim 2014-11-26 14:23:46 +01:00
Abdullah Tahiri
0f72bc68ba Sketcher Enhancement: Merge sketches
- It copies the geometry and associated constraints of a plurality of sketches into a new sketch
- The functionality is accessible from outside sketch edit mode, directly from the menu Sketch
2014-11-26 14:23:14 +01:00
Sebastian Hoogen
debca91e98 remove support for automake 2014-11-26 10:26:30 +01:00
Sebastian Hoogen
428b47d74a importOpenSCAD: support for projection(cut=true) 2014-11-23 19:26:28 -02:00
Sebastian Hoogen
c8934c06a8 enhancements in exportDRAWEXE.py
simplify float formatting
support for Part::Thickness in exportDRAWEXE.py
support for Draft::Ellipse in exportDRAWEXE.py
support for Annotations
2014-11-23 19:24:34 -02:00
Yorik van Havre
58a84d2748 Arch: small fix in sectionplane - fixes #1836 2014-11-23 19:23:13 -02:00
wmayer
3c61d41dbf + fix bug in mesh bounding box, fix clang warning 2014-11-23 10:55:36 +01:00
jriegel
81ef381b66 fix for VC9 2014-11-22 14:34:05 +01:00
jriegel
10ff1e579d fix bug on highlighting invisibel nodes 2014-11-22 13:51:31 +01:00
jriegel
1bc6df8eac Merge branch 'refs/heads/master' into review-CL-Bundler
Conflicts:
	src/3rdParty/salomesmesh/CMakeLists.txt
2014-11-22 13:51:04 +01:00
jriegel
6483c66cba small fix for VS 2013 2014-11-22 12:46:10 +01:00
wood galaxy
c5f2e9e56b Add PointOnObject constraints to 2-pane window 2014-11-21 23:11:29 -02:00
wood galaxy
af89ebc803 add preview CutVolume in Arch CutPlane 2014-11-21 23:03:53 -02:00
wood galaxy
5f261fb636 make compatible with Part typed object
tool make a Part Cut object when object are not Arch typed.
the cutVolume is now Red and 75 transparence
2014-11-21 23:03:53 -02:00
wmayer
be7f583aa0 + fix issues on 64-bit Linux/MacOSX systems 2014-11-19 15:32:35 +01:00
WandererFan
7a201f9b74 Work around for Mantis issue 0954 on Helix Primitive
To be removed after OCC helix bug corrected.
2014-11-17 17:45:34 -05:00
wmayer
3d03e208d9 + fixes #0001829: DlgPrimitives replaces non ASCII charaters in objects Labels by ? 2014-11-17 20:36:22 +01:00
wood galaxy
e070a717a5 improvement to Cut Plane
Move cut plane on itw own.
Add ArchCutPlan to CmakeList
Add task panel
Add choice between side of the face
2014-11-17 15:44:11 +01:00
DeepSOIC
86a1757c20 Sketcher: Slot: proper tangent constraints
Endpoint-to-endpoint tangency is applied now instead of
tangency+coincident.
Fixes issue #0001828 ( http://freecadweb.org/tracker/view.php?id=0001828
)
2014-11-16 23:14:41 +01:00
wmayer
62de0655d7 + fix inconsistency problem after undo/redo 2014-11-16 19:13:06 +01:00
wmayer
2ead6f9bcf + whitespace improvement 2014-11-16 19:12:34 +01:00
wmayer
7a307cdab3 + fix crash when dragging a point adter undoing the deletion of a line 2014-11-16 19:11:31 +01:00
wmayer
a622d14c2d + port to CMake 3.0 2014-11-15 18:48:58 +01:00
wmayer
fc903d93df + support adding circles as external geometry not lying on the sketch plane 2014-11-15 14:31:24 +01:00
jriegel
8c1b1aa86b Port to VC12 2014-11-15 14:07:02 +01:00
jriegel
f4fc7e88fa Merge remote-tracking branch 'refs/remotes/peterl94-github/new-libpack' into review-CL-Bundler 2014-11-15 13:07:23 +01:00
Peter Lama
f13f5dc520 Add support for CLbundler created LibPack
* New 'UseLibPack' cmake file sets CMAKE_PREFIX_PATH so that find_package
  can be used for most packages.
* Mimic fc_wrap_cpp defined in other 'UseLibPack' files. Some file
  dependencies did not get set correctly otherwise.
* OCE 0.16 does not have Standard_ctype.hxx
* shfolder.h can't be used with Win SDK 7.0
2014-11-14 08:01:09 -08:00
Yorik van Havre
18c0b3ba69 Arch: small optimization in archframe code 2014-11-13 19:30:02 -02:00
wood galaxy
1ce87b2ecf make BasePoint compatible with Frame without BasePoint 2014-11-13 19:26:11 -02:00
wood galaxy
659add8ba3 Add BasePoint Property to Arch Frame
BasePoint allow user to change by wich vertex of the profil the frame
passe of.
2014-11-13 19:26:11 -02:00
wood galaxy
f7830b8da3 Make cutComponent working 2014-11-12 15:36:16 -02:00
wood galaxy
b17f401c5c Add arch cutComponent feature 2014-11-12 15:36:16 -02:00
Yorik van Havre
c07d2ad91b Draft - small (provisory) encoding fix - fixes #1825 2014-11-11 20:11:31 -02:00
Yorik van Havre
04c1530b09 Draft: trimex extrusions now sets the solid property of the extruded object to True 2014-11-10 09:44:38 -02:00
Yorik van Havre
039cacbfde Arch: fixed encoding problem in Survey tool - fixes #1821 2014-11-09 17:27:37 -02:00
wmayer
d30eb39a1e + fixes #0001808: Double Clicking Sketcher PolyLine Causing Crash 2014-11-09 17:59:54 +01:00
wmayer
e753af2fd7 + fix possible scaling problem of datum label 2014-11-08 15:55:47 +01:00
wmayer
bedd2b15a7 + fix copying Python resource files to destination on Windows 2014-11-08 11:08:58 +01:00
Sebastian Hoogen
9426f5d4cf OpenSCAD rc file is now compiled at build time 2014-11-06 23:31:24 -02:00
WandererFan
ba97d17b2a Fix #0001722 Left-handed helix with an angle>0 produces 1 too many turns 2014-11-06 10:49:02 -02:00
Yorik van Havre
75deaa658f Arch and Draft rc files are now compiled at build time - issue #1796 2014-11-05 20:07:53 -02:00
blobfish
8d8c727ac5 Part: ModelRefine: Fix for avoid edges of edgeFuse not working 2014-11-05 14:54:38 +01:00
blobfish
37e0750cd2 Part: ModelRefine: adding bspline support 2014-11-05 14:54:36 +01:00
blobfish
0a94a9b78c Part: ModelRefine: Add FixMissingSeam 2014-11-05 14:54:36 +01:00
blobfish
1b9773299a Part: ModelRefine: fix for missing tolerances. 2014-11-05 14:54:35 +01:00
Jan Rheinländer
7d359a4618 Part: ModelRefine: Enhancement for cylindrical faces 2014-11-05 14:54:34 +01:00
wmayer
fa3a2a0d3a + fix various rendering problems 2014-11-04 18:56:05 +01:00
wmayer
3507e301c2 + improve plane fit 2014-11-04 15:03:25 +01:00
wmayer
d66fc092e1 + better exception handling in Part module 2014-11-04 11:03:51 +01:00
wmayer
a7157ce6a9 + add new render type to 3d viewer 2014-11-03 23:09:38 +01:00
wmayer
980b17ca86 + improve error handling in plane fit 2014-11-03 18:20:55 +01:00
WandererFan
fc6d57f8b3 Fix #1787 Draft.PathArray align
Correct handling of Euler angle calculations.
2014-11-03 10:24:23 -02:00
Yorik van Havre
2836f4cb99 Arch: Provisorily implemented workaround for utf8 paths and ifcopenshell - issue #1795 2014-11-02 15:47:29 -02:00
wmayer
ae09625140 + expose function to Python to check for invalid mesh points 2014-10-31 15:57:28 +01:00
wmayer
267ca0813a + fixes #0001798: Support general ellipsoid with three radii 2014-10-30 18:02:18 +01:00
wmayer
1f450972d2 + change between AP203 and AP214 schemes 2014-10-30 13:07:25 +01:00
wmayer
92ebfab47a + customize STEP header 2014-10-30 11:48:33 +01:00
wmayer
76906d20a0 + customize IGES header 2014-10-29 16:39:33 +01:00
wmayer
b6df4a490e + header for IGES files (disabled) 2014-10-29 12:29:48 +01:00
wmayer
c67f326174 + split STEP and IGES settings into separate pages, handle Brep mode of IGES format 2014-10-28 19:27:23 +01:00
wmayer
30d38e6749 + fix bug in Python binding of Quarter viewer 2014-10-24 19:29:35 +02:00
wmayer
621aebdbef + change API of GLPainter 2014-10-22 14:48:38 +02:00
wmayer
61ec6e2924 + fix problem with disappearing content of image view 2014-10-22 10:59:17 +02:00
wmayer
f233a50a00 + harmonize API 2014-10-19 14:25:51 +02:00
wmayer
21eae7f900 + port Sandbox module to Quarter 2014-10-19 12:16:33 +02:00
Yorik van Havre
bd1bbff874 Draft: Disabled automatic DXF library download - fixes #1785
Note for existing users: Can be reenabled in menu Edit > Preferences >
Import-Export > DXF > Automatic update
2014-10-18 10:21:26 -03:00
wmayer
dd392efeb1 + fixes #0001735: Ellipsoids visibility problems 2014-10-16 19:36:54 +02:00
wmayer
84bd9a4a88 + fixes #0001779: memory leak 2014-10-16 18:57:53 +02:00
Sebastian Hoogen
bce3de5b5d move exportDRAWEXE.py to Sandbox WB 2014-10-15 15:53:52 +02:00
Sebastian Hoogen
81d4b94902 issue #1788 SVG output of trimmed curves 2014-10-15 15:52:59 +02:00
Sebastian Hoogen
8711bdd78f issue #1573 remove unavailable headers 2014-10-14 18:46:24 +02:00
Abdullah Tahiri
ca1eba6107 Sketcher: Element Widget enhancement: Support for external geometry
Python naming used is "ExternalEdge" for consistency with the name appearing in the status bar when selecting that object.

As discussed:
http://forum.freecadweb.org/viewtopic.php?f=10&t=6861&sid=bd9ad10357f8a7de146c4fbd2d53c23b&start=90
2014-10-14 18:33:21 +02:00
wmayer
a96f390097 + fix build problems with Python & MacOSX 2014-10-13 22:02:57 +02:00
Sebastian Hoogen
a53a239f2f issue #1027 use unicode filepaths 2014-10-11 13:32:06 +02:00
Sebastian Hoogen
05af9207a3 use Icons for Refine and Increase tolerance features 2014-10-11 13:09:33 +02:00
Sebastian Hoogen
f1283cf24c fixes #1782 remove unused precsion parameters
from gp_Trsf::SetValues
2014-10-11 13:03:02 +02:00
Sebastian Hoogen
eb598ffd16 fixes #1740 quote pov-ray binary on windows
this fixes a bug introduced by 3523741e96
it restores the double quotes for the shell and uses single quotes for the
python string.
2014-10-11 12:56:38 +02:00
wmayer
980d1eb0eb + fix expressions 2014-10-10 19:01:34 +02:00
wmayer
71154f5f25 + fix issues with force constraint 2014-10-10 17:42:33 +02:00
Yorik van Havre
daedcf4f1c Draft: Adapted Draft module for python3 compatibility - issue #995 2014-10-05 19:40:14 -03:00
Yorik van Havre
3c091ac69a Draft: prevented possible deletion of draft wire during edit - fixes #1680 2014-10-05 17:30:18 -03:00
Yorik van Havre
9671d9658b Arch: Fixed axis object - fixes #1605 2014-10-05 13:09:08 -03:00
Jose Luis Cercos-Pita
4de77a921a Set PySide to all ambiguous QtGui and QtCore calls 2014-10-04 11:42:34 -03:00
Yorik van Havre
537e759142 Draft: Added DraftGeomUtils.pocket2d(shape,float)
Returns a list of wires obtained by offsetting the wires of the given
shape by the given amount (outer wire inside, inner wires outside) and
resolving intersections
2014-10-03 17:35:40 -03:00
Yorik van Havre
3540634c34 Start: Set version info text color to white - fixes #1772 2014-10-01 19:27:50 -03:00
wmayer
f02da38566 + fix Qt help problems 2014-10-01 17:16:43 +02:00
wmayer
ac010de9c9 + fix minor bug when adding coincidence constraint 2014-09-28 15:06:02 +02:00
Yorik van Havre
463b5d4a7e Draft: display coordinates using the current locale's decimal separator - fixes #1741 2014-09-27 16:23:59 -03:00
Sebastian Hoogen
e820a32653 issue #1701 2014-09-27 13:07:30 -03:00
wmayer
f0bf3cb6ab + Proper handling of sketch plane parallel to view direction 2014-09-27 15:53:21 +02:00
Yorik van Havre
16e8b0ee3f Draft: Reverting provisorily to the old version of DraftGeomUtils.sortEdges 2014-09-24 18:13:55 -03:00
Yorik van Havre
f0c59e4cc2 Arch: fixed string encoding in Space object 2014-09-24 18:13:18 -03:00
wmayer
23a58fedf7 + fix warnings with clang 2014-09-24 18:00:46 +02:00
wmayer
032c893183 + fix warnings with clang 2014-09-24 17:46:04 +02:00
wmayer
003c2bf77d + fix warnings with clang 2014-09-24 15:55:36 +02:00
wmayer
3ff7d569c8 + fix build error 2014-09-23 12:51:31 +02:00
Stefan Tröger
ad1bfc32fb fix reported bugs
- compile on windows
- fix cursors
2014-09-23 10:11:12 +02:00
Stefan Tröger
72cab0c002 Adaption of FreeCAD to QuarterWidget
-removes all soqtviewer references
-create a quarter adaptor class which implements missing functionality
-adopts freecad code to make use of SoRenderManager and changed View3DInventorViewer  interface
2014-09-23 10:11:11 +02:00
Yorik van Havre
e08788eca9 Arch: Extended role property to all Arch objects - fixes #1577 2014-09-21 15:12:06 -03:00
Yorik van Havre
4f5f9be38c Spreadsheet - added a recompute() - fixes #1761 2014-09-21 14:40:01 -03:00
wmayer
eae8f22ee5 + add lost s 2014-09-20 18:01:40 +02:00
wmayer
26e01e0900 + build with Qt < 4.7 and OCC < 6.5 2014-09-20 17:49:29 +02:00
Sebastian Hoogen
6a89b33816 fixes #1745 Encode Annotation Text using latin1
for Coin Versions <= 3
2014-09-20 16:26:59 +02:00
Sebastian Hoogen
6ad50db01b fixes #1744 Use unicode in Unit system 2014-09-20 08:58:06 +02:00
Yorik van Havre
810fadab23 Fixed bug introduced by last commit 2014-09-19 13:13:34 -03:00
Sebastian Hoogen
e54297313b fixes #1755: don't translate toolbar names
in InitGui.py of Arch and Spreadsheet
2014-09-19 10:35:00 -03:00
Yorik van Havre
328bdcf636 Draft: small fix in trackers - fixes #1757 2014-09-18 19:39:37 -03:00
Yorik van Havre
6e5fbc74a8 Added base translation file for the Web WB - issue #453 2014-09-18 12:24:16 -03:00
Yorik van Havre
0f559a7184 Draft: Fixed rotation UI unit - fixes #1664 2014-09-18 11:18:15 -03:00
Yorik van Havre
f796cacf65 Draft: Grid now checks preferences settings when redrawn - fixes #1671 2014-09-18 11:09:43 -03:00
Abdullah Tahiri
749abc5ed7 Sketcher fixes: Symmetry arrows properly scaled, fixed icon in constraint taskbar list contextual menu 2014-09-18 16:01:34 +02:00
Yorik van Havre
524e5cbe32 Arch: Added sill height option to creation dialog - fixes #1609 2014-09-17 20:24:35 -03:00
Yorik van Havre
552c0b3af3 Arch: fixed window movements - fixes #1597 2014-09-17 19:39:54 -03:00
Yorik van Havre
7f90948712 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2014-09-17 14:20:07 -03:00
Yorik van Havre
e7cc192650 Draft: provisorily fixed error in sortEdges 2014-09-17 14:19:42 -03:00
Abdullah Tahiri
02cb12db52 Sketcher enhancement: Constraint icons visible over lines 2014-09-17 18:49:40 +02:00
Abdullah Tahiri
d562e1a389 Sketcher Art enhancement: New Symmetric constraint icon by Jim
There is more space in between the > < symbols now, so it is more clear as it overlaps less.

Thanks Jim!
2014-09-17 18:49:16 +02:00
Abdullah Tahiri
0adfa0a7ed Sketcher Bug fix: Arrows for symmetry constraint are back
The arrows were there in the code, but at a certain point, code was written to set the this->imgHeight value programatically, based on
whether it had text or not. As symmetry constraint does not have text the variable failed to initialize. Being zero, it did not pass
the ASSERT in the render function, so it was not rendered.

This includes Werner's fix for improver cast of a SoRayPickAction to SoGLRenderAction:
SbVec2s vp_size = static_cast<SoGLRenderAction*>(action)->getViewportRegion().getWindowSize();
to
SbVec2s vp_size = SoViewportRegionElement::get(state).getWindowSize();

At least sometimes tt is a SoRayPickAction because:

When you move with the mouse over the sketcher (when in edit mode) you enter the method ViewProviderSketch::mouseMove.
Inside there the method getPointOnRay is called to get a picked point underneath the cursor. Inside the latter method
an instance of SoRayPickAction is created to traverse the scene graph. After a long cascade of function calls you
finally enter SoDatumLabel::generatePrimitives(SoAction*).
2014-09-17 18:48:54 +02:00
Abdullah Tahiri
fdb7de1dda Sketcher visualization enhancement: Do not group sketcher symmetry icons.
Do not add a symmetry constraint icon to a group of icons, so that it lies on the line or point providing the symmetry (symmetry axis/point),
as it is more clear to the user which line this is.
2014-09-17 18:48:36 +02:00
Abdullah Tahiri
95c512d9a1 Sketcher feature enhancement: Symmetry constraint perpendicular to axis of symmetry
Solves Mantis ticket: http://www.freecadweb.org/tracker/view.php?id=1623
Unrelated minor fix: remove unused variable
2014-09-17 18:48:15 +02:00
Yorik van Havre
6e9d2e9b21 Draft: Added progress bar to dxf library download - fixes #1644 2014-09-17 13:30:51 -03:00
Abdullah Tahiri
da2df00eea Sketcher visualization: Increase readability of redundant constraint solver message
Color changed to "OrangeRed" to improve readability.
2014-09-17 16:43:51 +02:00
Abdullah Tahiri
5f2670dbcf Sketcher Redundant/Conflicting art by Jim 2014-09-17 16:43:51 +02:00
Abdullah Tahiri
34cc7c3136 Sketcher new feature: Select Conflict and Redundant Constraints
Based (and solves) Mantis ticket:
http://www.freecadweb.org/tracker/view.php?id=1643

The ticket refers only to redundant, and ask for deletion.

Two commands are created, one for redundant constraints and other for conflicting constraints.

As usually removing one constraint of the "at least one" is sufficient, the implementation selects the constraints (but does not delete them).

The user therefore easily identify the constraints involved and decide to delete them.

This implementation takes into account the edit->Actsketch that ViewProvidedSketch creates for solving, as it is this instance the one that generates the messages in the Sketcher Taskbar.

No buttons in the toolbar by default (can be added by the user), but an hyperlink in the solver messages which triggers the selection of the appropriate command (conflicting or redundant).
2014-09-17 16:43:50 +02:00
Abdullah Tahiri
bdbf5140f9 Sketcher new feature: Selects the elements associated with the selected constraint(s)
Ex 1: User selects constraints from the list => right click => select "select elements" from the contextual menu => The elements (edges,vertex) involved in the constraint(s) are selected.

Ex 2: User selects (a) constraint(s) => Clicks button in toolbar (if included by the user) => The elements (edges,vertex) involved in the constraint(s) are selected.

Intended as visual aid to see which elements are being affected by a constraint.

Requested by Jim on thread:
http://forum.freecadweb.org/viewtopic.php?f=19&t=6875&start=10

Solving another Mantis ticket I can not find now.
2014-09-17 16:43:49 +02:00
Sebastian Hoogen
d537fc9b53 try to use Execptions in Draft module 2014-09-17 12:52:36 +02:00
Sebastian Hoogen
333e6e3155 use exceptions in OpenSCAD module
derive OpenSCADError from FreeCADError if possible
2014-09-17 11:59:49 +02:00
Sebastian Hoogen
57db95a1c3 issue #1701 removed further except: statements 2014-09-17 11:57:32 +02:00
Sebastian Hoogen
ed66ada1cf issue #1700 replace PyExc_Exception 2014-09-17 11:15:57 +02:00
Sebastian Hoogen
1b1d8010a6 removed catch (...) in Drawing
which discarded type information when rethrowing base type
2014-09-17 11:15:56 +02:00
Sebastian Hoogen
5e51a6cdf7 fixes #0001422: Subclass Exception
inherit Base.FreeCADError form RuntimeError
inherit Part.OCCError from Base.FreeCADError
inherit OCCDomainError from Part.OCCError
inherit OCCRangeError from Part.OCCError
inherit OCCConstructionError from OCCDomainError
inherit OCCDimensionError from OCCDomainError
Added PY_CATCH_OCC macro
replace PyExc_Exception
use FreeCADError in makeWireString
catch exception in BSplineCurve.increasedegree
2014-09-17 11:15:56 +02:00
Yorik van Havre
f1dffbb90e Arch: Hide/show windows together with their parents - fixes #1733 2014-09-16 20:03:50 -03:00
Yorik van Havre
9f7956b17e Web: Added an Open Link In External Browser context menu option - fixes #1017 2014-09-16 14:16:44 -03:00
Yorik van Havre
302fcde1e0 Startpage now checks for new versions - issue #1017
After loading, the startpage now checks for
http://www.freecadweb.org/version.php and compares
with current version, and displays a message accordingly.
2014-09-16 12:58:07 -03:00
Yorik van Havre
b0c66cf6f7 Draft: fixed typo 2014-09-16 11:26:47 -03:00
Abdullah Tahiri
4aa71db3c8 Sketcher Element Widget enhancement: Auto-switch to Edge (first valid type)
Feature requested by nahshon.
- In auto-switch to edge mode, actually switch to first valid type, which is always
edge, except for a point. It reduces the amount of clicks when dealing with points.
- Correction of a typo.
2014-09-16 10:12:53 +02:00
Yorik van Havre
a4f208c8ac Draft: replaced DraftGeomUtils.sortEdges with better version from pkoning2 - fixes #1691 2014-09-15 17:30:37 -03:00
Yorik van Havre
78f34666b2 Draft: Added a button to Dimension UI to select existing edges - fixes #1636 2014-09-15 17:05:44 -03:00
Yorik van Havre
4b59ef1586 Draft: fixed sticky fonts - fixes #1725 2014-09-15 16:43:14 -03:00
Yorik van Havre
0446f60277 Draft: fixing bugs in previous commit 2014-09-15 15:56:07 -03:00
Sebastian Hoogen
1100d2d0bd move encoding strings for coin to function 2014-09-15 15:45:44 -03:00
Yorik van Havre
96eccd44ae Draft: upgrade tool now converts single-linear-edge objects into Draft lines 2014-09-15 12:51:26 -03:00
Sebastian Hoogen
5d406144aa use utf-8 for coin4 and latin1 for coin3 2014-09-14 11:08:55 +02:00
Yorik van Havre
a0e461a925 Arch: minor bugfix 2014-09-13 18:23:35 -03:00
Yorik van Havre
8b25a40cbf Arch: equipments now choose type (Part or Mesh) on creation based on the base object 2014-09-13 13:54:47 -03:00
Yorik van Havre
7318a1d443 Arch: minor improvements in panel 2014-09-11 19:27:33 -03:00
Yorik van Havre
9af4df3ce5 Draft: minor fix in Shapestring 2014-09-10 15:56:50 -03:00
wmayer
d1fb7fa839 + do not add units to translation 2014-09-10 10:35:49 +02:00
Yorik van Havre
93e01c16b6 Draft: Fixed copying of Draft points 2014-09-05 17:48:30 -03:00
Yorik van Havre
a723ec4b81 Draft: Allow sticky fonts in ShapeString 2014-09-04 15:57:59 -03:00
Yorik van Havre
620a4dde93 Arch: small fix to Remove tool 2014-09-02 23:04:44 -03:00
Sebastian Hoogen
a81a307346 issue #1700 replace raise Exception() 2014-09-01 22:47:05 +02:00
Sebastian Hoogen
2c38c7d31a exportDRAWEXE: support Part::Plane and ::Ellipse 2014-09-01 11:09:58 +02:00
Sebastian Hoogen
256d844801 python property Continuity of GeometrySurface 2014-09-01 11:04:38 +02:00
Yorik van Havre
f647f25490 Arch: optimizations in IFC import + furniture objects can be included in spaces 2014-08-31 23:30:02 -03:00