Commit Graph

700 Commits

Author SHA1 Message Date
wmayer
79de781304 + remove leftover 2015-04-05 16:50:58 +02:00
wmayer
1d1e71b52f + integrate biarcs algorithm 2015-04-05 14:10:03 +02:00
wmayer
b36c34b105 + fixes #0002033: boolean failure, model refine 2015-04-03 07:39:17 +02:00
blobfish
eba335c615 Part: ModelRefine: catch bspline isEqual exception 2015-03-22 18:43:39 +01:00
wmayer
5ff38ba7d5 + add methods to get GProps from curves and surfaces 2015-03-22 18:39:49 +01:00
Sebastian Hoogen
db13fbb7b3 add angularDeflection property to ViewProvider
issue #1868
2015-03-21 19:27:43 +01:00
Sebastian Hoogen
565a875365 add shape.proximity(shape) 2015-03-21 13:29:30 +01:00
Yorik van Havre
0009e58291 Merged crowdin translations 2015-03-07 15:17:58 -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
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
wmayer
f69b38dcde + fix doc string of Part.makeLoft 2015-02-25 21:36:40 +01:00
wmayer
007f939731 + check for correct OCC version 2015-02-23 16:05:17 +01: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
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
Sebastian Hoogen
cd771f65c6 meshing was removed from StlTransfer
with OCCT CR0025357 issue #1906
2015-02-12 13:46:14 +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
Yorik van Havre
d8146a0cf8 Updated ts files 2015-01-26 16:23:48 -02:00
wmayer
be38772631 + fixes #0001482 2015-01-24 16:32:21 +01:00
Sebastian Hoogen
17a85e4352 Set offset mode for extrusion draft 2015-01-20 11:30:13 +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
wmayer
ee4436b2c0 + add toShape() to Part.Point, allow to pass Part.Point in Part.Vertex 2015-01-15 11:39:53 +01:00
Yorik van Havre
ae3fafea6c Updated base translation files for crowdin 2015-01-13 20:00:09 -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
477099bbfe + remove useless stuff from Init files 2015-01-13 16:19:19 +01:00
wmayer
5289967304 + fixes #0001482: v0.14 Mirrored objects parent the original object 2015-01-13 00:03:20 +01:00
wmayer
82edb4b50a + fixes #0001662: IGES does not export correctly 2015-01-11 12:14:41 +01:00
Sebastian Hoogen
fe4ab358e5 issue #1450 2015-01-10 12:09:00 -02: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
ee86871bed + fixes #0000763: Bad IGS import 2015-01-05 16:28:40 +01:00
wmayer
26666a1fda + minor optimization 2015-01-02 12:26:29 +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
wmayer
f545455466 + fixes #0001889: Crash when undoing move of base object of a part fillet 2015-01-01 21:05:19 +01: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
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
84aad261fc + fixes #0001876: replace helpful text in task tab with an info button 2014-12-29 18:49:17 +01:00
wmayer
e329cb5c3a + fixes #0001878: model refine exception 2014-12-28 18:10:02 +01:00
wmayer
3fa8a1ed2b + fixes #0001874: Scripted constraints not evaluated correctly 2014-12-23 15:32:03 +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
wmayer
6af1186d27 + remove Makefile.am, remove some leftovers, avoid including unneeded headers in GCS.cpp 2014-12-20 14:06:54 +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
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
wmayer
351ad4f6c7 + fixes #0001363: VRML export can produce corrupt files 2014-12-02 15:40:36 +01:00
jriegel
38fc7ba604 Merge branch 'refs/heads/master' into review-CL-Bundler 2014-11-29 15:43:19 +01:00
Sebastian Hoogen
debca91e98 remove support for automake 2014-11-26 10:26:30 +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
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
WandererFan
ba97d17b2a Fix #0001722 Left-handed helix with an angle>0 produces 1 too many turns 2014-11-06 10:49:02 -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
d66fc092e1 + better exception handling in Part module 2014-11-04 11:03:51 +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
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
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
f1283cf24c fixes #1782 remove unused precsion parameters
from gp_Trsf::SetValues
2014-10-11 13:03:02 +02:00
wmayer
f02da38566 + fix Qt help problems 2014-10-01 17:16:43 +02:00
wmayer
032c893183 + fix warnings with clang 2014-09-24 17:46:04 +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
wmayer
26e01e0900 + build with Qt < 4.7 and OCC < 6.5 2014-09-20 17:49:29 +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
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
wmayer
d1fb7fa839 + do not add units to translation 2014-09-10 10:35:49 +02:00
Sebastian Hoogen
a81a307346 issue #1700 replace raise Exception() 2014-09-01 22:47:05 +02:00
Sebastian Hoogen
256d844801 python property Continuity of GeometrySurface 2014-09-01 11:04:38 +02:00
wmayer
5c269996b8 + restore lost changes, improve whitspaces, suppress useless MSVC warnings 2014-08-28 12:37:42 +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
jriegel
ee64f54765 OCL tests 2014-08-17 20:15:12 +02:00
Sebastian Hoogen
4ba56b5c29 fixes #0001684: Sweep ignores the list of subshapes 2014-08-15 14:35:59 +02:00
wmayer
7eaa4fff74 + Support Quasi methods in discretize() 2014-08-14 19:11:51 +02:00
wmayer
ee2e7fc3fa + Give example for discretize() matching the shape type 2014-08-14 11:38:39 +02:00
wmayer
9ed61f107b + support First and Last keywords in discretize 2014-08-14 11:16:54 +02:00
wmayer
3d2a2b06f0 + fix and improve discretize() method 2014-08-13 23:33:27 +02:00
jriegel
ec2198107b move build specifier in own cMake group 2014-08-03 20:53:19 +02:00
wmayer
ced08b0416 + fix memory leak 2014-08-02 18:26:23 +02:00
wmayer
406d32aebb + Replace InputField with QuantitySpinBox 2014-07-31 15:14:27 +02:00
wmayer
7294271c0c + Allow to get clean copy of a shape from Python 2014-07-30 12:21:22 +02:00
wmayer
dc7ccc41af + remove crude workaround as this seems to work now 2014-07-28 18:43:11 +02:00
wmayer
2e6c54eedf + improve the plane fit from REEN module 2014-07-28 16:39:34 +02:00
wmayer
4dee80f4e1 + support to create faces from vertices with shape builder 2014-07-25 13:35:10 +02:00
Sebastian Hoogen
65793d22e8 recognize OCCT -dev and -beta versions
as such in version string
2014-07-24 10:31:50 +02:00
wmayer
841b4fab1b + fixes #0001630: IGES-Export in [mm] turns to [Inches] 2014-07-23 13:49:16 +02:00
wmayer
80cc2e4710 + Replace OCC_HEX_VERSION with OCC_VERSION_HEX 2014-07-18 14:51:54 +02:00
Sebastian Hoogen
a0454af685 remove all references to BRepMesh 2014-07-18 10:43:16 +02:00
wmayer
a9d1979270 + include missing header file 2014-07-15 10:27:02 +02:00
wmayer
da708faa5e + support compounds of wires or faces for extrusion with tapered angle 2014-07-12 17:44:33 +02:00
wmayer
3d87d88616 + fix Part.makeTube 2014-07-05 15:48:50 +02:00
wmayer
c31b661004 + fixes #0001569: Bounding Box of Mesh::Feature in the Gui does not respect the Placement 2014-06-02 13:06:14 +02:00
Yorik van Havre
940f7e69ba Updated translations 2014-05-24 17:35:20 -03:00
wmayer
0acb77e8de + add missing header 2014-05-24 17:10:17 +02:00
wmayer
51b2af52fd + allow to select whole wire in sweep panel 2014-05-24 15:33:23 +02:00
wmayer
91ad22e3ab + allow to select whole wire in sweep panel 2014-05-23 19:27:14 +02:00
wmayer
a871364066 + replace degree symbol with 'deg' to make sure it works on all systems, force to use right codec to display floating numbers 2014-05-19 20:56:23 +02:00
WandererFan
5d2c285785 Add UNITS to Part Primitive Gui 2014-05-19 20:34:10 +02:00
Johannes Reinhardt
a1d04d82fb fixed typos in Part module 2014-05-16 19:26:06 +02:00
wmayer
318c4b6ce9 + fixes #0001547: add Part Spiral to the selectable list of profiles for a Part Loft 2014-05-15 12:37:39 +02:00
wmayer
f9ff3b250e + fixes #0001544: Python function to retrive direct children of a shape using TopoDS_Iterator 2014-05-14 18:14:06 +02:00
wmayer
f7a42f25b9 + extend makeFilledFace 2014-05-14 13:18:23 +02:00
jmaustpc
5c8ff0bf6c Part primitives dialogue minor typo and tab stops
change the u and v parameter’s label
from "parametric" to "parameter"
also
add tabstops in DlgPrimitives.ui
to correct the order of tab stops
for torus, Helix and spiral
input fields
2014-05-14 15:04:40 +10:00
wmayer
1fbfa1c17a + fix crash in SoBrepEdgeSet::renderSelection 2014-05-13 19:12:10 +02:00
wmayer
c212e75fcc + allow to always run macros, fix disappearing grid in sketcher 2014-05-13 16:20:51 +02:00
wmayer
0874bfac75 + path selection on sweep panel 2014-05-13 14:35:48 +02:00
Yorik van Havre
ec442507e1 Updated ts files 2014-05-11 14:49:24 -03:00
wmayer
6b89c03181 Add initial support for different libdir (jobermayr) 2014-05-10 12:57:38 +02:00
WandererFan
33a4b6d7ba fixes #1319
allow Part.makeHelix to use 'vertical height' parm
correct lefthanded conical helixes in TopoShape::makeHelix
2014-05-10 11:05:52 +02:00
wmayer
0467777d1b + remove unneeded semicolons 2014-05-08 17:32:23 +02:00
wmayer
3b5cdda879 + fix flaws found with code analyzer tool 2014-05-07 13:09:44 +02:00
wmayer
94f10f5d95 + issue #0001419: FreeCAD crash on Windows 8.1. 2014-05-05 22:24:16 +02:00
wmayer
3b6d07833d + compile with clang 2014-05-05 16:24:01 +02:00
blobfish
adda1afc4c Part: Check Geometry: Config option for new, additional BOP check 2014-05-03 19:14:55 +02:00
mdinger
337f05d56e Move python module prefix and suffix properties into macro to be set together 2014-05-03 16:00:30 +02:00
wmayer
66de74d14a + Remove redefinition of /EHa which causes warnings with QtCreator 2014-04-30 19:21:49 +02:00
wmayer
1a7cea9b59 + Fix prefix of Python extensions built with MinGW 2014-04-30 18:22:52 +02:00
mdinger
a17cce3559 Remove unnecessary quotes. 2014-04-30 13:41:16 +02:00
mdinger
1942bb7906 Apply SET_BIN_DIR macro to Mod 2014-04-30 13:41:13 +02:00
wmayer
b7ff37e53d + Update check states in fillet dialog 2014-04-25 11:45:39 +02:00
WandererFan
62f00095cd Issue #1508 Solid tickBox for Part.Revolution
Creates Solid for closed Edges & Wires
2014-04-25 10:07:21 +02:00
wmayer
db72aa2a98 + Improve performance when selecting all edges of an edited fillet feature 2014-04-24 22:29:07 +02:00
wmayer
573c1abb29 + Improve performance when deselecting all edges of an edited fillet feature 2014-04-24 17:30:58 +02:00
wmayer
96f366671b + improve performance of editing fillet feature (patch from chrisf) 2014-04-24 13:29:25 +02:00
WandererFan
d13946da11 Add function to Close Part.Loft (Gui & scripting) 2014-04-14 16:30:56 +02:00
wmayer
78b24c9ba7 + fixes# 0001502: crash when using 'move' tool in part workbench 2014-04-08 13:59:22 +02:00
wmayer
8c91a78703 + fix bug in spiral creation 2014-04-02 10:46:13 +02:00
wmayer
37cc136310 + do meshing of shapes in parallel 2014-04-01 16:38:44 +02:00
wmayer
6d53d9d50c + allow to set deflection of a mesh with exportStl 2014-03-27 10:41:25 +01:00
wmayer
9414c938c6 + Make extrude again working for shapes without wires but edges 2014-03-25 10:16:50 +01:00
wmayer
12277cccf2 + Fix reference leak in _getSupportIndex 2014-03-25 10:15:54 +01:00
wmayer
85bf3ab9f4 + make sure to keep the same order of lines inside a line set as the edge order 2014-03-18 11:11:08 +01:00
wmayer
e1bba45f4c + use more speaking variable names 2014-03-18 10:59:20 +01:00