Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Shape factory
Shape gallery
What's new
System requirements
Download Center
Public license
Getting started
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
Home / Developer Corner / Forums / Usage issues / exception on MakeEdge

exception on MakeEdge

exception on MakeEdge
Yaron 2012/10/09 13:11
the following Line creation generates an unexplained exception:

gp_Pnt P1(-999999.0, -537768535.94744217, 1.0);
gp_Pnt P2(999999.0, 537784345.33313346, 1.0);
TopoDS_Edge aCurrentEdge;
aCurrentEdge=BRepBuilderAPI_MakeEdge(P1,P2); // <= exception thrown!

any ideas why?
jelle 2012/10/09 13:34
What if you built it with a gp_Lin as an argument?
Yaron 2012/10/09 14:07
thanks! it helps.
Yaron 2012/10/09 14:20
there's still an issue.
if i try limiting the line between the two given points, the exception remains:

Forum supervisor 2012/10/09 14:37
Dear Yaron,
You are welcome to register the issue (exception) in Mantis Bugtracker which is available now via the Collaborative portal -
Forum supervisor 2012/10/10 13:30
Dear Yaron,
For your information.
The problem in the reported case is that you try to create an edge with length of ~1e9 (1.000 km, if we assume that units are mm), while OCCT is configured to work with much smaller objects and uses internal precision (Precision::Confusion()) equal to 1e-7. The resolution provided by double numbers in C++ (16 digits) is not sufficient to represent this scale of values with that precision.
Yaron 2012/10/10 13:36
ok, thanks for the clarification.
Latest news
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map