Basic Face detection using BGL

This commit is contained in:
WandererFan
2016-06-01 06:35:01 -04:00
committed by wmayer
parent cd96b40983
commit f11e8ffa10
12 changed files with 579 additions and 36 deletions

View File

@@ -24,6 +24,9 @@
#ifndef _DrawViewPart_h_
#define _DrawViewPart_h_
#include <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.hxx>
#include <App/DocumentObject.h>
#include <App/PropertyLinks.h>
#include "DrawView.h"
@@ -34,13 +37,12 @@
namespace TechDraw {
class DrawHatch;
class WalkerEdge;
}
namespace TechDraw
{
/** Base class of all View Features in the drawing module
*/
class TechDrawExport DrawViewPart : public DrawView
{
PROPERTY_HEADER(TechDraw::DrawViewPart);
@@ -106,6 +108,13 @@ protected:
std::vector<TopoDS_Wire> sortWiresBySize(std::vector<TopoDS_Wire>& w, bool reverse = false);
class wireCompare;
bool isOnEdge(TopoDS_Edge e, TopoDS_Vertex v, bool allowEnds = false);
std::vector<TopoDS_Edge> splitEdge(std::vector<TopoDS_Vertex> splitPoints, TopoDS_Edge e);
double simpleMinDist(TopoDS_Shape s1, TopoDS_Shape s2);
bool isSamePoint(TopoDS_Vertex v1, TopoDS_Vertex v2);
int findUniqueVert(TopoDS_Vertex vx, std::vector<TopoDS_Vertex> &uniqueVert);
int findEdgeByWalkerEdge(WalkerEdge we, std::vector<TopoDS_Vertex> uniqueVert, std::vector<TopoDS_Edge>& edges);
private:
static App::PropertyFloatConstraint::Constraints floatRange;