[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
committed by
Chris Hennes
parent
5dacd60805
commit
ba0e91beb1
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user