8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SObject.h"
12namespace rsh::ScriptBinding
83 Number w, Number x, Number y, Number z
243 Array<SPoint> TargetPoints,
245 Array<SPoint> SourcePoints,
276 Array<SPoint> TargetPoints,
278 Array<SPoint> SourcePoints
293 Array<SPoint> TargetPoints,
295 Array<SPoint> SourcePoints,
312 Array<SPoint> TargetPoints,
314 Array<SPoint> SourcePoints,
316 Array<Array<Boolean>> XYZ_Constraints,
318 Array<SCloud> AssociatedClouds,
394 :
public SObjectStatic
501 Array<SComp> CompTable,
539 Boolean iAttractReversedNormals
599Q_DECLARE_METATYPE(SMatrix::_SMatrixDummy);
The SComp class is an abstract class. Use derived classes SCircle, SCylinder, SCloud,...
Definition: SComp.h:32
Matrix with 3 lines and 4 columns to make any transformation. This class should be used in order to a...
Definition: SMatrix.h:21
Array InitAlign(SPoint iFixed_P1, SPoint iFixed_P2, SPoint iFixed_P3, SPoint iMobile_P1, SPoint iMobile_P2, SPoint iMobile_P3)
This is an overloaded member function, provided for convenience. It differs from the above function o...
InitMirrorPnt(SPoint iMirrorCenter)
Sets the matrix for a point mirror.
static SMatrix New(SPoint AxisPt, SVector AxisVect, Number Angle, UnitEnum Unit)
Constructor to set a rotation matrix of an angle around an axis. If the input data are not coherent,...
Array InitBestRotate(Array< SPoint > TargetPoints, Array< SPoint > SourcePoints, SPoint iFixPoint)
Sets the matrix for the best ROTATION mapping of the source points onto the target points in a least ...
UnitEnum
Definition: SMatrix.h:49
@ RADIAN
Definition: SMatrix.h:50
Array GetEuler(UnitEnum Unit)
To interpret values from a SMatrix and find the rotation angle and the translation vector.
String ValuesToString()
Get a string representation of the point.
Array InitAlign(SPoint iFixed_P1, SPoint iFixed_P2, SPoint iMobile_P1, SPoint iMobile_P2)
Calculates the transformation matrix from matching point couples.
String toString()
Get the type of the variable.
Array InitBestTranslate(Array< SPoint > TargetPoints, Array< SPoint > SourcePoints)
Sets the matrix for the best TRANSLATION mapping of the source points onto the target points in a lea...
static Array FromActiveCS()
Return the matrix associated to the active UCS/WCS.
static Array FromUCS(String Name)
Search all the component with the given name.
InitScale(SPoint ScaleCenter, Number XScale, Number YScale, Number ZScale)
Sets the matrix for a different scale ratio along X, Y and Z with a center.
Number GetValue(Number Row, Number Column)
InitMirrorAxis(SPoint iAxisP1, SPoint iAxisP2)
Sets the matrix for an axis mirror.
Number UpdateUCS(String Name)
Update with the current matrix the UCS found with the given name.
static String toString()
Get the type of the variable.
Array SaveArmCoordinateSystem(Number Index, SMatrix NewMatrix)
Save a Matrix as a Coordinate System. If a matrix exists at the input index, it will be deleted.
InitQuaternion(Number w, Number x, Number y, Number z)
Initialize a rotation matrix from a quaternion tuple.
ApplyTransformation(SMatrix iMatrixToMul)
To multiply a matrix by another matrix Apply the transformation on the current matrix....
ConstraintFlag
Definition: SMatrix.h:31
static SMatrix New()
Default constructor. The matrix is initialized to the unitary matrix. The vector is the null vector.
static Array BestFitCompute(Array< SComp > CompTable, Number ThresDist, Number BestFitType, ConstraintFlag ConstraintBitMask, SPoint FixedPoint, SVector ConstraintAxis, Boolean iAttractReversedNormals)
Calculate the matrix that should be applied to each component of a set to make a best fit of all the ...
Number AddToDocAsUCS(String Name, Boolean IsActivated)
To add the matrix to the scene as an UCS with the given name.
Array InitBestAlign(Array< SPoint > TargetPoints, Array< SPoint > SourcePoints, Number Mode, ConstraintFlag ConstraintBitMask, SPoint FixedPoint, SVector ConstraintAxis)
Sets the matrix for the best fit mapping of the source points onto the target points in a least squar...
static SMatrix New(Array< Number > Row1, Array< Number > Row2, Array< Number > Row3)
Constructor to define a matrix by defining its rows.
static SMatrix New(SMatrix Other)
Constructs a SMatrix by copying the SMatrix Other.
Array UpdateArmCoordinateSystem(Number Index, SMatrix NewMatrix)
Update the matrix at the input index, by multiplying the current matrix by the input matrix.
InitMirrorPlane(SPoint iPlanePnt, SVector NormalVect)
Sets the matrix for a planar mirror.
Array InitRot(SPoint iAxisPt, SVector iAxisVect, Number iAngle, UnitEnum iUnit)
Sets the matrix for the rotation of an angle around an axis.
Array InitRPSAlignment(Array< SPoint > TargetPoints, Array< SPoint > SourcePoints, Array< Array< Boolean > > XYZ_Constraints, Array< SCloud > AssociatedClouds, Number Neighborhood)
Computes the RPS alignement matrix from given source and target points.
Array InitRot(Number AngX, Number AngY, Number AngZ, UnitEnum Unit, SequenceEnum Sequence, SPoint OriginPoint)
Sets the matrix for the rotation around the 3 axis X,Y,Z.
Array InitInverse(SMatrix Mat)
Initialises the current matrix to the inversed matrix that is: CurrentMatrix*Mat=IdentityMatrix.
InitIdentity()
The matrix is initialized to the unitary matrix. All the cells are initialized to zero except the dia...
static SMatrix New(SVector TranslateVector)
Constructor. The SMatrix obtained is a pure translation.
SequenceEnum
Definition: SMatrix.h:54
@ OrderYXZ
Definition: SMatrix.h:58
@ OrderXYZ
Definition: SMatrix.h:55
Array InitAutoRoughAlign(SComp RefComp, SComp CompToAlign)
Compute the matrix to roughly align a component on another.
Array GetArmCoordinateSystem(Number Index)
Return the Matrix saved at a given index.
This class is an abstract class, you can use these function in its derived classes.
Definition: SObject.h:35
3D point manipulation class. The SPoint creation can be done by calling the static functions:
Definition: SPoint.h:23
The mathematical object vector.
Definition: SVector3.h:26