[Part] Change BSplineCurve/Surface setBounds() method name to scaleKnotsToBounds()
This commit is contained in:
@@ -464,12 +464,12 @@ from the knots table of this B-Spline curve.</UserDocu>
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setBounds">
|
||||
<Methode Name="scaleKnotsToBounds">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Changes the bounds of the curve.
|
||||
The geometry is not modified.
|
||||
bspline_curve.setBounds(u0, u1)
|
||||
Scales the knots list to fit the specified bounds.
|
||||
The shape of the curve is not modified.
|
||||
bspline_curve.scaleKnotsToBounds(u0, u1)
|
||||
Default arguments are (0.0, 1.0)
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
|
||||
@@ -1392,7 +1392,7 @@ PyObject* BSplineCurvePy::makeC1Continuous(PyObject *args)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* BSplineCurvePy::setBounds(PyObject *args)
|
||||
PyObject* BSplineCurvePy::scaleKnotsToBounds(PyObject *args)
|
||||
{
|
||||
double u0=0.0;
|
||||
double u1=1.0;
|
||||
@@ -1404,7 +1404,7 @@ PyObject* BSplineCurvePy::setBounds(PyObject *args)
|
||||
return nullptr;;
|
||||
}
|
||||
GeomBSplineCurve* curve = getGeomBSplineCurvePtr();
|
||||
curve->setBounds(u0, u1);
|
||||
curve->scaleKnotsToBounds(u0, u1);
|
||||
Py_Return;
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
|
||||
@@ -729,12 +729,12 @@
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setBounds">
|
||||
<Methode Name="scaleKnotsToBounds">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Changes the U and V parametric bounds of the surface.
|
||||
The geometry is not modified.
|
||||
bspline_surf.setBounds(u0, u1, v0, v1)
|
||||
Scales the U and V knots lists to fit the specified bounds.
|
||||
The shape of the surface is not modified.
|
||||
bspline_surf.scaleKnotsToBounds(u0, u1, v0, v1)
|
||||
Default arguments are 0.0, 1.0, 0.0, 1.0
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
|
||||
@@ -1680,7 +1680,7 @@ Py::List BSplineSurfacePy::getVKnotSequence(void) const
|
||||
return list;
|
||||
}
|
||||
|
||||
PyObject* BSplineSurfacePy::setBounds(PyObject *args)
|
||||
PyObject* BSplineSurfacePy::scaleKnotsToBounds(PyObject *args)
|
||||
{
|
||||
double u0=0.0;
|
||||
double u1=1.0;
|
||||
@@ -1695,7 +1695,7 @@ PyObject* BSplineSurfacePy::setBounds(PyObject *args)
|
||||
return nullptr;;
|
||||
}
|
||||
GeomBSplineSurface* surf = getGeomBSplineSurfacePtr();
|
||||
surf->setBounds(u0, u1, v0, v1);
|
||||
surf->scaleKnotsToBounds(u0, u1, v0, v1);
|
||||
Py_Return;
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
|
||||
@@ -1616,7 +1616,7 @@ void GeomBSplineCurve::Trim(double u, double v)
|
||||
}
|
||||
}
|
||||
|
||||
void GeomBSplineCurve::setBounds(double u0, double u1)
|
||||
void GeomBSplineCurve::scaleKnotsToBounds(double u0, double u1)
|
||||
{
|
||||
try {
|
||||
Handle(Geom_BSplineCurve) curve = Handle(Geom_BSplineCurve)::DownCast(myCurve->Copy());
|
||||
@@ -4478,7 +4478,7 @@ Geometry *GeomBSplineSurface::copy() const
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
void GeomBSplineSurface::setBounds(double u0, double u1, double v0, double v1)
|
||||
void GeomBSplineSurface::scaleKnotsToBounds(double u0, double u1, double v0, double v1)
|
||||
{
|
||||
try {
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast(mySurface->Copy());
|
||||
|
||||
@@ -317,7 +317,7 @@ public:
|
||||
bool removeKnot(int index, int multiplicity, double tolerance = Precision::PConfusion());
|
||||
|
||||
void Trim(double u, double v);
|
||||
void setBounds(double u0, double u1);
|
||||
void scaleKnotsToBounds(double u0, double u1);
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
unsigned int getMemSize() const override;
|
||||
@@ -845,7 +845,7 @@ public:
|
||||
~GeomBSplineSurface() override;
|
||||
Geometry *copy() const override;
|
||||
|
||||
void setBounds(double u0, double u1, double v0, double v1);
|
||||
void scaleKnotsToBounds(double u0, double u1, double v0, double v1);
|
||||
// Persistence implementer ---------------------
|
||||
unsigned int getMemSize() const override;
|
||||
void Save(Base::Writer &/*writer*/) const override;
|
||||
|
||||
Reference in New Issue
Block a user