Skip to content

Commit 3ad40a9

Browse files
committed
intersectWithTorus
1 parent cd5e3ab commit 3ad40a9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

gotools-core/include/GoTools/geometry/BoundedUtils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ namespace BoundedUtils {
337337

338338
std::vector<shared_ptr<CurveOnSurface> >
339339
intersectWithTorus(shared_ptr<ParamSurface>& surf,
340-
Point pnt, Point normal, double rad1,
341-
double rad2, double geom_tol);
340+
Point pnt, Point normal, double radius1,
341+
double radius2, double geom_tol);
342342

343343
/// Find the intersction curve(s) between two parametric surfaces. The surfaces
344344
/// are represented as spline surface if this was not the case initially.

gotools-core/src/geometry/BoundedUtils.C

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2713,8 +2713,8 @@ BoundedUtils::intersectWithCone(shared_ptr<ParamSurface>& surf,
27132713
//===========================================================================
27142714
vector<shared_ptr<CurveOnSurface> >
27152715
BoundedUtils::intersectWithTorus(shared_ptr<ParamSurface>& surf,
2716-
Point pnt, Point normal, double rad1,
2717-
double rad2, double geom_tol)
2716+
Point pnt, Point normal, double radius1,
2717+
double radius2, double geom_tol)
27182718
//===========================================================================
27192719
{
27202720
vector<shared_ptr<CurveOnSurface> > curves;
@@ -2741,7 +2741,7 @@ BoundedUtils::intersectWithTorus(shared_ptr<ParamSurface>& surf,
27412741
SISLIntcurve** intcurves = 0;
27422742
int stat;
27432743
// Find the topology of the intersection
2744-
s1369(sislsf, pnt.begin(), normal.begin(), rad1, rad2, dim, epsco,
2744+
s1369(sislsf, pnt.begin(), normal.begin(), radius1, radius2, dim, epsco,
27452745
geom_tol, &numintpt, &pointpar, &numintcr, &intcurves, &stat);
27462746
// @@sbr Not sure this is the right solution. Maybe stat!=0 because of warning.
27472747
ALWAYS_ERROR_IF(stat!=0,
@@ -2754,7 +2754,7 @@ BoundedUtils::intersectWithTorus(shared_ptr<ParamSurface>& surf,
27542754
// epsge = tol_.neighbour;
27552755
for (int i = 0; i < numintcr; ++i) {
27562756
// March out the intersection curves
2757-
s1318(sislsf,pnt.begin(), normal.begin(), rad1, rad2, dim, epsco,
2757+
s1318(sislsf,pnt.begin(), normal.begin(), radius1, radius2, dim, epsco,
27582758
geom_tol, maxstep, intcurves[i], makecurv, graphic, &stat);
27592759
SISLCurve* sc = intcurves[i]->pgeom;
27602760
if (sc == 0) {

0 commit comments

Comments
 (0)