[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2025-03-17 19:40:18 +00:00
committed by Chris Hennes
parent 0b077fc914
commit 82e57fdeb6
3 changed files with 12 additions and 8 deletions

View File

@@ -195,12 +195,16 @@ private:
Drawing::ProjectionAlgos::ExtractionType type =
Drawing::ProjectionAlgos::Plain;
if (hidden) {
type = (Drawing::ProjectionAlgos::ExtractionType)(
type | Drawing::ProjectionAlgos::WithHidden);
type = (Drawing::ProjectionAlgos::
ExtractionType)(type
| Drawing::ProjectionAlgos::
WithHidden);
}
if (smooth) {
type = (Drawing::ProjectionAlgos::ExtractionType)(
type | Drawing::ProjectionAlgos::WithSmooth);
type = (Drawing::ProjectionAlgos::
ExtractionType)(type
| Drawing::ProjectionAlgos::
WithSmooth);
}
float scale = view->Scale.getValue();
float tol = view->Tolerance.getValue();

View File

@@ -129,7 +129,7 @@ FaceUnwrapper::FaceUnwrapper(const TopoDS_Face& face)
TopLoc_Location location;
// triangulate:
const Handle(Poly_Triangulation)& triangulation = BRep_Tool::Triangulation(face, location);
const Handle(Poly_Triangulation) & triangulation = BRep_Tool::Triangulation(face, location);
if (triangulation.IsNull()) {
throw std::runtime_error("null triangulation in face construction");
@@ -189,8 +189,8 @@ ColMat<double, 3> FaceUnwrapper::interpolateFlatFace(const TopoDS_Face& face)
}
// extract xyz poles, knots, weights, degree
const Handle(Geom_Surface)& _surface = BRep_Tool::Surface(face);
const Handle(Geom_BSplineSurface)& _bspline = Handle(Geom_BSplineSurface)::DownCast(_surface);
const Handle(Geom_Surface) & _surface = BRep_Tool::Surface(face);
const Handle(Geom_BSplineSurface) & _bspline = Handle(Geom_BSplineSurface)::DownCast(_surface);
const TColStd_Array1OfReal& _uknots = _bspline->UKnotSequence();
const TColStd_Array1OfReal& _vknots = _bspline->VKnotSequence();

View File

@@ -60,7 +60,7 @@ public:
Py::Object clearUnitTests(const Py::Tuple&);
private:
using method_varargs_handler = PyObject* (*)(PyObject* _self, PyObject* _args);
using method_varargs_handler = PyObject* (*)(PyObject * _self, PyObject* _args);
static method_varargs_handler pycxx_handler;
static PyObject* method_varargs_ext_handler(PyObject* _self, PyObject* _args);
};