wmayer
e8f9c8a1d3
TD: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
883012e4b0
TD: Fix several coverity issues:
...
* CID 316569: Uninitialized scalar variable
* CID 350651: Unchecked dynamic_cast
* CID 350565: Unchecked dynamic_cast
* CID 350595: Unchecked dynamic_cast
* CID 350638: Unchecked dynamic_cast
* CID 350547: Division or modulo by float zero
2022-03-13 15:40:49 +01:00
edi271
8003ea80e5
[TD] Include Intersection method into DrawUtil class
2022-01-29 14:49:44 -05:00
Wanderer Fan
28c5890bc9
[TD] avoid memory leaks by using shared_ptr
...
TD geometry objects are sometimes double deleted. This
change uses shared_ptr instead of raw pointers to manage
deletions.
2022-01-07 13:34:20 -05:00
wmayer
3fa4a321d3
TD: replace usage of raw pointers of Vertex and Face with shared pointers.
...
This fixes issue 4741: Broken File After Using Landmark Dimension in TechDraw
2021-12-10 14:25:24 +01:00
wmayer
a7f9c2f1b9
OCCT: port FreeCAD sources to version 7.6
...
SMESH is not yet ported
Although FreeCAD code compiles with OCCT 7.6 it doesn't work at the moment
2021-10-09 13:49:02 +02:00
Tomas Pavlicek
f31988b010
TechDraw - Add edge midpoint cosmetic vertex fix - added comments
2021-06-24 20:47:10 +02:00
Tomas Pavlicek
505a12cb5a
TechDraw - Add edge midpoint cosmetic vertex fix
2021-06-21 15:20:52 +02:00
wmayer
9209d35390
TD: fix memory leaks in BaseGeom::baseFactory() and make code more readable
2021-04-23 17:05:13 +02:00
WandererFan
64a96e2216
[TD]CosmeticEdge setters and getters
2020-06-09 18:40:59 -04:00
WandererFan
2db99798f6
[TD]Improve section face display
2020-06-04 09:00:22 -04:00
wandererfan
cb2a3d529c
[TD]Landmark Dims initial impl
2020-02-25 17:21:00 -05:00
wandererfan
15f180038f
[TD]add ability to filter obvious geometry errors
...
- also add checks for geometry errors
2019-12-10 06:51:09 -05:00
wandererfan
a78e4229da
[TD]correct face detection to avoid ghost faces
2019-11-27 07:31:45 -05:00
asapelkin
ced8100ab9
use emplace_back instead of push_back where justified
2019-11-21 14:48:09 +01:00
wandererfan
e64929de14
[TD]const-ness for dump function parameter
2019-11-10 15:58:45 -05:00
wandererfan
585a1ed772
[TD]fix duplicate name in parent & derived
2019-11-07 16:59:10 -05:00
wandererfan
5957b72573
[TD]ensure default edge avail for geom copy
2019-11-06 20:31:02 -05:00
wandererfan
f539a0ea8c
[TD]use UUID for CosmeticEdges instead of indices
2019-11-06 20:31:02 -05:00
wandererfan
b34eb9de77
[TD]Implement unique tags for Cosmetic Vertex
2019-11-02 14:59:32 -04:00
wandererfan
88b07896e6
[TD]Extent Dimensions
2019-11-02 14:59:32 -04:00
wandererfan
67bfc739ec
[TD]Check first/last geom points exist
2019-09-17 06:51:04 -04:00
wmayer
a79ce8d823
add missing std:: namespace to build on Debian 10
2019-08-21 23:56:46 +02:00
wandererfan
9828655f48
[TD]Add Properties for Cosmetic persistence
2019-07-15 12:36:48 -04:00
wandererfan
5d601c1cdd
[TD]Add CenterLine edit function
2019-07-15 12:36:48 -04:00
wandererfan
7ee2f0c80a
Cleanup dangling debug code
2019-07-15 12:36:48 -04:00
wandererfan
fbfdb69c20
[TD]Py Cosmetic Vertex, Line, Circle Arc
2019-07-15 12:36:48 -04:00
wandererfan
07e26d3624
Initial working version Face Centerline
2019-06-06 19:58:15 -04:00
wandererfan
108038df91
Add Midpoint and Quadrant Cosmetic Vertex
2019-05-24 19:38:02 -04:00
wandererfan
3f7570ad80
Initial version addCosmeticVertex
2019-05-24 19:38:02 -04:00
wandererfan
af0271691c
Improve radius/diameter dims for ellipse,spline
2019-05-13 12:29:15 -04:00
wandererfan
626ee0c98d
Fix TD Dfx export - spline conversion
2019-03-28 10:44:33 -03:00
wmayer
d7ec2b1368
Replace Base::Exception with appropriate subclass
2018-11-14 19:42:10 +01:00
wandererfan
fce600e29c
Handle case of no points returned
...
- GeomAPI_ProjectPointOnCurve sometimes returns
zero points and/or throws "NotDone" exception.
2018-11-09 22:26:37 +01:00
wandererfan
3ec9b798bf
Fix BSpline/Circle conversion
2018-10-30 13:25:33 +01:00
wandererfan
64538f7b3c
Use circles for circular BSplines
2018-10-25 10:58:53 -03:00
wandererfan
7a8c559bcc
Upgrade test for BSpline is Line
2018-10-22 15:34:13 -03:00
wandererfan
395905b29c
Handle Straight Line BSplines
2018-10-02 09:42:16 -03:00
wmayer
fe6b78e638
fix MSVC warning: unreferenced local variable
2018-08-13 11:06:20 +02:00
wandererfan
c0c36138d7
Allow circular BSplines to be dimensioned
2018-08-11 11:24:12 +02:00
Markus Lampert
e13c09235f
Changed all catch types to references for polymorphic exceptions.
2018-08-08 15:45:30 +02:00
wandererfan
ae2b51d40f
Add some debug and util routines.
2018-04-25 11:09:39 +02:00
WandererFan
ba5f618f93
Fix Drawing/TechDraw BSplines
...
In some cases the Geom_BSplineCurve returned by
BrepAdaptor_Curve.BSpline() does not have the
same endpoints as the original Edge and should
not be used in place of Approx_Curve3d.
2017-06-28 22:14:01 +02:00
WandererFan
d8eec8c7e1
Fix #1937 mis-shapen projections in TechDraw and Drawing
...
Complex curves need more bezier segments for accurate representation.
2017-05-30 15:44:38 +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
082045456f
Initial DrawingViewDetail
2016-11-24 14:44:37 -02:00
wmayer
2d8e70085e
rename 2d tool classes to be consistent with 3d classes
2016-11-21 14:29:51 +01:00
WandererFan
dd13cb2534
Fix handling of BezierCurves
...
Replace custom bbox code with OCC/Base code
Refactor duplicate code Geometry/DrawProjectSplit
2016-11-20 10:06:00 +01:00
WandererFan
72c8f7332f
Dimension fixes
...
Prevent _M_range_check on wrong selection
Allow unlinking of linked Dimension
Allow Horiz/Vert projected Dims
Improve error msg for invalid selction
2016-10-31 11:06:15 -02:00
WandererFan
6e60ca1402
Suppress extraneous log messages
2016-09-11 13:12:24 -04:00