Add centermarks for circles in Views

This commit is contained in:
WandererFan
2016-07-31 19:42:42 -04:00
committed by wmayer
parent cb9be09512
commit 0805e7c854
9 changed files with 239 additions and 25 deletions

View File

@@ -38,6 +38,7 @@
#include <gp_Pnt.hxx>
#include <gp_Dir.hxx>
#include <gp_Vec.hxx>
#include <gp_Ax2.hxx>
#include <Geom_BSplineCurve.hxx>
#include <Geom_BezierCurve.hxx>
#include <GeomConvert_BSplineCurveToBezierCurve.hxx>
@@ -255,6 +256,8 @@ Circle::Circle(const TopoDS_Edge &e)
gp_Circ circ = c.Circle();
const gp_Pnt& p = circ.Location();
const gp_Ax2& p1 = circ.Position();
const gp_Pnt& l = p1.Location();
radius = circ.Radius();
center = Base::Vector2D(p.X(), p.Y());
@@ -436,6 +439,15 @@ bool BSpline::isLine()
//**** Vertex
Vertex::Vertex(double x, double y)
{
pnt = Base::Vector2D(x, y);
extractType = ExtractionType::Plain; //obs?
visible = false;
ref3D = -1; //obs. never used.
isCenter = false;
}
bool Vertex::isEqual(Vertex* v, double tol)
{
bool result = false;