[TD]CI clang warnings
This commit is contained in:
@@ -132,19 +132,19 @@ void CosmeticEdgePy::setFormat(Py::Object arg)
|
||||
double weight = 0.50;
|
||||
double red = 0.0, green = 0.0, blue = 0.0, alpha = 0.0;
|
||||
App::Color c(red, blue, green, alpha);
|
||||
bool visible = 1;
|
||||
|
||||
bool visible = 1;
|
||||
|
||||
TechDraw::CosmeticEdge* ce = this->getCosmeticEdgePtr();
|
||||
if (PyTuple_Check(pTuple)) {
|
||||
int tSize = (int) PyTuple_Size(pTuple);
|
||||
if (tSize > 3) {
|
||||
PyObject* pStyle = PyTuple_GetItem(pTuple,0);
|
||||
PyObject* pStyle = PyTuple_GetItem(pTuple, 0);
|
||||
style = (int) PyLong_AsLong(pStyle);
|
||||
PyObject* pWeight = PyTuple_GetItem(pTuple,1);
|
||||
PyObject* pWeight = PyTuple_GetItem(pTuple, 1);
|
||||
weight = PyFloat_AsDouble(pWeight);
|
||||
PyObject* pColor = PyTuple_GetItem(pTuple,2);
|
||||
PyObject* pColor = PyTuple_GetItem(pTuple, 2);
|
||||
c = DrawUtil::pyTupleToColor(pColor);
|
||||
PyObject* pVisible = PyTuple_GetItem(pTuple,3);
|
||||
PyObject* pVisible = PyTuple_GetItem(pTuple, 3);
|
||||
visible = (bool) PyLong_AsLong(pVisible);
|
||||
|
||||
ce->m_format.m_style = style;
|
||||
@@ -236,8 +236,8 @@ void CosmeticEdgePy::setStart(Py::Object arg)
|
||||
|
||||
pNew = DrawUtil::invertY(pNew);
|
||||
Base::Vector3d pEnd = getCosmeticEdgePtr()->permaEnd;
|
||||
gp_Pnt gp1(pNew.x,pNew.y,pNew.z);
|
||||
gp_Pnt gp2(pEnd.x,pEnd.y,pEnd.z);
|
||||
gp_Pnt gp1(pNew.x, pNew.y, pNew.z);
|
||||
gp_Pnt gp2(pEnd.x, pEnd.y, pEnd.z);
|
||||
TopoDS_Edge e = BRepBuilderAPI_MakeEdge(gp1, gp2);
|
||||
// auto oldGeom = getCosmeticEdgePtr()->m_geometry;
|
||||
getCosmeticEdgePtr()->m_geometry = TechDraw::BaseGeom::baseFactory(e);
|
||||
@@ -270,8 +270,8 @@ void CosmeticEdgePy::setEnd(Py::Object arg)
|
||||
|
||||
pNew = DrawUtil::invertY(pNew);
|
||||
Base::Vector3d pStart = getCosmeticEdgePtr()->permaStart;
|
||||
gp_Pnt gp1(pNew.x,pNew.y,pNew.z);
|
||||
gp_Pnt gp2(pStart.x,pStart.y,pStart.z);
|
||||
gp_Pnt gp1(pNew.x, pNew.y, pNew.z);
|
||||
gp_Pnt gp2(pStart.x, pStart.y, pStart.z);
|
||||
TopoDS_Edge e = BRepBuilderAPI_MakeEdge(gp2, gp1);
|
||||
// auto oldGeom = getCosmeticEdgePtr()->m_geometry;
|
||||
getCosmeticEdgePtr()->m_geometry = TechDraw::BaseGeom::baseFactory(e);
|
||||
|
||||
Reference in New Issue
Block a user