For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

GCPnts_UnifromAbscissa - NbPoints function

Anonymous's picture


I am using GCPnts_UniformAbscissa Class to compute points on
curve defined by number of points.
The code snippet is :
Handle(Geom_Curve) GC = DrawTrSurf::GetCurve(a[1]);
if (GC.IsNull()) return 1;
Standard_Integer nop = atoi(a[2]);
Standard_Integer npts = 0;

GeomAdaptor_Curve GAC(GC);
GCPnts_UniformAbscissa myAlgo();
if ( myAlgo.IsDone() ) {
npts = myAlgo.NbPoints();
cout }
When I compute for a Circle or an arc, the input No.of points
is same as returned by the NbPoints function, but for
a B-Spline curve the NbPoints computes one point extra.

Anybody knows the reason or is it a BUG ?
- Prasad

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.