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
This commit is contained in:
@@ -1447,10 +1447,10 @@ Vertex::Vertex(Base::Vector3d v) : Vertex(v.x,v.y)
|
||||
}
|
||||
|
||||
|
||||
bool Vertex::isEqual(Vertex* v, double tol)
|
||||
bool Vertex::isEqual(const Vertex& v, double tol)
|
||||
{
|
||||
bool result = false;
|
||||
double dist = (pnt - (v->pnt)).Length();
|
||||
double dist = (pnt - (v.pnt)).Length();
|
||||
if (dist <= tol) {
|
||||
result = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user