Anonymous | Login 2021-09-21 05:14 MSK Project: All Projects Community Open CASCADE
 My View | View Issues | Change Log | Roadmap

 View Revisions: Issue #30422 Summary 0030422: Modeling Data - Random behaviour of BRepAdaptor_CompCurve Revision 2021-09-13 16:04 by ifv Steps To Reproduce test case bugs/moddata_3/bug30422 original steps to reproduce: int main() {   TopoDS_Shape aShape;   BRep_Builder aBld;   for (int i = 0; i < 20; i++) {     BRepTools::Read(aShape, "sect.brep", aBld);     const BRepAdaptor_CompCurve aCurve(TopoDS::Wire(aShape));     const Standard_Real aParam[2] = {       aCurve.FirstParameter(), aCurve.LastParameter() };     gp_Pnt aPnt;     aCurve.D0(0.5 *(aParam[0]+aParam[1]), aPnt);     printf("FP = %7.4f; LP = %7.4f, middle:(%8.3f %8.3f %8.3f)\n",            aParam[0], aParam[1], aPnt.X(), aPnt.Y(), aPnt.Z());   }   return 0; } Revision 2018-12-22 23:37 by agv Steps To Reproduce int main() {   TopoDS_Shape aShape;   BRep_Builder aBld;   for (int i = 0; i < 20; i++) {     BRepTools::Read(aShape, "sect.brep", aBld);     const BRepAdaptor_CompCurve aCurve(TopoDS::Wire(aShape));     const Standard_Real aParam[2] = {       aCurve.FirstParameter(), aCurve.LastParameter() };     gp_Pnt aPnt;     aCurve.D0(0.5 *(aParam[0]+aParam[1]), aPnt);     printf("FP = %7.4f; LP = %7.4f, middle:(%8.3f %8.3f %8.3f)\n",            aParam[0], aParam[1], aPnt.X(), aPnt.Y(), aPnt.Z());   }   return 0; }