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

Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forum
Open Source community
Training and e-learning
A la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forum / Construction of edge from BSplineCurve

Forum

Construction of edge from BSplineCurve
Christian Van der Velden2009/06/26 05:32
I would like to reproduce a B_SPLINE_CURVE_WITH_KNOTS entity from a STEP file as a Geom_BSplineCurve in OCCT. My function fails when the STEP bspline entity represents a straight line - typical example:
degree = 1
nbPoles = 2 (same as corresponding edge vertices)
knots = (0., 1.)
mults = (2, 2)

This seems to conflict with the OCCT Geom_BSplineCurve requirement of:
1 <= Mults(i) <= Degree
although it says in documentation: on non-periodic curve the first and last mults may be degree+1 (recommended if you want the curve to start and finish on the first and last pole).

The program does not return an error when the curve is constructed, however, when I make an edge using this curve and the two vertices (reproduced from the STEP file), an exception is raised.

Any thoughts would be appreciated.
Pawel2009/06/27 12:02
Hi Christian,

I guess there is something wrong during the parameter initialization. I just tried creating a linear spline and it works.

Pawel
Christian Van der Velden2009/06/30 05:00
Hi Pawel, thanks for your reply.
The problem appears to be one of precision. The STEP file has a small discrepency between the B-Spline pole coordinates and vertices that bound the corresponding edge. This caused the edge not to be built by the BRepBuilderAPI_MakeEdge object.
I will have to look into reasons for the differences.
Cheers,
Christian

 
 
Latest news
  • FAQ section updated
  • OPEN CASCADE Uses Intel ® Parallel Studio XE to Introduce Parallelism into SALOME SMESH Module
  • Open CASCADE Technology 6.5.2 is available for download!

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