mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
56ecba34df | ||
|
73f4f6160a |
@@ -150,6 +150,7 @@ static Standard_Boolean Connect (const Handle(ShapeAnalysis_Wire)& theSAW,
|
|||||||
const Standard_Integer number,
|
const Standard_Integer number,
|
||||||
Handle(ShapeExtend_WireData)& Gsewd)
|
Handle(ShapeExtend_WireData)& Gsewd)
|
||||||
{
|
{
|
||||||
|
(void)number;
|
||||||
Gsewd = new ShapeExtend_WireData;//local translation (for mysewd)
|
Gsewd = new ShapeExtend_WireData;//local translation (for mysewd)
|
||||||
Handle(ShapeExtend_WireData) Gsewd3d = new ShapeExtend_WireData;//local translation (for mysewd3d)
|
Handle(ShapeExtend_WireData) Gsewd3d = new ShapeExtend_WireData;//local translation (for mysewd3d)
|
||||||
Handle(ShapeExtend_WireData) Gsewd2d = new ShapeExtend_WireData;//local translation (for mysewd2d)
|
Handle(ShapeExtend_WireData) Gsewd2d = new ShapeExtend_WireData;//local translation (for mysewd2d)
|
||||||
@@ -384,17 +385,31 @@ static Standard_Boolean Connect (const Handle(ShapeAnalysis_Wire)& theSAW,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (number > 1) {
|
if (!mysewd.IsNull())
|
||||||
okCurve = okCurve && Connect (saw, mysewd, Gsewd, (len3d > 1) || (len2d > 1), maxtol,
|
{
|
||||||
distmin, revsewd, revnextsewd);
|
okCurve = okCurve && Connect(saw, mysewd, Gsewd, (len3d > 1) || (len2d > 1), maxtol,
|
||||||
|
distmin, revsewd, revnextsewd);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mysewd = Gsewd;
|
||||||
|
}
|
||||||
|
if (!mysewd3d.IsNull())
|
||||||
|
{
|
||||||
okCurve3d = okCurve3d && Connect (saw3d, mysewd3d, Gsewd3d, len3d > 1, maxtol,
|
okCurve3d = okCurve3d && Connect (saw3d, mysewd3d, Gsewd3d, len3d > 1, maxtol,
|
||||||
distmin, revsewd, revnextsewd);
|
distmin, revsewd, revnextsewd);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mysewd3d = Gsewd3d;
|
||||||
|
}
|
||||||
|
if (!mysewd2d.IsNull())
|
||||||
|
{
|
||||||
okCurve2d = okCurve2d && Connect (saw2d, mysewd2d, Gsewd2d, len2d > 1, maxtol,
|
okCurve2d = okCurve2d && Connect (saw2d, mysewd2d, Gsewd2d, len2d > 1, maxtol,
|
||||||
distmin, revsewd, revnextsewd);
|
distmin, revsewd, revnextsewd);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
mysewd = Gsewd;
|
{
|
||||||
mysewd3d = Gsewd3d;
|
|
||||||
mysewd2d = Gsewd2d;
|
mysewd2d = Gsewd2d;
|
||||||
}
|
}
|
||||||
return okCurve;
|
return okCurve;
|
||||||
|
@@ -1249,7 +1249,7 @@ Handle(Geom_Curve) IGESToBRep_BasicCurve::TransferLine
|
|||||||
|
|
||||||
// modif du 15/10/97 : test moins severe
|
// modif du 15/10/97 : test moins severe
|
||||||
// beaucoup de points confondus a GetEpsGeom()*GetUnitFactor()
|
// beaucoup de points confondus a GetEpsGeom()*GetUnitFactor()
|
||||||
if (!Ps.IsEqual(Pe,Precision::Confusion())) { //:l3 abv 11 Jan 99: GetEpsGeom()*GetUnitFactor()/10.)) {
|
if (!Ps.IsEqual(Pe,Precision::Confusion() / GetUnitFactor())) { //:l3 abv 11 Jan 99: GetEpsGeom()*GetUnitFactor()/10.)) {
|
||||||
gp_Lin line(Ps, gp_Dir(gp_Vec(Ps,Pe)));
|
gp_Lin line(Ps, gp_Dir(gp_Vec(Ps,Pe)));
|
||||||
Standard_Real t1 = ElCLib::Parameter(line, Ps);
|
Standard_Real t1 = ElCLib::Parameter(line, Ps);
|
||||||
Standard_Real t2 = ElCLib::Parameter(line, Pe);
|
Standard_Real t2 = ElCLib::Parameter(line, Pe);
|
||||||
@@ -1299,7 +1299,7 @@ Handle(Geom2d_Curve) IGESToBRep_BasicCurve::Transfer2dLine
|
|||||||
start->EndPoint().Y());
|
start->EndPoint().Y());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!beg.IsEqual(end,Precision::PConfusion())) { //:l3 abv 11 Jan 99: GetEpsCoeff())) {
|
if (!beg.IsEqual(end,Precision::PConfusion() / GetUnitFactor())) { //:l3 abv 11 Jan 99: GetEpsCoeff())) {
|
||||||
gp_Lin2d line2d(beg, gp_Dir2d(gp_Vec2d(beg,end)));
|
gp_Lin2d line2d(beg, gp_Dir2d(gp_Vec2d(beg,end)));
|
||||||
Standard_Real t1 = ElCLib::Parameter(line2d, beg);
|
Standard_Real t1 = ElCLib::Parameter(line2d, beg);
|
||||||
Standard_Real t2 = ElCLib::Parameter(line2d, end);
|
Standard_Real t2 = ElCLib::Parameter(line2d, end);
|
||||||
|
@@ -4692,16 +4692,9 @@ void collectRepresentationItems(const Interface_Graph& theGraph,
|
|||||||
const Handle(StepShape_ShapeRepresentation)& theRepresentation,
|
const Handle(StepShape_ShapeRepresentation)& theRepresentation,
|
||||||
NCollection_Sequence<Handle(StepRepr_RepresentationItem)>& theItems)
|
NCollection_Sequence<Handle(StepRepr_RepresentationItem)>& theItems)
|
||||||
{
|
{
|
||||||
for (StepRepr_HArray1OfRepresentationItem::Iterator anIter(theRepresentation->Items()->Array1());
|
Handle(StepRepr_HArray1OfRepresentationItem) aReprItems = theRepresentation->Items();
|
||||||
anIter.More(); anIter.Next())
|
for (Standard_Integer itemIt = aReprItems->Lower(); itemIt <= aReprItems->Upper(); itemIt++)
|
||||||
{
|
theItems.Append(aReprItems->Value(itemIt));
|
||||||
const Handle(StepRepr_RepresentationItem)& anReprItem = anIter.Value();
|
|
||||||
if (anReprItem.IsNull())
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
theItems.Append(anReprItem);
|
|
||||||
}
|
|
||||||
|
|
||||||
Interface_EntityIterator entIt = theGraph.TypedSharings(theRepresentation, STANDARD_TYPE(StepRepr_RepresentationRelationship));
|
Interface_EntityIterator entIt = theGraph.TypedSharings(theRepresentation, STANDARD_TYPE(StepRepr_RepresentationRelationship));
|
||||||
for (entIt.Start(); entIt.More(); entIt.Next())
|
for (entIt.Start(); entIt.More(); entIt.Next())
|
||||||
|
17
tests/bugs/iges/bug33326
Normal file
17
tests/bugs/iges/bug33326
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
puts "==================================================="
|
||||||
|
puts "0033326: Data Exchange, IGES Import - Ignoring unit value for validating geometry"
|
||||||
|
puts "==================================================="
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
pload DCAF
|
||||||
|
|
||||||
|
Close D -silent
|
||||||
|
|
||||||
|
ReadIges D [locate_data_file "bug33326.igs"]
|
||||||
|
vclear
|
||||||
|
vinit View1
|
||||||
|
XDisplay -dispMode 1 D
|
||||||
|
vfit
|
||||||
|
vdump "$imagedir/${casename}_src.png"
|
||||||
|
|
||||||
|
Close D
|
@@ -1,14 +0,0 @@
|
|||||||
puts "===================================="
|
|
||||||
puts "0033331: Data Exchange, Step Import - Unsupported Representation Items"
|
|
||||||
puts "===================================="
|
|
||||||
puts ""
|
|
||||||
|
|
||||||
pload DCAF
|
|
||||||
catch {Close D}
|
|
||||||
|
|
||||||
param "read.stepcaf.subshapes.name" 1
|
|
||||||
|
|
||||||
ReadStep D [locate_data_file bug33331.stp]
|
|
||||||
|
|
||||||
param "read.stepcaf.subshapes.name" 0
|
|
||||||
Close D
|
|
Reference in New Issue
Block a user