mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0028694: IGES reader produces too small edge covered by its vertices
Methods IsUClosed() and IsVClosed() are changed (check distance to middle point is added).
This commit is contained in:
parent
2382618330
commit
65bb82f241
File diff suppressed because it is too large
Load Diff
@ -1918,7 +1918,7 @@ static Standard_Integer IsShortSegment (const ShapeFix_WireSegment &seg,
|
|||||||
const Standard_Real VResolution)
|
const Standard_Real VResolution)
|
||||||
{
|
{
|
||||||
TopoDS_Vertex Vf = seg.FirstVertex();
|
TopoDS_Vertex Vf = seg.FirstVertex();
|
||||||
if ( ! Vf.IsSame ( seg.LastVertex() ) ) return Standard_False;
|
if ( ! Vf.IsSame ( seg.LastVertex() ) ) return 0;
|
||||||
|
|
||||||
gp_Pnt pnt = BRep_Tool::Pnt(Vf);
|
gp_Pnt pnt = BRep_Tool::Pnt(Vf);
|
||||||
Standard_Real tol = BRep_Tool::Tolerance(Vf);
|
Standard_Real tol = BRep_Tool::Tolerance(Vf);
|
||||||
@ -1929,7 +1929,7 @@ static Standard_Integer IsShortSegment (const ShapeFix_WireSegment &seg,
|
|||||||
Handle(ShapeExtend_WireData) sbwd = seg.WireData();
|
Handle(ShapeExtend_WireData) sbwd = seg.WireData();
|
||||||
for ( Standard_Integer i=1; i <= sbwd->NbEdges(); i++ ) {
|
for ( Standard_Integer i=1; i <= sbwd->NbEdges(); i++ ) {
|
||||||
TopoDS_Edge edge = sbwd->Edge ( i );
|
TopoDS_Edge edge = sbwd->Edge ( i );
|
||||||
if ( ! Vf.IsSame ( sae.LastVertex ( edge ) ) ) return Standard_False;
|
if ( ! Vf.IsSame ( sae.LastVertex ( edge ) ) ) return 0;
|
||||||
Handle(Geom2d_Curve) c2d;
|
Handle(Geom2d_Curve) c2d;
|
||||||
Standard_Real f, l;
|
Standard_Real f, l;
|
||||||
if ( ! sae.PCurve ( edge, myFace, c2d, f, l ) ) continue;
|
if ( ! sae.PCurve ( edge, myFace, c2d, f, l ) ) continue;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
puts "TODO OCC28694 ALL: ERROR: OCC28694 is reproduced."
|
|
||||||
|
|
||||||
puts "========"
|
puts "========"
|
||||||
puts "OCC28694"
|
puts "OCC28694"
|
||||||
puts "========"
|
puts "========"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
puts "TODO bug30075 ALL: Faulty shapes in variables faulty_1 to faulty_"
|
||||||
|
|
||||||
puts "========================"
|
puts "========================"
|
||||||
puts " OCC55 "
|
puts " OCC55 "
|
||||||
puts "========================"
|
puts "========================"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user