Commit Graph

3266 Commits

Author SHA1 Message Date
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
Yorik van Havre
850d0b5e82 Added Gui.showDownloads() py function to show the download manager, and allow to click https links in webgui browser 2014-08-31 16:51:51 -03:00
Yorik van Havre
c60d39c4e7 Arch: fixed import IFC again (better this time) 2014-08-31 15:03:58 -03:00
Jose Luis Cercos-Pita
ed0c6ebd7d Plot: Fixed PyQt imported in the resources loading 2014-08-31 18:37:26 +02:00
Yorik van Havre
dddc278cc5 Arch: fixed bug in importIFC 2014-08-31 13:29:15 -03:00
wmayer
ce528d1c4a + fixes #0001719: Show current shortcuts (S) in menus and hover text. 2014-08-31 14:28:33 +02:00
Yorik van Havre
80e80fef83 Arch: allow for equipment objects to be part shapes 2014-08-30 19:17:30 -03:00
wmayer
7c89591ff6 + allow to load PartDesign even if PySide is not found, suppress MinGW warnings 2014-08-30 23:26:29 +02:00
Yorik van Havre
cef2c1bc8c Arch: Added Equipment tool
The purpose of this tool is to handle standalone objects such as
furniture or sanitary equipment in a building. It is mesh-based,
and accepts either a mesh or a part shape as its base object.
2014-08-29 19:16:28 -03:00
Yorik van Havre
67b54f8052 Draft: clones now correctly adopt the diffuse color of their base object - fixes #1704 2014-08-28 16:30:34 -03:00
Yorik van Havre
6ff67ee5c3 Draft: grid size is now settable in preferences 2014-08-28 16:00:08 -03:00
Yorik van Havre
16ede0e55c Draft: fixes in DXF exporter - fixes #1590, #1653
* Fixed arc directions
* Turned max spline segment length preference option into a float
* Fixed ellipses export
2014-08-28 13:32:45 -03:00
wmayer
5c269996b8 + restore lost changes, improve whitspaces, suppress useless MSVC warnings 2014-08-28 12:37:42 +02:00
wmayer
90e3b58950 + set pcl components for LibPacks 2014-08-28 10:41:59 +02:00
wmayer
fd821fb7b4 + do pcl components checks 2014-08-28 01:51:58 +02:00
wmayer
a579bdce72 + fix for pcl 1.6 2014-08-28 00:02:58 +02:00
jriegel
e2b93c4c80 Merge remote-tracking branch 'refs/remotes/origin/jriegel/NewWinBuild' into jriegel/review-NewLibPack 2014-08-27 16:43:48 +02:00
jriegel
5bdfe81488 Destinquish old and new OpenCV 2014-08-27 16:42:50 +02:00
jriegel
c1f0f70b88 Merge remote-tracking branch 'refs/remotes/origin/jriegel/NewWinBuild' into jriegel/review-NewLibPack
Conflicts:
	src/3rdParty/salomesmesh/CMakeLists.txt
2014-08-27 15:39:00 +02:00
wmayer
346e5c6a77 + fix more compiler warnings 2014-08-27 13:26:44 +02:00
wmayer
cc775f9254 + fix -Wnull-conversion, -Woverloaded-virtual, -Wlogical-not-parentheses, -Wsometimes-uninitialized 2014-08-26 19:14:13 +02:00
wmayer
d974d6897b + fixes #0001713: Allow Part.Arc to be used as Sketcher geometry 2014-08-26 13:09:37 +02:00
jriegel
58a7be992b Intergrate Werners PCL Triangulation patch and upgrade it to PCL 1.7 2014-08-26 10:28:37 +02:00
jriegel
7183cda616 Merge remote-tracking branch 'refs/remotes/origin/wmayer/pcl-testing' into jriegel/NewWinBuild
Conflicts:
	src/Mod/Points/App/CMakeLists.txt
	src/Mod/ReverseEngineering/App/AppReverseEngineeringPy.cpp
2014-08-26 08:42:47 +02:00
jriegel
e4383e8f24 Test import for Ply via PCL in Points 2014-08-25 23:27:17 +02:00
jriegel
4d19ec20fb Add OpenCV again and test command 2014-08-25 23:16:54 +02:00
jriegel
e16f8a5b45 Add switch for compile with and without PCL 2014-08-25 23:16:34 +02:00
Itai Nahshon
e9ea1e2727 Fix automatic creation of tangent constriants.
a. Use scale to calculate max distance
b. Consider only circle/arc that actually touch the newly created line
c. Use of arc angles correctly
d. Find nearest touch point (not nearest center)
e. some optimization
2014-08-24 19:07:31 +02:00
Itai Nahshon
6eeaae57b8 Sketcher: Ignore small mouse moves after selection.
Switch to drag mode only after cursor moved 3 pixels.
2014-08-24 19:07:16 +02:00
wmayer
3c8a00dfec + fixes #0001703: Spreadsheet PropertyController 2014-08-23 14:38:30 +02:00
wmayer
1f2cd53bf7 + fix localization problems in PropertyConstraintListItem, + improve whitespaces 2014-08-22 21:32:19 +02:00
jriegel
1aed444318 define for PCL usage for older LibPacks 2014-08-21 18:17:20 +02:00
wmayer
833bd4e77b Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2014-08-21 18:16:42 +02:00
wmayer
c1c25f1a5c + add GL test stuff into Sandbox module 2014-08-21 18:15:43 +02:00
jriegel
d65a4e4ed7 some type clearification 2014-08-21 17:59:33 +02:00
Yorik van Havre
317206ac59 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2014-08-21 12:38:18 -03:00
wmayer
1b4fb56cdc + fix DrawingView::onRelabel() to accept any page names 2014-08-21 17:26:52 +02:00
Yorik van Havre
806c857c6f Draft: removed unnecessary latin1 decode operations 2014-08-21 11:44:28 -03:00
Abdullah Tahiri
7cc5167623 Sketcher properties feature enhancement: Separated sublist for unnamed datum constraints 2014-08-21 14:11:51 +02:00
wmayer
e814d997e5 + fix trim mesh with plane 2014-08-21 13:26:35 +02:00
Michael G. Hansen
808d2e93bf Fix typo. 2014-08-19 15:26:58 +02:00
Michael G. Hansen
dd7bd833c6 Fix bug 1643: Projections are always added to the first drawing page 2014-08-19 15:07:02 +02:00
wmayer
e9100c7ddb + fix build failure on Windows, remove unused headers, whitespace improvements 2014-08-19 14:02:16 +02:00
Abdullah Tahiri
a9fef8412f New feature: Edit Sketch datum constraints from data Property view
This feature shows in the data properties associated to a TreeView element,
the datum constraints, i.e. those with an associated value.
2014-08-19 13:23:15 +02:00
Sebastian Hoogen
e2f54c793c improvements to exportDRAWEXE
load only MODELING module instead of ALL
show TypeId of unsupported Objects
use angel of revolution for cones
improve sweep output
support for point, vertex, Part and Draft Polygon
cache object names to reuse them in DRAWEXE
do not expode spine which are allready edges
don't try to make faces from arcs (if this failed in FreeCAD allready)

use rounded floats if they safe digits

Sometimes the floats seems to be rounded to twelve decimal
places. we round them if it allows so safe digigts.
round angles
2014-08-18 14:45:42 -03:00