SView Help Center
English (US)

Transform

Author: sviewngts Last Updated: 2026-10-28 19:30

Interface List

Interface Name Description
Model Translation Translate a model
Model Rotation Rotate a model
Model Scaling Scale a model

Translating a Model

//The parameter model is the model object to be translated; tran is the translation amount, of type M3D.M3DMath.Vector3
M3D.Shapes.ShapeHelper.translateModel(model,tran);

Rotating a Model

//The parameter model is the model object to be rotated; quat is the rotation quaternion object, of type M3D.M3DMath.Quaternion. For how to create quat, refer to the camera rotation section in Camera Operations.
M3D.Shapes.ShapeHelper.rotateModel(model,quat);

Scaling a Model

//The parameter model is the model object to be scaled; scale is the scaling ratio, of type M3D.M3DMath.Vector3. The x, y, and z components of scale represent the scaling ratios along each direction respectively.
M3D.Shapes.ShapeHelper.scaleModel(model,scale);