Improve handling of duplicate edges in projection

This commit is contained in:
WandererFan
2016-11-14 17:03:32 -05:00
committed by wmayer
parent 3797f7ebc3
commit 1f0899ef3d
7 changed files with 233 additions and 16 deletions

View File

@@ -34,6 +34,8 @@
#include <TopoDS_Face.hxx>
#include <TopoDS_Shape.hxx>
#include <Base/Vector3D.h>
namespace TechDraw
{
@@ -50,6 +52,11 @@ class TechDrawExport DrawUtil {
static double angleWithX(TopoDS_Edge e, TopoDS_Vertex v);
static bool isFirstVert(TopoDS_Edge e, TopoDS_Vertex v);
static bool isLastVert(TopoDS_Edge e, TopoDS_Vertex v);
static bool fpCompare(const double& d1, const double& d2);
static Base::Vector3d vertex2Vector(const TopoDS_Vertex& v);
static std::string formatVector(const Base::Vector3d& v);
static int vectorCompare(const Base::Vector3d& v1, const Base::Vector3d& v2);
//debugging routines
static void dumpVertexes(const char* text, const TopoDS_Shape& s);