FormIt Plugin API  v23.0.0 (2023.0.0)
WSM.Geom API

Description

Functions

json WSM.Geom.Interval3d (minPoint3d, maxPoint3d)
 
json WSM.Geom.Interval3dAreEqual (interval3d1, interval3d2)
 Interval3dAreEqual determines if the two given points are equal. More...
 
json WSM.Geom.MakeRotationTransform (axis, angle)
 
json WSM.Geom.MakeScalingTransform (scaleCenter, factorVec)
 
json WSM.Geom.MakeRigidTransform (origin, xDir, yDir, zDir)
 
json WSM.Geom.TranslateTransform (trans, moveVec)
 Translate an existing transform by moveVec Parameters: In: trans In: moveVec Out: trans (translated by moveVec) More...
 
json WSM.Geom.Transf3d (arg0, arg1, arg2, arg3)
 
json WSM.Geom.InvertTransform (trans)
 Invert an existing transform Parameters: In: trans Out: inverted trans. More...
 
json WSM.Geom.IsIdentityTransform (trans)
 Check whether a transform is the identity transform Parameters: In: trans Out: true if identity transform. More...
 
json WSM.Geom.Transf3dAreEqual (trans1, trans2)
 Transf3dAreEqual tests if the two given Trans3ds are equal. More...
 
json WSM.Geom.Point2d (x, y)
 Point2d constructs a Point2d. More...
 
json WSM.Geom.Point2dAreEqual (pt1, pt2)
 Point2dAreEqual determines if the two given points are equal. More...
 
json WSM.Geom.Point3d (x, y, z)
 
json WSM.Geom.Point3dAreEqual (pt1, pt2)
 Point3dAreEqual determines if the two given points are equal. More...
 
json WSM.Geom.Line3d (point3d, point3dOrVector3d)
 
json WSM.Geom.Line3dAreEqual (line1, line2)
 Line3dAreEqual determines if the two given lines are equal. More...
 
json WSM.Geom.Vector3d (x, y, z)
 
json WSM.Geom.Vector3dAreEqual (v1, v2)
 Vector3dAreEqual determines if the two given Vectors are equal. More...
 
json WSM.Geom.UnitVector3d (x, y, z)
 
json WSM.Geom.UnitVector3dAreEqual (v1, v2)
 UnitVector3dAreEqual determines if the two given Vectors are equal. More...
 
json WSM.Geom.Plane (pt, normal)
 
json WSM.Geom.PlaneAreEqual (plane1, plane2)
 PlaneAreEqual determines if the two given Vectors are equal. More...
 
json WSM.Geom.Vector2d (x, y)
 Vector2d constructs a Vector2d. More...
 
json WSM.Geom.Vector2dAreEqual (v1, v2)
 Vector2dAreEqual determines if the two given Vectors are equal. More...
 
json WSM.Geom.IsPoint3d (point3d)
 
json WSM.Geom.IsVector3d (vector3d)
 
json WSM.Geom.IsTransf3d (transf3d)
 
json WSM.Geom.IsLine3d (line3d)
 
json WSM.Geom.IsPlane (plane)
 

Function Documentation

json WSM.Geom.Interval3d ( minPoint3d  ,
maxPoint3d   
)
json WSM.Geom.Interval3dAreEqual ( interval3d1  ,
interval3d2   
)

Interval3dAreEqual determines if the two given points are equal.

Parameters: In: WSM.Interval3d, WSM.Interval3d Out: bool

Parameters
[in]interval3d1WSM.Interval3d
[in]interval3d2WSM.Interval3d
Returns
interval3d1.isEqual(interval3d2)
json WSM.Geom.InvertTransform ( trans  )

Invert an existing transform Parameters: In: trans Out: inverted trans.

Parameters
[in]transWSM.Transf3d
Returns
trans.invert()
json WSM.Geom.IsIdentityTransform ( trans  )

Check whether a transform is the identity transform Parameters: In: trans Out: true if identity transform.

Parameters
[in]transWSM.Transf3d
Returns
trans.isIdentity()
json WSM.Geom.IsLine3d ( line3d  )
json WSM.Geom.IsPlane ( plane  )
json WSM.Geom.IsPoint3d ( point3d  )
json WSM.Geom.IsTransf3d ( transf3d  )
json WSM.Geom.IsVector3d ( vector3d  )
json WSM.Geom.Line3d ( point3d  ,
point3dOrVector3d   
)
json WSM.Geom.Line3dAreEqual ( line1  ,
line2   
)

Line3dAreEqual determines if the two given lines are equal.

Parameters: In: Line3d, Line3d Out: bool

Parameters
[in]line1WSM.Line3d
[in]line2WSM.Line3d
Returns
line1.isEqual(line2)
json WSM.Geom.MakeRigidTransform ( origin  ,
xDir  ,
yDir  ,
zDir   
)
json WSM.Geom.MakeRotationTransform ( axis  ,
angle   
)
json WSM.Geom.MakeScalingTransform ( scaleCenter  ,
factorVec   
)
json WSM.Geom.Plane ( pt  ,
normal   
)
json WSM.Geom.PlaneAreEqual ( plane1  ,
plane2   
)

PlaneAreEqual determines if the two given Vectors are equal.

Parameters: In: Plane, Plane Out: bool

Parameters
[in]plane1WSM.Plane
[in]plane2WSM.Plane
Returns
plane1.isEqual(plane2)
json WSM.Geom.Point2d ( ,
 
)

Point2d constructs a Point2d.

Parameters: In: x, y Out: Point2d

Parameters
[in]xdouble
[in]ydouble
Returns
{...}
json WSM.Geom.Point2dAreEqual ( pt1  ,
pt2   
)

Point2dAreEqual determines if the two given points are equal.

Parameters: In: Point2d, Point2d Out: bool

Parameters
[in]pt1WSM.Point2d
[in]pt2WSM.Point2d
Returns
pt1.isEqual(pt2)
json WSM.Geom.Point3d ( ,
,
 
)
json WSM.Geom.Point3dAreEqual ( pt1  ,
pt2   
)

Point3dAreEqual determines if the two given points are equal.

Parameters: In: Point3d, Point3d Out: bool

Parameters
[in]pt1WSM.Point3d
[in]pt2WSM.Point3d
Returns
pt1.isEqual(pt2)
json WSM.Geom.Transf3d ( arg0  ,
arg1  ,
arg2  ,
arg3   
)
json WSM.Geom.Transf3dAreEqual ( trans1  ,
trans2   
)

Transf3dAreEqual tests if the two given Trans3ds are equal.

Parameters: In: trans1, trans2 Out: inverted trans

Parameters
[in]trans1WSM.Transf3d
[in]trans2WSM.Transf3d
Returns
trans1.isEqual(trans2);
json WSM.Geom.TranslateTransform ( trans  ,
moveVec   
)

Translate an existing transform by moveVec Parameters: In: trans In: moveVec Out: trans (translated by moveVec)

Parameters
[in]transWSM.Transf3d
[in]moveVecWSM.Vector3d
Returns
trans
json WSM.Geom.UnitVector3d ( ,
,
 
)
json WSM.Geom.UnitVector3dAreEqual ( v1  ,
v2   
)

UnitVector3dAreEqual determines if the two given Vectors are equal.

Parameters: In: UnitVector3d, UnitVector3d Out: bool

Parameters
[in]v1WSM.UnitVector3d
[in]v2WSM.UnitVector3d
Returns
v1.isEqual(v2)
json WSM.Geom.Vector2d ( ,
 
)

Vector2d constructs a Vector2d.

Parameters: In: x, y Out: Vector2d

Parameters
[in]xdouble
[in]ydouble
Returns
{...}
json WSM.Geom.Vector2dAreEqual ( v1  ,
v2   
)

Vector2dAreEqual determines if the two given Vectors are equal.

Parameters: In: Vector2d, Vector2d Out: bool

Parameters
[in]v1WSM.Vector2d
[in]v2WSM.Vector2d
Returns
v1.isEqual(v2)
json WSM.Geom.Vector3d ( ,
,
 
)
json WSM.Geom.Vector3dAreEqual ( v1  ,
v2   
)

Vector3dAreEqual determines if the two given Vectors are equal.

Parameters: In: Vector3d, Vector3d Out: bool

Parameters
[in]v1WSM.Vector3d
[in]v2WSM.Vector3d
Returns
v1.isEqual(v2)