Documentation

​
​

Development

User Acquisition

Monetization

Industry

Asset Transformer SDK

2026.1

Supported
​

User Manual

Python API

C# API

Changelog

Discussions

Asset Transformer SDK

2026.1

Supported
​

Asset Transformer SDK
​
​
pxz
  • Functions
Algo
  • Functions
  • Types
CAD
  • Functions
  • Types
Core
  • Functions
  • Events
  • Types
Geom
  • Functions
    • applyTransform
    • configureFunctionLogger
    • getEntityAABB
    • changeOfBasisMatrix
    • decomposeTransform
    • fromAffine
    • fromLookAtMatrix
    • fromOriginNormal
    • fromTRS
    • getMaxScale
    • invertMatrix
    • lookAtMatrix
    • matrixToQuaternion
    • multiplyMatrices
    • multiplyMatrixPoint
    • multiplyMatrixVector
    • orthographicMatrix
    • perspectiveMatrix
    • quaternionToMatrix
    • toTRS
  • Types
IO
  • Functions
  • Types
Material
  • Functions
  • Events
  • Types
Polygonal
  • Functions
  • Types
Scene
  • Functions
  • Events
  • Types
Unity
  • Functions
  • Events
  • Types
View
  • Functions
  • Events
  • Types
  1. Asset Transformer SDK (ex Pixyz)

Geom

Python API functions
Read time 7 minutes
Last updated 9 months ago

applyTransform

Apply a transformation matrix to a geometrical entity.
geom.applyTransform(entity, matrix=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]])
Parameters

Type

Name

Description

GeomEntityentityThe geometric entity.
Matrix4matrixThe transformation matrix.

configureFunctionLogger

geom.configureFunctionLogger(functionName, enableFunction, enableParameters, enableExecutionTime)
Parameters

Type

Name

Description

StringfunctionName
BooleanenableFunction
BooleanenableParameters
BooleanenableExecutionTime

getEntityAABB

Retrieve the Axis-Aligned Bounded Box of a geometric entity.
geom.getEntityAABB(entity) -> geom.AABB
Parameters

Type

Name

Description

GeomEntityentityThe geometric entity.
Returns

Type

Name

Description

AABBaabbThe axis aligned bounded box.

Math

changeOfBasisMatrix

Construct a Change of Basis Matrix (e.g multiplying the point [0,0,0] will result to the point origin).
geom.changeOfBasisMatrix(origin, x, y, z) -> geom.Matrix4
Parameters

Type

Name

Description

Point3originOrigin of the new basis.
Vector3xX axis of the new basis.
Vector3yY axis of the new basis.
Vector3zZ axis of the new basis.
Returns

Type

Name

Description

Matrix4changeOfBasisThe change of basis matrix.
See also:
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

decomposeTransform

Decompose a Matrix4 into translation, scale and rotation through Quaternion.
geom.decomposeTransform(matrix) -> geom.Vector3, geom.Quaternion, geom.Vector3
Parameters

Type

Name

Description

Matrix4matrix
Returns

Type

Name

Description

Vector3translation
Quaternionrotation
Vector3scale
See also:
  • geom.changeOfBasisMatrix
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

fromAffine

Create a Matrix from an Affine.
geom.fromAffine(affine) -> geom.Matrix4
Parameters

Type

Name

Description

AffineaffineThe affine.
Returns

Type

Name

Description

Matrix4matrixThe created Matrix.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

fromLookAtMatrix

Get camera position, up and target vectors.
geom.fromLookAtMatrix(matrix, distanceFromTarget=1) -> geom.Point3, geom.Vector3, geom.Point3
Parameters

Type

Name

Description

Matrix4matrixThe created Matrix.
DistancedistanceFromTarget
Returns

Type

Name

Description

Point3positionThe camera position.
Vector3upThe up vector.
Point3targetThe target position.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

fromOriginNormal

Create a Matrix from an origin and a normal vector.
geom.fromOriginNormal(origin, normal) -> geom.Matrix4
Parameters

Type

Name

Description

Point3originThe origin point.
Vector3normalThe normal vector.
Returns

Type

Name

Description

Matrix4matrixThe created Matrix.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

fromTRS

Create a Matrix from translation, rotation and scaling vectors.
geom.fromTRS(T, R, S) -> geom.Matrix4
Parameters

Type

Name

Description

Vector3TThe translation vector.
Vector3RThe rotation vector (degrees).
Vector3SThe scaling vector.
Returns

Type

Name

Description

Matrix4matrixThe created Matrix.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

getMaxScale

Get maximum matrix scale.
geom.getMaxScale(matrix) -> core.Double
Parameters

Type

Name

Description

Matrix4matrix
Returns

Type

Name

Description

DoublescaleMax scale value.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

invertMatrix

Invert a matrix.
geom.invertMatrix(matrix=geom.IdentityMatrix4) -> geom.Matrix4
Parameters

Type

Name

Description

Matrix4matrixThe matrix to invert.
Returns

Type

Name

Description

Matrix4invertedThe inverted matrix.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

lookAtMatrix

Create a matrix from a camera position, up and target.
geom.lookAtMatrix(position, up, target) -> geom.Matrix4
Parameters

Type

Name

Description

Point3positionThe camera position.
Vector3upThe up vector.
Point3targetThe target position.
Returns

Type

Name

Description

Matrix4matrixThe created matrix.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

matrixToQuaternion

Get the quaternion of a Matrix4.
geom.matrixToQuaternion(matrix) -> geom.Quaternion
Parameters

Type

Name

Description

Matrix4matrix
Returns

Type

Name

Description

QuaternionquaternionThe result quaternion.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

multiplyMatrices

Multiply two matrices, returns left*right.
geom.multiplyMatrices(left=geom.IdentityMatrix4, right=geom.IdentityMatrix4) -> geom.Matrix4
Parameters

Type

Name

Description

Matrix4leftLeft side matrix.
Matrix4rightRight side matrix.
Returns

Type

Name

Description

Matrix4resultResult of the matrices multiplication.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

multiplyMatrixPoint

Multiply a point by a matrix (i.e apply the matrix to a point).
geom.multiplyMatrixPoint(matrix=geom.IdentityMatrix4, point) -> geom.Point3
Parameters

Type

Name

Description

Matrix4matrixThe matrix to apply.
Point3pointThe point to multiply.
Returns

Type

Name

Description

Point3resultThe resulting point.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

multiplyMatrixVector

Multiply a vector by a matrix (i.e apply the matrix to a vector).
geom.multiplyMatrixVector(matrix=geom.IdentityMatrix4, vector) -> geom.Vector3
Parameters

Type

Name

Description

Matrix4matrixThe matrix to apply.
Vector3vectorThe vector to multiply.
Returns

Type

Name

Description

Vector3resultThe resulting point.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

orthographicMatrix

Create an orthographic matrix from a 3D width, a 3D height, a near, and a far clipping distance.
geom.orthographicMatrix(width3D, height3D, nearClipDistance, farClipDistance) -> geom.Matrix4
Parameters

Type

Name

Description

Doublewidth3DThe 3D width to consider.
Doubleheight3DThe 3D height to consider.
DistancenearClipDistanceThe near clipping distance.
DistancefarClipDistanceThe far clipping distance.
Returns

Type

Name

Description

Matrix4matrixThe created matrix.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

perspectiveMatrix

Create a perspective matrix from a fovX, an aspect ratio, a near, and a far clipping distance.
geom.perspectiveMatrix(fovX, aspectRatio, nearClipDistance, farClipDistance) -> geom.Matrix4
Parameters

Type

Name

Description

AnglefovXThe field of view on the x axis.
DoubleaspectRatioThe aspect ratio foxX/fovY.
DistancenearClipDistanceThe near clipping distance.
DistancefarClipDistanceThe far clipping distance.
Returns

Type

Name

Description

Matrix4matrixThe created matrix.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.quaternionToMatrix
  • geom.toTRS

quaternionToMatrix

Returns the quaternion as a Matrix4.
geom.quaternionToMatrix(quaternion) -> geom.Matrix4
Parameters

Type

Name

Description

Quaternionquaternion
Returns

Type

Name

Description

Matrix4matrix
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.toTRS

toTRS

Decompose a Matrix into translation, rotation and scaling vectors.
geom.toTRS(matrix=geom.IdentityMatrix4) -> geom.Vector3List
Parameters

Type

Name

Description

Matrix4matrixThe Matrix to be decomposed.
Returns

Type

Name

Description

Vector3ListTRSThe TRS list.
See also:
  • geom.changeOfBasisMatrix
  • geom.decomposeTransform
  • geom.fromAffine
  • geom.fromLookAtMatrix
  • geom.fromOriginNormal
  • geom.fromTRS
  • geom.getMaxScale
  • geom.invertMatrix
  • geom.lookAtMatrix
  • geom.matrixToQuaternion
  • geom.multiplyMatrices
  • geom.multiplyMatrixPoint
  • geom.multiplyMatrixVector
  • geom.orthographicMatrix
  • geom.perspectiveMatrix
  • geom.quaternionToMatrix

debug


Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • applyTransform

    • configureFunctionLogger

    • getEntityAABB

    • Math

      • changeOfBasisMatrix

      • decomposeTransform

      • fromAffine

      • fromLookAtMatrix

      • fromOriginNormal

      • fromTRS

      • getMaxScale

      • invertMatrix

      • lookAtMatrix

      • matrixToQuaternion

      • multiplyMatrices

      • multiplyMatrixPoint

      • multiplyMatrixVector

      • orthographicMatrix

      • perspectiveMatrix

      • quaternionToMatrix

      • toTRS

    • debug


Report a problem with this page