mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-03-15 20:51:27 +05:00
Added a check on proximity between last point and current point in 3D sketch construction for construction by angle like it was done for construction by coordinates.
It fixes a bug in preview of the 3D sketcher.
This commit is contained in:
parent
5d7219e826
commit
7e54ff3916
@ -243,14 +243,16 @@ Standard_Integer GEOMImpl_3DSketcherDriver::Execute(TFunction_Logbook& log) cons
|
|||||||
else
|
else
|
||||||
Standard_ConstructionError::Raise("3D Sketcher error: Bad format of command.");
|
Standard_ConstructionError::Raise("3D Sketcher error: Bad format of command.");
|
||||||
|
|
||||||
BRepBuilderAPI_MakeVertex MV (vp);
|
if ((vp - p).SquareModulus() > Precision::Confusion()) {
|
||||||
TopoDS_Vertex VV = TopoDS::Vertex(MV.Shape());
|
BRepBuilderAPI_MakeVertex MV (vp);
|
||||||
BRepBuilderAPI_MakeEdge ME (V, VV);
|
TopoDS_Vertex VV = TopoDS::Vertex(MV.Shape());
|
||||||
MW.Add(ME);
|
BRepBuilderAPI_MakeEdge ME (V, VV);
|
||||||
nbEdges++;
|
MW.Add(ME);
|
||||||
|
nbEdges++;
|
||||||
|
|
||||||
p = vp;
|
p = vp;
|
||||||
V = VV;
|
V = VV;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'W':
|
case 'W':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user