Verifies that a matrix is a similarity transformation. A similarity transformation can be broken into a sequence of dialations, translations, rotations, and reflections.
rhinoscriptsyntax.IsXformSimilarity (xform)
rhinoscript.transformation.IsXformSimilarity (xform)
xform |
Required. List or Rhino.Geometry.Transform. A 4x4 transformation matrix. |
Boolean |
True if this transformation is an orientation preserving similarity, otherwise False. |
import rhinoscriptsyntax as rs
xform = rs.BlockInstanceXform(block)
print rs.IsXformSimilarity(xform)