parent
eb598ffd16
commit
f1283cf24c
|
@ -151,8 +151,11 @@ PyObject* GeometryPy::transform(PyObject *args)
|
||||||
gp_Trsf trf;
|
gp_Trsf trf;
|
||||||
trf.SetValues(mat[0][0],mat[0][1],mat[0][2],mat[0][3],
|
trf.SetValues(mat[0][0],mat[0][1],mat[0][2],mat[0][3],
|
||||||
mat[1][0],mat[1][1],mat[1][2],mat[1][3],
|
mat[1][0],mat[1][1],mat[1][2],mat[1][3],
|
||||||
mat[2][0],mat[2][1],mat[2][2],mat[2][3],
|
mat[2][0],mat[2][1],mat[2][2],mat[2][3]
|
||||||
0.00001,0.00001);
|
#if OCC_VERSION_HEX < 0x060800
|
||||||
|
, 0.00001,0.00001
|
||||||
|
#endif
|
||||||
|
); //precision was removed in OCCT CR0025194
|
||||||
getGeometryPtr()->handle()->Transform(trf);
|
getGeometryPtr()->handle()->Transform(trf);
|
||||||
Py_Return;
|
Py_Return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -453,8 +453,11 @@ void TopoShape::convertTogpTrsf(const Base::Matrix4D& mtrx, gp_Trsf& trsf)
|
||||||
{
|
{
|
||||||
trsf.SetValues(mtrx[0][0],mtrx[0][1],mtrx[0][2],mtrx[0][3],
|
trsf.SetValues(mtrx[0][0],mtrx[0][1],mtrx[0][2],mtrx[0][3],
|
||||||
mtrx[1][0],mtrx[1][1],mtrx[1][2],mtrx[1][3],
|
mtrx[1][0],mtrx[1][1],mtrx[1][2],mtrx[1][3],
|
||||||
mtrx[2][0],mtrx[2][1],mtrx[2][2],mtrx[2][3],
|
mtrx[2][0],mtrx[2][1],mtrx[2][2],mtrx[2][3]
|
||||||
0.00001,0.00001);
|
#if OCC_VERSION_HEX < 0x060800
|
||||||
|
, 0.00001,0.00001
|
||||||
|
#endif
|
||||||
|
); //precision was removed in OCCT CR0025194
|
||||||
}
|
}
|
||||||
|
|
||||||
void TopoShape::convertToMatrix(const gp_Trsf& trsf, Base::Matrix4D& mtrx)
|
void TopoShape::convertToMatrix(const gp_Trsf& trsf, Base::Matrix4D& mtrx)
|
||||||
|
@ -2043,8 +2046,11 @@ void TopoShape::transformShape(const Base::Matrix4D& rclTrf, bool copy)
|
||||||
gp_Trsf mat;
|
gp_Trsf mat;
|
||||||
mat.SetValues(rclTrf[0][0],rclTrf[0][1],rclTrf[0][2],rclTrf[0][3],
|
mat.SetValues(rclTrf[0][0],rclTrf[0][1],rclTrf[0][2],rclTrf[0][3],
|
||||||
rclTrf[1][0],rclTrf[1][1],rclTrf[1][2],rclTrf[1][3],
|
rclTrf[1][0],rclTrf[1][1],rclTrf[1][2],rclTrf[1][3],
|
||||||
rclTrf[2][0],rclTrf[2][1],rclTrf[2][2],rclTrf[2][3],
|
rclTrf[2][0],rclTrf[2][1],rclTrf[2][2],rclTrf[2][3]
|
||||||
0.00001,0.00001);
|
#if OCC_VERSION_HEX < 0x060800
|
||||||
|
, 0.00001,0.00001
|
||||||
|
#endif
|
||||||
|
); //precision was removed in OCCT CR0025194
|
||||||
|
|
||||||
// location transformation
|
// location transformation
|
||||||
BRepBuilderAPI_Transform mkTrf(this->_Shape, mat, copy ? Standard_True : Standard_False);
|
BRepBuilderAPI_Transform mkTrf(this->_Shape, mat, copy ? Standard_True : Standard_False);
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
# include <GeomAPI_ProjectPointOnSurf.hxx>
|
# include <GeomAPI_ProjectPointOnSurf.hxx>
|
||||||
# include <BRepOffsetAPI_NormalProjection.hxx>
|
# include <BRepOffsetAPI_NormalProjection.hxx>
|
||||||
# include <BRepBuilderAPI_MakeFace.hxx>
|
# include <BRepBuilderAPI_MakeFace.hxx>
|
||||||
|
# include <Standard_Version.hxx>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <Base/Writer.h>
|
#include <Base/Writer.h>
|
||||||
|
@ -1245,8 +1246,11 @@ void SketchObject::rebuildExternalGeometry(void)
|
||||||
gp_Trsf mov;
|
gp_Trsf mov;
|
||||||
mov.SetValues(invMat[0][0],invMat[0][1],invMat[0][2],invMat[0][3],
|
mov.SetValues(invMat[0][0],invMat[0][1],invMat[0][2],invMat[0][3],
|
||||||
invMat[1][0],invMat[1][1],invMat[1][2],invMat[1][3],
|
invMat[1][0],invMat[1][1],invMat[1][2],invMat[1][3],
|
||||||
invMat[2][0],invMat[2][1],invMat[2][2],invMat[2][3],
|
invMat[2][0],invMat[2][1],invMat[2][2],invMat[2][3]
|
||||||
0.00001,0.00001);
|
#if OCC_VERSION_HEX < 0x060800
|
||||||
|
, 0.00001, 0.00001
|
||||||
|
#endif
|
||||||
|
); //precision was removed in OCCT CR0025194
|
||||||
|
|
||||||
gp_Ax3 sketchAx3(gp_Pnt(Pos.x,Pos.y,Pos.z),
|
gp_Ax3 sketchAx3(gp_Pnt(Pos.x,Pos.y,Pos.z),
|
||||||
gp_Dir(dN.x,dN.y,dN.z),
|
gp_Dir(dN.x,dN.y,dN.z),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user