To debug this further, I expanded the code above to print the vertex information from the mesh, before and after applying the shear transform.
You can find the code here: https://gist.github.com/1048327 Here's the output that it generates: Before Shear Transform [(1.0, 1.0, 0.0), (1.0, 0.0, 0.0), (0.0, 1.0, 1.0), (1.0, 1.0, 1.0), (0.0, 0.0, 0.0), (0.0, 1.0, 0.0), (0.0, 0.0, 1.0), (1.0, 0.0, 1.0)] After Shear Transform [(1.25, 0.5, 1.0), (2.375, 1.75, 1.0), (1.125, 1.25, 0.0), (0.0, 0.0, 0.0), (1.25, 0.5, 0.0), (1.125, 1.25, 1.0), (0.0, 0.0, 1.0), (2.375, 1.75, 0.0)] These are the 12 corner vertices of the box before and after shear transformation. Ideally, according to the transformation matrix applied, the Y coordinates of all the points should not change due to transformation, but as you can see that's not the case. [Note: the order in which vertices are printed is not the same before and after transform.] _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users