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 / Create closes/periodic edge from points

Create closes/periodic edge from points

Create closes/periodic edge from points
Marco 2013/01/20 15:07

I habe a lot of points which describe a contour. Now I need to get a wire from the point list.

GeomAPI_PointsToBSpline toBSpline(const PointVec& points)
     TColgp_Array1OfPnt arr(0,points.size()-1);
     for(unsigned int i = 0;i < points.size();++i)

     auto spline = GeomAPI_PointsToBSpline(arr);
     return spline;     

OpenCascades creates the curve (testet it with the step export). My problem is the connection between last and first point. There I have a big failure. You can see it in the attached picture. Seems that I do something wrong the make the spline periodic.
I also tested GeomAPI_Interpolate, but there a runtime error occurs.
So, what did I wrong?

Best regards

You have to be logged in to download the attached file
Marco 2013/01/22 12:31
Any ideas? :/
Pawel 2013/01/22 12:58
Hello Marco,

can't say what the exact reason is but I would try the following out:
- change the tolerance in GeomAPI_PointsToBSpline
- change the min/max degree of the spline to create

Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

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