Commit Graph

356 Commits

Author SHA1 Message Date
WandererFan
830743d2e6 Refactor PyList logic to FT2FC from AppPartPy. 2013-03-22 09:38:32 -04:00
wmayer
ce0e6e5cef Make FeaturePython Python binding a template class to avoid code duplication 2013-03-22 00:34:18 +01:00
WandererFan
b507f618bb Refactor to move FC object creation from AppPartPy to FT2FC. 2013-03-21 09:14:25 -04:00
WandererFan
da8b6d4a81 Eliminate temporary vector in FT2FC. 2013-03-20 19:39:03 -04:00
WandererFan
6465e367eb Combine UCS2 & UTF-8 logic. 2013-03-20 19:12:53 -04:00
WandererFan
9c5608d8d2 Unicode cleanup. 2013-03-20 08:12:46 -04:00
WandererFan
88d037f26e Handle UTF-8 in Py strings. 2013-03-19 13:20:12 -04:00
WandererFan
d030445d39 Handle Py_UNICODE objects & ASCII Py_Strings 2013-03-18 18:05:38 -04:00
WandererFan
8b2c763e4a Basic ASCII text to wire version. Breaks on Unicode. std::exception handling. 2013-03-16 17:07:05 -04:00
jmaustpc
a3d68a1d34 remove duplicate Include file PartFeature.h
remove
-// includes for findAllFacesCutBy()
-#include <TopoDS_Face.hxx>
-class gp_Dir;
-
from freecad/src/Mod/Part/App/PartFeatures
2013-03-16 12:02:27 -03:00
jmaustpc
a3ef789f5a Allow faces to be profiles for a sweep & minor fix loft
Allow faces to be used as the profiles for a Part_Sweep
some minor fixes for Part_Loft
2013-03-16 12:02:27 -03:00
jmaustpc
0a7a9d9cf2 Part_Loft add ability to use a Facefor a profile
Part Loft internally uses either a vertices and/or wires as profiles.
If an edge is selected always was converted into a wire for MakeLoft.
This commit allows a face to be selected and then uses
ShapeAnalysis::OuterWire
to aquire a wire (from the outer edges of the face) to pass to MakeLoft.
2013-03-16 12:02:27 -03:00
jmaustpc
59de0b5a9f Tree icons now display Part Plane, Torus, Sphere, Cylinder,Cone
Created ViewProviders for the above.
Fixed a minor typo in the Part Line ViewProvider
2013-03-15 22:05:06 -03:00
jmaustpc
ecc28163bb Enable Part_Mirror child item in tree
Part_Mirror now shows its child shape in the tree under
the newly created Mirror Feature. On deletion it's
child shape is set to show (if it had been hidden). Thus
making its behaviour and appearance consistant with other
Part tools, E.G. Part Fillet, Part Loft, etc.
2013-03-15 22:05:06 -03:00
jmaustpc
0b025ef5af show Part_Extrude icon in the tree
Added reference to existing Part_Extrude icon
to ViewProviderExtrusion.cpp
2013-03-15 22:05:06 -03:00
jmaustpc
13601fbcd8 display Parametric Ellipsoid Tree icon
Add the line
sPixmap = "Tree_Part_Ellipsoid_Parametric.svg";
to the Ellipsoid viewprovider
2013-03-15 22:05:06 -03:00
jmaustpc
5c7c7b5bda Add Parametric Part Plane Tree icon and reference in Part.qrc
Add Tree_Part_Plane_Parametric.svg and add its reference in
src/Mod/Part/Gui/Resources/Part.qrc
2013-03-15 22:05:06 -03:00
jmaustpc
cb45f66745 Change the tree icon displayed for Part_Box
Change the icon file name in the viewprovider for Part_Box
Add Part Box, Cylinder, Cone, Sphere, Ellipsoid, Torus
tree icons to the Part.qrc file
2013-03-15 22:05:06 -03:00
jmaustpc
e3777dafcc Add Tree icons for 3d Part primitives
This commit is just the icons themselves, not
the code to display them yet.
Tree_Part_Box, Tree_Part_Cone, Tree_Part_Cylinder,
Tree_Part_Sphere, Tree_Part_Ellipsoid,
Tree_Part_Torus,
2013-03-15 22:05:06 -03:00
jmaustpc
1804fc5718 Minor mod to icons for Part Circle, Ellipse,Helix, Line
reduce size of Circle, Ellipse,Helix, Line, within the icons
To increase their spacings so when stacked they don't collide
2013-03-15 22:05:06 -03:00
jmaustpc
85bcb92856 add ViewProviders & Tree icons for Part Point, Ellipse, & Helix
Add ViewProviders to select an icon for the part primitives
Point, Ellipse, Helix,
Also return Part Box tree icon to "Tree_Part.svg"
2013-03-15 22:05:06 -03:00
jmaustpc
7e3807ab49 new Part Primitives icons, display tree icons Part Line and Circle
New icons for Parametric Part Primitives
Point, Line, Circle, Ellipse, Helix

Display the icon in tree via independent viewproviders for
Part Parametric Line and Circle

Change Part Box tree icon to display yellow Part Box icon from the tool bar
2013-03-15 22:05:06 -03:00
wmayer
c2114d25fd Apply Jim's patch 2013-03-07 14:54:13 +01:00
wmayer
5bd1427f1d Fix wrong order of arguments in Part.makeThread 2013-03-05 12:57:26 +01:00
wmayer
3025c6e292 Validate face in extrusion feature 2013-03-03 12:24:23 +01:00
wmayer
288f2f6476 Fix compile error with OCC 6.5.x 2013-02-19 17:38:43 +01:00
wmayer
00b4c9e192 Fix for sweep if selected trajectory is broken 2013-02-19 15:17:24 +01:00
jriegel
bbac07e846 Fix for TopoShapeFacePyImp.cpp for older OCC versions 2013-02-17 15:44:49 +01:00
wmayer
0abef4d4e3 Mesh analyzing algorithms 2013-02-17 08:28:01 +01:00
logari81
9c7719e91b Part: Avoid code duplication in Part2DObject 2013-02-13 12:18:31 +01:00
jrheinlaender
18da371546 Re-worked Part::checkIntersection to give less false positives for pattern features 2013-02-08 14:32:00 +01:00
logari81
525cddaaf3 PartDesign: Refactor pattern features and gui
- remove StdDirection,StdAxis and StdMirrorPlane properties
- support sketch H_Axis, V_Axis, N_axis as valid references in patterns
- polish reference selection gui (unified for standard axes and custom references)
2013-01-09 23:18:38 +01:00
wmayer
0ebffa930a Do not pass 0 to PyObject_IsTrue 2012-12-30 23:16:56 +01:00
wmayer
1b345c193e Use PyObject_IsTrue to check argument 2012-12-29 15:59:54 +01:00
jriegel
fb2f381c1d remove some loging for release 2012-12-20 22:23:08 +01:00
wmayer
7408cc7589 0000919: Crash on upgrade from wire to face 2012-12-20 15:19:16 +01:00
Yorik van Havre
f4a47f089c Updated with latest crowdin translations 2012-12-18 13:28:11 -02:00
wmayer
f176811a4a 0000910: Circles Extrude Only Surfaces 2012-12-18 14:33:59 +01:00
wmayer
043dc60403 Do some error checking for sketch based features 2012-12-13 20:59:53 +01:00
logari81
1f51ebf8cf Sketcher: Enable positioning of sketches with the manual alignment tool 2012-12-10 13:58:45 +01:00
wmayer
d838f44e3c Make automake distcheck ready 2012-12-08 15:45:17 +01:00
Yorik van Havre
71b1777e8a Updated translation strings 2012-12-07 10:56:57 -02:00
wmayer
3cc9818713 0000903: V0.13 - Change Individual face color on solid is missing (finish this in 0.14) 2012-12-07 12:13:36 +01:00
wmayer
64e1c3635d Fix build failures with automake 2012-12-06 20:13:24 +01:00
wmayer
3e366a6b03 Add icon for cross-sections command 2012-12-03 12:34:12 +01:00
wmayer
56e352c421 Define closeDialog() method in Control as slot to allow delayed destruction of task dialogs 2012-11-28 13:48:22 +01:00
wmayer
dd67c22837 Open transaction when start editing with context-menu 2012-11-28 13:24:46 +01:00
wmayer
a1bf6277f1 Check for compound with single solid for thickness tool 2012-11-27 11:18:25 +01:00
wmayer
de5edb8f88 Little fix on offset/thickness task panel 2012-11-26 21:51:17 +01:00
wmayer
72bba68c2b Add thickness function 2012-11-26 21:10:09 +01:00
wmayer
b0b2509457 Add Face.OuterWire and mark Face.Wire as deprecated 2012-11-26 10:05:50 +01:00
wmayer
3a0067d19a Offset function 2012-11-25 15:56:46 +01:00
wmayer
89e5215d3b Offset function 2012-11-24 22:46:16 +01:00
wmayer
96afbb2756 Fill&sew shape and its offset 2012-11-24 21:24:58 +01:00
wmayer
aee645ee9d Make more consistent method names in TopoShape 2012-11-24 20:45:47 +01:00
wmayer
96f5e18b61 Add missing break statement in switch block 2012-11-23 12:29:54 +01:00
wmayer
6f993703a3 Enable word-wrap for long text in sweep panel 2012-11-07 20:35:04 +01:00
wmayer
babd172328 Fix crash when accessing non-existent sub-element in TopoShape 2012-11-07 11:00:03 +01:00
Yorik van Havre
9934a1dc0f Added new translations to makefiles 2012-10-30 10:49:36 -02:00
Yorik van Havre
be940cbd06 Updated translations from crowdin
* Updated the updateTranslations.py tool so it can now work with
  unzipped folders, and it updates qt resource files when necessary.
* Updated existing translations, changed a couple of language codes:
  es -> es-ES, pt -> pt-BR, zh -> zh-CN, se -> sv-SE
* Added new translations that have more than 50% translated:
  cs, hu, ro, sk, zh-TW, tr
2012-10-30 09:59:55 -02:00
jrheinlaender
32628462c2 PartDesign, Transformed features: Improved intersection check 2012-10-22 17:49:54 +02:00
wmayer
1c158ef924 View providers for sweep and loft 2012-10-22 16:49:24 +02:00
wmayer
ec3c79ad9c Compute parabola from three points 2012-10-22 15:55:39 +02:00
wmayer
d50fb2ba06 Allow to use revolve tool on Draft objects 2012-10-22 14:06:29 +02:00
wmayer
2e2873362b Fix STEP AP203/214 flaws 2012-10-04 12:47:38 +02:00
wmayer
9316de659d Use STEP AP203 for 64-bit due to a bug in OCC 2012-10-02 13:01:16 +02:00
wmayer
a5d9ee4be9 Use STEP AP203 for 64-bit due to a bug in OCC 2012-10-01 18:45:48 +02:00
wmayer
c223f44a97 0000834: Minor preselection color bug 2012-09-30 13:50:09 +02:00
wmayer
f403295ca7 0000832: Original color STEP model lost in import 2012-09-29 15:50:17 +02:00
wmayer
a20f4dddff Fix autotools, fix warning 2012-09-22 16:22:26 +02:00
wmayer
065213f9bd 0000545: Undo revolve causes crash illegal storage, fix disappearing shape after undo/redo 2012-09-21 13:05:37 +02:00
wmayer
08e6bc0e6a 0000545: Undo revolve causes crash illegal storage 2012-09-21 11:54:35 +02:00
wmayer
6e3b142cd8 0000833: Color-per-face info lost when you set transparency 2012-09-14 14:01:24 +02:00
wmayer
97fc423e2f Add required header file 2012-09-10 14:18:15 +02:00
wmayer
253620ce88 Backport to Qt 4.5 2012-09-10 13:01:53 +02:00
wmayer
d5079707af Fix Makefile 2012-09-09 12:46:06 +02:00
tanderson
48c40f0292 Changing model refine, face union, build cylinder construction.
* fixes part aox.brep provided by shoogen.
2012-09-09 11:23:51 +02:00
tanderson
67fab9cf39 adding check geometry command 2012-09-09 11:12:04 +02:00
wmayer
230ccd7b81 Improve documentation for isInside() 2012-08-27 13:22:45 +02:00
Yorik van Havre
3a8f6dff59 Updated translation files 2012-08-16 16:09:56 -03:00
wmayer
7510657f2a Fix possible crash when exporting STEP files 2012-08-15 13:20:28 +02:00
Yorik van Havre
81c839059a 0000630: User-defined defaults for shape colors
The default colors for new geometry (light grey + 2px black line)
are now a user preference (In Display->Colors properties)
2012-08-13 09:42:05 -03:00
wmayer
ba7be4f798 0000813: set colors dialog crash 2012-08-07 10:59:54 +02:00
wmayer
4520454d17 0000801: Accidental Cancel in set colors destroys all the work 2012-07-21 18:16:15 +02:00
logari81
755b62b57a Merge branch 'logari81/sketcher' 2012-07-13 13:04:43 +02:00
wmayer
70bb37ab9d Add approximate() method to B-spline surface class 2012-07-11 13:31:40 +02:00
logari81
093f1d1af0 Minor typo fix 2012-07-07 17:38:44 +02:00
logari81
2e6255305c Add python interface for Part::GeomPoint 2012-07-07 17:32:29 +02:00
wmayer
fc50177372 0000736: when object is deleted, auto show its parametric objects 2012-07-07 13:32:27 +02:00
wmayer
d9971311ed Fix problems with picking callback function 2012-07-05 13:27:17 +02:00
wmayer
dfca264acf Change title in settings panel 2012-06-29 16:30:22 +02:00
wmayer
013b5f0dce 0000764: Serialize Shape to python String 2012-06-28 18:29:48 +02:00
wmayer
bbafe9cb00 Add First/LastParameter attributes to TopoEdge 2012-06-26 14:58:05 +02:00
wmayer
1c55838f69 Apply patch to add interpolate() method to B-Spline surface class 2012-06-25 11:48:43 +02:00
Sebastian Hoogen
107b784d13 0000684: Check Shape after boolean before refine 2012-06-16 16:20:06 +02:00
wmayer
21add8911d First draft of makeThread 2012-06-15 13:04:07 +02:00
wmayer
f7b200c204 Copy version numbers of libraries in About dialog 2012-06-14 15:03:21 +02:00
wmayer
f6cf5227ed 0000749: PI was not declared in this scope - compile error 2012-06-14 13:01:07 +02:00
wmayer
b4aff85333 Fix critical warnings 2012-06-13 18:49:10 +02:00
wmayer
6621c00c10 Add sweep and loft to toolbar 2012-06-12 10:52:49 +02:00
wmayer
104f9d5225 Fix build errors with autotools, fix a couple of grave bugs 2012-06-11 21:19:49 +02:00
wmayer
5d7061a5b0 Workaround for weird sweeping problem, allow to select several edges as path 2012-06-11 13:22:11 +02:00
wmayer
180691db4f 0000226: Minor Bug with Box and Sphere not drawn correctly, update Sweep icon 2012-06-11 11:12:30 +02:00
wmayer
f2c63b90ab Add icons for loft and sweep 2012-06-10 10:18:54 +02:00
wmayer
55a205062a Show some help text in sweep panel 2012-06-09 17:16:41 +02:00
wmayer
2a7e6f3e96 0000144: Add several tools to Part module 2012-06-09 15:55:11 +02:00
wmayer
245cae03ef 0000144: Add several tools to Part module 2012-06-09 13:50:33 +02:00
wmayer
3e5c374a9b Fix build errors on Windows, fix a couple of bugs 2012-06-08 18:02:35 +02:00
jrheinlaender
d5c7c1ea45 Pad feature: Midplane, two-sided dimensions, up to first/last/face options 2012-06-08 17:32:54 +02:00
wmayer
e848b1e96a Add missing export macro for Box class 2012-06-07 23:19:00 +02:00
wmayer
fac54a4306 Method Part.Edge.split added 2012-06-05 11:55:45 +02:00
wmayer
4f154d3993 0000727: Keep faces colors on boolean operations 2012-06-04 22:58:37 +02:00
wmayer
f8f498a4f9 0000727: Keep faces colors on boolean operations 2012-06-04 11:43:20 +02:00
wmayer
0623cd9b5e Use ActionSelector in Loft panel and expose to Python by UiLoader 2012-06-03 14:22:05 +02:00
wmayer
4c566a6113 Make a convenient function to convert between gp_Trsf and Base::Matrix4D 2012-06-01 16:44:57 +02:00
wmayer
f2b4f5c18e Keep faces colors on boolean operations 2012-06-01 13:07:30 +02:00
wmayer
20fcef29c7 Keep faces colors on boolean operations 2012-06-01 13:07:30 +02:00
wmayer
9e872e4987 Keep faces colors on boolean operations 2012-06-01 13:07:29 +02:00
wmayer
8c3f97c98e Keep faces colors on boolean operations 2012-06-01 13:07:28 +02:00
wmayer
8078b7e0a7 Handle OCC exception in exportStl 2012-05-26 00:29:29 +02:00
wmayer
f19a0d20da Add parameter to keep trailing digits in object name of copy, other little fix 2012-05-25 12:12:30 +02:00
wmayer
2edfd1428c fix in makeTube 2012-05-18 00:12:30 +02:00
wmayer
57403910b0 Replace makeTube algorithm 2012-05-14 19:15:11 +02:00
wmayer
4b1c918f2d 0000646: Expose BRepOffsetAPI_MakePipeShell to python 2012-05-05 16:19:39 +02:00
wmayer
c9fa928b80 0000646: Expose BRepOffsetAPI_MakePipeShell to python 2012-05-05 16:11:41 +02:00
wmayer
0ea8beed7a update helix immediately 2012-05-03 17:01:09 +02:00
wmayer
11358e1b86 left hand helix 2012-05-01 13:17:10 +02:00
wmayer
7c0aaa5814 Do not override placement if shape is null 2012-05-01 12:20:12 +02:00
wmayer
f44a17a5a9 0000248: make the revolve-axis selectable 2012-04-28 14:21:32 +02:00
wmayer
44a6a8fd1a Part WB Loft tool extension 2012-04-26 13:27:05 +02:00
wmayer
3c621107c4 Fillet edge numbering issue 2012-04-26 12:52:45 +02:00
wmayer
c567271ac1 0000673: BSplineSurfacePy::insertVKnots manipulates UKnots 2012-04-16 17:22:48 +02:00
wmayer
2e3e3f0467 0000672: Loading Example Drawing extraction crashes at Baseclass.cpp line 115 2012-04-16 15:57:10 +02:00
jriegel
5c3b7725fe Merge remote-tracking branch 'remotes/origin/tanderson-merge-faceUnionFix' 2012-04-15 20:55:01 +02:00
wmayer
39f18cfe69 Fix broken RuledSurface feature 2012-04-13 17:50:28 +02:00
wmayer
715f98d1f3 0000624: Trim tool doesn't work with construction lines 2012-04-13 15:31:04 +02:00
wmayer
c11cf35f2a 0000649: Creating a ruled surface fails 2012-04-12 19:11:09 +02:00
wmayer
9ea269be1c 0000649: Creating a ruled surface fails 2012-04-12 19:06:38 +02:00
wmayer
85e9e013ab 0000668: getPole() does not provide proper bound checking 2012-04-12 13:24:48 +02:00
wmayer
0f1182e4ca Only one edge or more is required to build a face 2012-04-11 18:15:51 +02:00
wmayer
5c0cdea832 0000653: Menu shortcuts for the Sketcher item overlap with the Tools menu item 2012-04-11 12:24:51 +02:00
wmayer
b9770c2eda 0000649: Creating a ruled surface fails 2012-04-10 19:56:12 +02:00
wmayer
c1886bf24d Fix crash in TopoShapeface.getWire() 2012-03-28 15:07:28 +02:00
wmayer
2e062ab797 0000652: Polish language not available even if translation is available in source 2012-03-25 13:38:32 +02:00
tanderson
70ca4b65d5 refine shape, face union fix
* fix for circular boundary of a planar face.
2012-03-22 14:35:02 -04:00
wmayer
1fb805556b Improve Python doc for makeThickness() 2012-03-17 12:11:29 +01:00
wmayer
51773d2274 0000629: make Part::Revolution claim Child 2012-03-11 11:26:33 +01:00
wmayer
a76ac9ed01 Fix wrong translation in Part module 2012-03-02 16:43:09 +01:00
tanderson
5145acf1e4 adding orientation fix to face union cylinder
*fixes corupted face  with the y rod mount
2012-03-01 17:12:59 -05:00
wmayer
483131e628 Fix typos, fix wronng paths to resources 2012-03-01 20:29:33 +01:00