C3D Toolkit  Kernel - 118057, Vision - 2.14.7.1821

Parameters determining mutual location of the surface and the plane in curves/points wrap/unwrap operation. More...

#include <op_curve_parameter.h>

Public Member Functions

 MbWrapValues (const MbPlacement3D &place, const MbCartPoint &xy, const MbSurface &surf, const MbCartPoint &uv, bool copySurface, double angle, bool sense, bool keepLength)
 Constructor by parameters. More...
 
 MbWrapValues (TapeInit tapeInit)
 Constructor for reading.
 
void Init (const MbPlacement3D &place, const MbCartPoint &xy, const MbSurface &surf, const MbCartPoint &uv, bool copySurface, double angle, bool sense, bool keepLength)
 Initialize parameters. More...
 
void TransformSurface (const MbMatrix3D &matr, MbRegTransform *iReg=nullptr)
 Transform the surface according to the matrix.
 
void TransformPlane (const MbMatrix3D &matr)
 Transform the plane according to the matrix.
 
void MoveSurface (const MbVector3D &to, MbRegTransform *iReg=nullptr)
 Move the surface along a vector.
 
void MovePlane (const MbVector3D &to)
 Move the plane along a vector.
 
void RotateSurface (const MbAxis3D &axis, double angle, MbRegTransform *iReg=nullptr)
 Rotate the surface around an axis at a given angle.
 
void RotatePlane (const MbAxis3D &axis, double angle)
 Rotate the plane around an axis at a given angle.
 
const MbPlacement3DGetPlacement () const
 Get the local coordinate system.
 
const MbSurfaceGetSurface (bool base=false) const
 Get the surface.
 
const MbCartPointGetPlacePoint () const
 Get the anchor point in the plane.
 
const MbCartPointGetSurfacePoint () const
 Get the anchor point in the parametric region of the surface.
 
double GetAngle () const
 Get the rotation angle of plane around the normal.
 
bool IsSense () const
 Whether the coordinate system of the plane is right-handed.
 
bool IsLengthKept () const
 Should the result curve length be equal to the original curve length?
 
bool IsSame (const MbWrapValues &other, double eps) const
 The comparison with other parameters.
 

Detailed Description

Parameters determining mutual location of the surface and the plane in curves/points wrap/unwrap operation.

Parameters determining mutual location of the surface and the plane in curves/points wrap/unwrap operation.
The following conditions are considered to be satisfied in the algorithm: the plane (_place) is tangent to the surface (_surface) at the points _xy (_place) and _uv (surface); surface normals are co-directional vectors with the plane normal in every tangent point; direction of Y-axis of _place coincides with zero-curvature direction of _surface; _place is right-handed coordinate system.
If these conditions are not satisfied or _angle != 0 (the rotation angle of the plane) or _sense = false (_place is left-handed coordinate system) then the operation result will be linearly transformed according to corresponding parameters.

Constructor & Destructor Documentation

◆ MbWrapValues()

MbWrapValues::MbWrapValues ( const MbPlacement3D place,
const MbCartPoint xy,
const MbSurface surf,
const MbCartPoint uv,
bool  copySurface,
double  angle,
bool  sense,
bool  keepLength 
)

Constructor by parameters.

Constructor by parameters.

Parameters
[in]place- The local coordinate system (LCS). XY - is the wrapping/unwrapping plane.
[in]xy- The anchor point on the plane.
[in]surf- The surface to unwrap.
[in]uv- The anchor point in the parametric region of the surface.
[in]copySurface- Whether to save the surface copy in this parameter class.
[in]angle- The rotation angle of the plane place around its Z-axis.
[in]sense- Indicator of right-/left-handed coordinate system of the plane.
[in]keepLength- Should the lengths of the curves on another carrier match the originals?

Member Function Documentation

◆ Init()

void MbWrapValues::Init ( const MbPlacement3D place,
const MbCartPoint xy,
const MbSurface surf,
const MbCartPoint uv,
bool  copySurface,
double  angle,
bool  sense,
bool  keepLength 
)

Initialize parameters.

Initialize parameters.

Parameters
[in]place- The local coordinate system (LCS). XY - is the wrapping/unwrapping plane.
[in]xy- The anchor point on the plane.
[in]surf- The surface to unwrap.
[in]uv- The anchor point in the parametric region of the surface.
[in]copySurface- Whether to save the surface copy in this parameter class.
[in]angle- The rotation angle of the plane place around its Z-axis.
[in]sense- Indicator of right-/left-handed coordinate system of the plane.
[in]keepLength- Should the lengths of the curves on another carrier match the originals?

The documentation for this class was generated from the following file: