Skip to content
Snippets Groups Projects
Commit c4318d3a authored by Francesco Morsillo's avatar Francesco Morsillo
Browse files

Fixed bug in last commit

parent 637a355b
Branches
Tags
No related merge requests found
......@@ -47,7 +47,7 @@ def generic6dReference(p):
if isinstance(p,(matrix,ndarray)) and p.size == 3: M[0:3,3] = p
elif isinstance(p,tuple) and len(p) == 3: M[0:3,3] = p
elif isinstance(p,(matrix,ndarray)) and p.shape == (4,4): M = p
elif isinstance(p,(matrix,tuple)) and len(p) == 4 == len(p[0]) == len(p[1]) == len(p[2]) == len(p[3]) : M = array(p)
elif isinstance(p,(matrix,tuple)) and len(p) == 4 == len(p[0]) == len(p[1]) == len(p[2]) == len(p[3]) : M = matrix(p)
else: print "Position with other parameters ... todo"
return M
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment