Download Here - The Building Coder
Transcript
Geometry 16.3.1.7 Scale Value that represents the transformation scale. 16.3.1.8 Inverse An inverse transformation. Transformation matrix A is invertible if a transformation matrix B exists such that A*B = B*A = I (identity). 16.3.1.9 IsIdentity Boolean value that indicates whether this transformation is an identity. 16.3.1.10IsTranslation Boolean value that indicates whether this transformation is a translation. Geometry.Transform provides methods to perform basal matrix operations. 16.3.1.11Multiply Multiplies a transformation by a specified transformation and returns the result. Operator* - Multiplies two specified transforms. 16.3.1.12ScaleBasis Scales the basis vectors and returns the result. 16.3.1.13ScaleBasisAndOrigin Scales the basis vectors and the transformation origin returns the result. 16.3.1.14OfPoint Applies the transformation to the point. The Origin property is used. 16.3.1.15OfVector Applies the transform to the vector. The Origin property is not used. 16.3.1.16AlmostEqual Compares two transformations. AlmostEqual is consistent with the computation mechanism and accuracy in the Revit core code. Additionally, Equal and the == operator are not implemented in the Transform class. The API provides several shortcuts to complete geometry transformation. The Transformed property in several geometry classes is used to do the work, as shown in the following table. Class Name Function Description Curve.get_Transformed(Transform transform) Applies the specified transformation to a curve Instance.get_Transformed(Transform transform) Transforms the instance. Profile.get_Transformed(Transform transform) Transforms the profile and returns the result. Mesh.get_Transformed(Transform transform) Transforms the mesh and returns the result. Table 40: Transformed Methods Note: The transformed method clones itself then returns the transformed cloned result. 16.3.2 Geometry.Reference The Reference class does not contain properties or methods. However, it is very useful in element creation. Revit 2008 API User Manual 210