View Issue Details

IDProjectCategoryView StatusLast Update
0008169Open CASCADEOCCT:Modeling Algorithmspublic2012-01-16 16:15
ReportermpvAssigned Toskv 
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSWindows NT 
Fixed in Version5.2.3 
Summary0008169: Wrong Geom2dAPI_InterCurveCurve segment
DescriptionIntersection between the two attached edges' curves ("1.brep" and "2.brep")
gives a segment with first and last points. In these points distance between two
curves is much more than the given tolerance.

 Example of the code:

Standard_Real aP1first, aP1last;
Handle(Geom_Curve) aCurve1 = BRep_Tool::Curve(theEdge1, aP1first, aP1last);
Handle(Geom_Curve) aCurve2 = BRep_Tool::Curve(theEdge2, aP2first, aP2last);
Handle(Geom2d_Curve) aCurve2d1 = GeomProjLib::Curve2d(aCurve1, aP1first,
aP1last, thePlane);
Handle(Geom2d_Curve) aCurve2d2 = GeomProjLib::Curve2d(aCurve2, aP2first,
aP2last, thePlane);

Geom2dAPI_InterCurveCurve anInter(aCurve2d1, aCurve2d2, Precision::Confusion());
IntRes2d_IntersectionSegment aSegment = anInter.Intersector().Segment(1);

gp_Pnt2d aP1 = aCurve2d1->Value(aSegment.FirstPoint().ParamOnFirst());
gp_Pnt2d aP2 = aCurve2d2->Value(aSegment.FirstPoint().ParamOnSecond());
Standard_Real aDist = aP1.Distance(aP2);

Where theEdge1 and theEdge2 are stored in the "1.brep" and "2.brep" files,
thePlane has next parameters:
 axis loc(0; 0; 500) vdir(0; 0; 1)
 vydir(0; 1; 0)
 vxdir(1; 0; 0)

Result distance: aDist = 0.0031472179553542 > Precision::Confusion() !
Additional information
and documentation updates
Documentation remark, added by SKV 2005-03-22 08:00:11:

New features:
Not required
TagsNo tags attached.
Test case number

Attached Files

  • 1.brep (0 bytes)
  • 2.brep (0 bytes)
  • OCC8169-skv-v1.tgz (6,877 bytes)

Activities

2005-02-11 12:44

 

1.brep (0 bytes)

2005-02-11 12:45

 

2.brep (0 bytes)

2005-03-01 11:28

 

OCC8169-skv-v1.tgz (6,877 bytes)

Issue History

Date Modified Username Field Change
2005-02-14 10:17 bugmaster Assigned To bugmaster => mkk
2005-02-14 10:17 bugmaster Status new => assigned
2005-02-16 15:35 mkk Assigned To mkk => skv
2005-03-01 13:28 skv Status assigned => resolved
2005-03-02 19:21 apv CC => apv, aki
2005-03-11 17:50 aki Status resolved => assigned
2005-03-15 10:21 skv Status assigned => resolved
2005-03-16 09:13 bugmaster Status resolved => tested
2005-03-25 08:54 bugmaster Status tested => verified
2005-05-06 15:26 bugmaster Status verified => closed
2005-05-06 15:26 bugmaster Resolution @0@ => fixed
2011-08-02 11:31 bugmaster Category OCCT:MOA => OCCT:Modeling Algorithms
2012-01-16 16:15 atp Description Updated
2012-01-16 16:15 atp Additional Information Updated