Commit Graph

31 Commits

Author SHA1 Message Date
wandererfan
ea6fb190f1 [TD]remove problematic boost check for planarity
- boost check for planar graph was consuming memory until
  crashing.
- since all our edges have been projected onto a plane, we
  don't require this check
2022-12-17 08:07:05 -05:00
Uwe
c8b51fb79c [TD] DrawUtil: remove unused includes
- also sort includes
- also move a definition to it
- also adapt two Gui files accordingly
2022-10-08 03:35:59 +02:00
Uwe
d3c70c8740 [TD] E* - L*: remove unused includes
- also sort includes
- also additions to precompiled header
2022-10-05 03:43:42 +02:00
wandererfan
a88d4730d8 [TD]New face finder algo 2022-09-05 19:52:34 -04:00
wandererfan
aa2b1b8392 [TD]CI clang warnings 2022-09-05 17:48:38 -04:00
wmayer
5f91eaa5eb TD: modernize C++: replace 'typedef' with 'using' 2022-08-30 10:59:39 +02:00
berniev
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
berniev
53ba98d636 Mod: use empty 2022-08-06 19:30:13 +02:00
wmayer
c5910c1530 TD: [skip ci] Fix several clazy issues:
* Using copy-ctor but class TechDraw::anglePoints has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
* Using copy-ctor but class TechDraw::arcPoints has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
* C++11 range-loop might detach Qt container (QList) [-Wclazy-range-loop-detach]
* signal arguments need to be fully-qualified (TechDrawGui::QGIView instead of QGIView) [-Wclazy-fully-qualified-moc-types]
* Use multi-arg instead [-Wclazy-qstring-arg]
* Use midRef() instead [-Wclazy-qstring-ref]
2022-07-25 17:00:48 +02:00
Uwe
6bc8a0236a [TD] EdgeWalker: try to fix CI compilation issue 2022-03-25 00:29:29 +01:00
wmayer
5c4fcaef1d TD: [skip ci] Fix coverity warning
Coverity warnings fixed:

CID 316559 (#1 of 1): Uninitialized scalar variable (UNINIT)
3. uninit_use_in_call: Using uninitialized value we. Field we.idx is uninitialized when calling push_back

CID 316549 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
4. uninit_member: Non-static class member pageheight is not initialized in this constructor nor in any functions that it calls.

CID 186161 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member parent is not initialized in this constructor nor in any functions that it calls.

CID 305170 (#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking this->m_baseFeat suggests that it may be null, but it has already been dereferenced on all paths leading to the check.

CID 186152 (#2 of 2): Uninitialized pointer field (UNINIT_CTOR)
3. uninit_member: Non-static class member m_mdi is not initialized in this constructor nor in any functions that it calls.

CID 192588 (#1 of 1): Same on both sides (CONSTANT_EXPRESSION_RESULT)
pointless_expression
2021-02-21 16:30:30 +01:00
luz paz
ae71abd1cc TechDraw: Header uniformity and whitespace fixes 2020-11-14 16:59:51 +01:00
wmayer
2f0951c03b LGTM: [skip ci] fix: Function declared in block 2020-07-24 20:37:17 +02:00
wmayer
d7ec2b1368 Replace Base::Exception with appropriate subclass 2018-11-14 19:42:10 +01:00
WandererFan
fd1a1b2685 Increase tolerance for overlapping Vertexes
Some "valid" shapes are being passed to findShapeOutline where edges
that should be connected are in fact separated 10x the expected tolerance
(2*Precision::Confusion) for 2 overlapping TopoDS_Vertex.
IntTools_Tools:ComputeVV also reports these Vertices as further apart than
their combined tolerances should allow.
This change introduces a tolerance into DrawUtil and EdgeWalker vertex
comparisions that is quite "sloppy" (0.00001) but which handles the sample
objects correctly. This tolerance is adequate for drawings.  Other uses
should be considered on case by case basis.
2017-04-02 20:04:34 -03:00
Kunda
a7414e5789 source typo fixes pt1 (only on py3 merged code)
issue 0002914
2017-02-27 11:32:47 +01:00
WandererFan
33479bd4e3 Initial working version of geometric crosshatch/PAT files 2017-01-29 19:40:34 -05:00
WandererFan
324171dbe4 Use contour area for wire size instead of bounding box 2017-01-20 00:09:38 -02:00
wmayer
7d842679bd in forward declaration replace class keyword when struct is expected
comment out unused parameters
2016-12-29 17:52:39 +01:00
WandererFan
5295f1e2e2 Improve handling of duplicate edges in projection 2016-11-18 10:14:29 +01:00
WandererFan
78de266aa3 Add planar embedding to EdgeWalker 2016-11-18 10:13:41 +01:00
WandererFan
15a56e7206 Fix over-aggressive input cleansing 2016-09-11 13:12:24 -04:00
WandererFan
af14abcef3 Add notes re Kura. subgraph 2016-09-11 13:12:24 -04:00
WandererFan
6b9d422136 Protect EdgeWalker against bad input 2016-09-11 13:12:24 -04:00
WandererFan
f7d87e24ee Handle case where no faces found in View. 2016-09-11 13:12:24 -04:00
WandererFan
5197ae5313 Fix for Wires with same bbox, different areas 2016-09-01 12:14:43 -04:00
WandererFan
1dfdc5f079 Py binding for EdgeWalker
refactor EdgeWalker code from DVP,DVS
2016-09-01 12:14:42 -04:00
WandererFan
a14bebb1a8 Add methods for removing equivalent edgeLists from result 2016-08-26 11:39:03 -03:00
WandererFan
7511ff146c Fix sloppy Namespace qualifiers 2016-07-11 15:32:16 +02:00
WandererFan
d2763eebfc Working Face selection 2016-07-11 15:32:16 +02:00
WandererFan
a843759f29 Basic Face detection using BGL 2016-07-11 15:32:16 +02:00