Commit Graph

22587 Commits

Author SHA1 Message Date
wmayer
2b49d60ac5 Sketcher: [skip ci] fix build failure 2020-10-01 08:10:28 +02:00
luz paz
bb2a4050e7 Mesh: fix typos in SVG markup descriptions [skip-ci] 2020-09-30 22:40:55 +02:00
John Yani
2cf6d093d6 Proper check for Qt version 2020-09-30 22:36:22 +02:00
John Yani
893fd13b99 HiDPI: Hot point scaling is only required for X11 2020-09-30 22:31:43 +02:00
sliptonic
e926e12279 Merge pull request #3879 from sliptonic/feature/vcarve
[Path] Feature/vcarve  using new PathVoronoi from mlampert.  Needs testing
2020-09-30 09:47:31 -05:00
Yorik van Havre
c2cec2c38a Merged crowdin translations 2020-09-30 14:37:02 +02:00
Yorik van Havre
545055f65f Updated ts files 2020-09-30 13:06:53 +02:00
vocx-fc
0ff058ca94 Surface: Vertices instead of Vertexes in the task panel 2020-09-30 12:32:36 +02:00
vocx-fc
c6d2d37773 Surface: new Sections icon
The `Surface_Sections` command was recently introduced in v0.19
(9c34952, c6fb8df) so its icon is updated as well.
2020-09-30 12:32:36 +02:00
vocx-fc
6a9c644383 Surface: upgraded Surface icons
The `Surface_Workbench` icon is the same as `Surface_Surface`,
which is now an SVG and not XPM.
The lines are thicker and the colors have been adjusted
with a gradient, instead of being solid and plain looking.

Also the following were updated: `BSplineSurface`,
`BezierSurface`, `Cut`, `Filling`, `Sewing.

The `BezierSurface`, `Cut`, and `Sewing` icons are not currently used
in the workbench, but they were still updated in case
a future command uses them.
2020-09-30 12:32:36 +02:00
vocx-fc
1d486dc669 Surface: new SVG icon for the workbench, rename others
Replace the hard-coded XPM icon in `InitGui.py` for the workbench
with an SVG file, which at this time is identical to the `Surface` icon.
Change `CMakeLists.txt` to properly install this new icon.

Rename all icons, so that all have the `Surface_` prefix.

Use the new icon names in the viewproviders and task panels.
2020-09-30 12:32:36 +02:00
John Yani
d5d5301144 Fix indentation 2020-09-30 12:31:15 +02:00
John Yani
826f6c1bf3 HiDPI cursors: Support Qt < 5
Forum thread: https://forum.freecadweb.org/viewtopic.php?p=433621#p433621
2020-09-30 12:31:15 +02:00
Chrismettal
9d3e1b764d [Stylesheet] Add new "behave" dark stylesheet
Modified stylesheet based on one of the "darker" stylesheets to fit the Behave color theme
2020-09-30 12:29:19 +02:00
vocx-fc
2ce3629443 Draft: importSVG considers Shape-less objects for export
If the object has a `Shape` it uses its bounding box to enlarge
the page size of the SVG. If it does not have a `Shape`
("Draft Text", "Draft Dimension", other `App::FeaturePython`)
it uses `Draft.get_bbox` to calculate one bounding box
from the viewprovider if possible.
2020-09-30 12:06:48 +02:00
vocx-fc
9227330fff Draft: get_bbox function to get the bounding box from RootNode
Normally the bounding box is taken from `Shape.BoundBox`.
Certain objects don't have a `Shape`, like `App::FeaturePythons`,
so the bounding box is calculated from `ViewObject.RootNode`.
2020-09-30 12:06:48 +02:00
Markus Lampert
a71632b914 More integer type cleanup for the voronoi python interface 2020-09-29 19:50:33 -05:00
wmayer
710a565184 Part: [skip ci] expose BRepOffsetAPI_MakeFilling to Python 2020-09-30 01:19:30 +02:00
Markus Lampert
68fecf9a90 Unified voronoi indices for python to be of type long 2020-09-29 14:58:42 -05:00
sliptonic
d29b2dcd3f whitespace 2020-09-29 14:03:37 -05:00
Amritpal Singh
58c20b2567 Adopted vocx-fc comment. 2020-09-29 18:50:30 +02:00
Amritpal Singh
b7b24cbb6c Fixed bug: In exporting IFC with shared clone shapes geometry, clone of clone object displaced because of bug in Draft.get_clone_base function. 2020-09-29 18:50:30 +02:00
sliptonic
8b772b03a5 rename OTHER 2020-09-28 14:58:09 -05:00
sliptonic
907a9d9b75 move vcarve out of experimental 2020-09-28 14:58:09 -05:00
sliptonic
1e9cabd53b remove need for cuttingedgeheight
Calculating from diameter and cuttingedgeangle
2020-09-28 14:58:09 -05:00
sliptonic
3ffa3bf285 improve selection and avoid border case with ultra short segments 2020-09-28 14:58:09 -05:00
sliptonic
971e4a9915 Resolve UI issues
taskpanel threshold value
add constants to PathVoronoi calls
check for tool properties
set correct z height coloring exterior lines
2020-09-28 14:58:09 -05:00
sliptonic
315e18c78a Path: Vcarve fixes
formatting fixes
remove reference to old ToolType
2020-09-28 14:58:09 -05:00
sliptonic
bfc37274bc Rewrite for boost voronoi 2020-09-28 14:58:09 -05:00
sliptonic
b9d7dbc380 Path: Vcarve - Added threshold property to remove unwanted segments
code cleanup & debug
2020-09-28 14:58:09 -05:00
sliptonic
f711cfb192 Path: vcarve add feed rate 2020-09-28 14:58:09 -05:00
sliptonic
7a4ad8be71 path: vcarve requires engraver with proper angle
vcarve calculates depth with MIC now
2020-09-28 14:58:09 -05:00
sliptonic
7641a54146 Path: increasing the discretize precision 2020-09-28 14:58:09 -05:00
sliptonic
9c68052d4d Path: add vcarve operation using openvoronoi 2020-09-28 14:58:08 -05:00
Markus Lampert
c3306582bf Added voronoi colorExterior case where one external vertex coincides with a point of an input segment. 2020-09-28 14:58:08 -05:00
Markus Lampert
81a7341632 Added vertex cache to voronoi colorExterior callback processing - cuts execution time in half. 2020-09-28 14:58:08 -05:00
Markus Lampert
67ded9cbfa Added retrieval of points and segments for voronoi diagram 2020-09-28 14:58:08 -05:00
Markus Lampert
3a50f84ba4 Added Index as attribute of all voronoi objects for easier debugging 2020-09-28 14:58:08 -05:00
Markus Lampert
e3adbc0bf9 Simplified and further optimised colinear colorisation 2020-09-28 14:58:08 -05:00
Markus Lampert
65b2cc1f48 Added color -1 to mean resetting all color. 2020-09-28 14:58:08 -05:00
Markus Lampert
32cc97b1a7 Some algorithm optimisations 2020-09-28 14:58:08 -05:00
Markus Lampert
08e73632ec Added callback to colorExterior to also color 'interior' 2020-09-28 14:58:08 -05:00
Markus Lampert
7e6975a154 Added colorColinear and resetColor algorithms 2020-09-28 14:58:08 -05:00
Markus Lampert
10ce91f873 Added optional scaling factor to Voronoi construction. 2020-09-28 14:58:08 -05:00
Markus Lampert
0045a04d4b Added scaling to micro meters 2020-09-28 14:58:08 -05:00
Markus Lampert
afdf41f716 Added support for distances of edge end points. 2020-09-28 14:58:08 -05:00
Markus Lampert
8d68122ec1 Added api calls for coloring all twins and coloring exterior edges and vertices. 2020-09-28 14:58:08 -05:00
Markus Lampert
42b074c0dd Added toGeom for curved edges. 2020-09-28 14:58:08 -05:00
Markus Lampert
8f16b94669 Added geometries for vertices and linear edges. 2020-09-28 14:58:08 -05:00
Markus Lampert
bbd2c049a9 Added support for voronoi cells 2020-09-28 14:58:08 -05:00