- Avoid getting pcurve of edge on not connected face.
- Avoid building wire of empty set of edges.
Small correction of test case for issue CR27894
if (IsSameDomain(aFace,anCheckedFace, myLinTol, myAngTol)) {
// hotfix for 27271: prevent merging along periodic direction.
- if (IsLikeSeam(edge, aFace, aBaseSurface))
+ if (IsLikeSeam(edge, anCheckedFace, aBaseSurface))
continue;
// replacing pcurves
}
sawo.Add(c2d->Value(f).XY(),c2d->Value(l).XY());
}
+ if (sawo.NbEdges() == 0)
+ continue;
sawo.Perform();
// constructind one degenerative edge
--- /dev/null
+puts "============"
+puts "OCC27894"
+puts "============"
+puts ""
+###############################
+## Crash when calling ShapeUpgrade_UnifySameDomain
+###############################
+
+stepread [locate_data_file bug27894_usd_raises_Standard_NullObject.stp] a *
+renamevar a_1 a
+unifysamedom result a
+
+checknbshapes result -m UnifySameDomain -face 18 -edge 45
+
+checkview -display result -2d -path ${imagedir}/${test_image}.png