Commit Graph

229 Commits

Author SHA1 Message Date
wandererfan
8ee01aaf68 Fix extension line direction in isometric views 2018-06-22 10:47:55 -03:00
WandererFan
02b64dca3a VPart/VSection Graphic Properties to Gui side 2018-02-14 15:42:26 -05:00
WandererFan
eafba8cbfe Fix Exception when Source Shape IsNull 2018-01-22 19:10:28 -05:00
TeroK
61b202992c TechDraw: Add option to use polygonal HLR algorithm
Now on property panel there is option 'Coarse View' which allows to set
selected drawing view's Hidden Line Removal to utilize polygonal algorithm.
This should be faster on same cases (complex models).

When this option is set for a view there is known limitation with dimensions not
working on this experimental mode. At least currently this is best utilized on
view with no dimensions.

Also the vertices' 'black dots' are not drawn on this mode view to avoid
cluttering.  Face hilite is avoided, to gain speed. All curves are represented
by short linesegments in this mode.

Previously TechDraw always used OCC's exact HLR algorithm to generate views,
which produces good quality and continous shape lines but is sometimes
slower to generate than with polygonal approach.

Additionally now there is bool 'CoarseView' Parameter Editor setting, if anyone
wants to set this as their default.
2018-01-22 19:31:30 +01:00
WandererFan
4f2fe1d1a5 Allow GroupExtension as Source for Views
- DrawViewPart had special case logic for App::Part.
  It now handles DocumentObjectGroup and any other
  GroupExtensions as Source.
2018-01-20 14:07:31 +01:00
WandererFan
a858c3b9be Fix crash when deleting View with Dimensions
- if a Dimension has multiple references to a
  DrawViewPart (ex vertex-vertex) the Dimension
  will appear twice in the DVP's InList.  This
  commit ensures that the Dimension is only
  deleted once when deleting the DVP.
2018-01-12 10:30:42 -02:00
WandererFan
60e43253f7 Fix Section Line Wrong Position
- Section cut line Y coord needs to be mirrored to
  be position correctly on Page.
2018-01-11 11:21:25 -02:00
WandererFan
71253bad81 Fix crash when Source.Shape is Null 2017-12-31 14:54:05 +01:00
WandererFan
309178f2ff Allow multiple sources for all View types 2017-12-31 14:54:05 +01:00
WandererFan
622d91f743 Implement option for perspective drawing views 2017-12-03 19:17:53 -02:00
WandererFan
4756cfab4e Implement LineGroups for default weights
- Add ability to control default weight for visible,
  hidden and decorative lines from a configuration
  file. Diffent sets of defaults can be specified as
  a preference.
2017-12-02 13:51:25 +01:00
WandererFan
3b8c240f89 Rotate DrawViewPart around part centroid 2017-11-12 19:08:32 -05:00
WandererFan
913e6a7fd8 Allow Views of App::Parts 2017-10-02 13:48:45 -03:00
WandererFan
6d032f1bcf Change links to Global scope 2017-10-02 13:48:45 -03:00
WandererFan
a580f60e1e change isDeleting to isUnsetting
- DocumentObject::isDeleting was changed to isRemoving.
  This commit just prevents future confusion.
2017-10-02 13:48:45 -03:00
WandererFan
ce7f6ed351 Allow Section based on ViewMulti 2017-10-02 13:48:45 -03:00
WandererFan
e35e2f2573 Eliminate superfluous DPG executes 2017-09-10 15:22:49 +02:00
WandererFan
ddbbae9956 Allow DrawPage updates to be suspended 2017-09-10 15:21:54 +02:00
wmayer
0d617f97d6 Port to occ7.2:
+ Standard_Failure::Caught() is now marked as deprecated and should be replaced with standard C++ exception handling
2017-09-01 16:27:46 +02:00
WandererFan
9ef6b76977 implement detail view highlight in base view 2017-05-10 17:43:48 +02:00
Peter Lama
fa4bebf2e0 Use OCCT Handle macro for Handle_ classes
This is the result of running OCCT's upgrade script provided
with OCCT 7.0. See
https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form
and
https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019
for why this is necessary for OCCT >= 7.1
2017-04-20 12:27:34 +02:00
WandererFan
b20d51e1b4 Cleanup orphan features on DVP delete 2017-02-09 15:45:04 -05:00
WandererFan
977b4adbbb Preferences for GeomHatch 2017-01-29 19:40:34 -05:00
WandererFan
1c8395e229 fix naming conflicts 2017-01-29 19:40:34 -05:00
WandererFan
60c7f2f69a Geometric hatch for Section face 2017-01-29 19:40:34 -05:00
WandererFan
33479bd4e3 Initial working version of geometric crosshatch/PAT files 2017-01-29 19:40:34 -05:00
WandererFan
c3fd7a8c12 Prevent DetailView crop circle marker 2017-01-29 19:40:33 -05:00
WandererFan
faf7f7729f Clean up children on Page delete 2017-01-29 19:40:33 -05:00
WandererFan
01b34749a9 Section directions from rotated DPGI's 2016-12-29 14:43:37 +01:00
WandererFan
09f701786f Working proof of concept for DPG rots & dirs 2016-12-29 14:43:00 +01:00
WandererFan
d14cfa415f getViewAxis -> DVP virtual method 2016-12-29 14:42:46 +01:00
WandererFan
efb7f14866 DPG improvements
eliminate orientation matrix
remove appl logic from dialog
add 3D/Front buttons
2016-12-04 15:25:47 +01:00
WandererFan
504633b7fe Add 2nd page of preferences 2016-11-24 14:44:37 -02:00
WandererFan
5295f1e2e2 Improve handling of duplicate edges in projection 2016-11-18 10:14:29 +01:00
wmayer
d2d927e760 performance improvements
+ use const-reference as argument to avoid tmp. copy
+ use prefix incremation operator instead of postfix increment operator
2016-11-08 13:51:22 +01:00
WandererFan
9ad177915d Create outline of 3D shape 2016-11-07 17:20:19 -05:00
WandererFan
a79d672bbd AutoScaling Fixes for non-DVP objects 2016-10-31 11:06:15 -02:00
WandererFan
200ed7a675 Fix ProjectionGroup Automatic scaling 2016-10-31 11:06:15 -02:00
WandererFan
6b175cc0c9 Section Rebuild subproject
new dialog
new Section/SectionLine logic
remove XAxisDirection property
2016-10-31 11:06:15 -02:00
WandererFan
bc2ac76fc5 Rename properties to fit PropertyEditor window 2016-10-06 11:00:35 -03:00
WandererFan
af9a6950e2 Fix #2707 hidden seam/smooth lines 2016-10-06 11:00:35 -03:00
WandererFan
5175771590 Add options for face detection and cut face edge display 2016-10-06 11:00:35 -03:00
WandererFan
e0ca83d5cc Performance Ph2 2016-10-06 11:00:35 -03:00
WandererFan
c216da56d5 Performance improvements Ph1 2016-09-29 17:37:20 -04:00
wmayer
6148bf4df5 fix -Wextra & -Wdeprecated in TechDraw 2016-09-22 19:32:16 +02:00
WandererFan
2ed026e173 reduce use of "execute" on cosmetic changes. 2016-09-11 13:12:24 -04:00
WandererFan
6b9d422136 Protect EdgeWalker against bad input 2016-09-11 13:12:24 -04:00
WandererFan
e7338ee425 Break up try/catch blocks for easier debugging 2016-09-08 16:18:52 +02:00
WandererFan
c4551e2727 Handle degenerate edges in face detection 2016-09-08 16:18:52 +02:00
WandererFan
0cde0b0d48 Fix part/section handling of Face OuterWire 2016-09-01 12:14:43 -04:00