C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
MbSurfaceFitConstraint Class Reference

Constraint for primitive fitting. More...

#include <op_mesh_parameter.h>

Public Member Functions

 MbSurfaceFitConstraint ()
 Default constructor.
 
MbResultType InitializeXYW (MbeSpaceType typeSurface, MbeDimensionalConstraintType typeDim, const MbConstraintFixedValues &fixedValues, const MbPlacement3D &place)
 Initialize the XYW-constraint (in case of validity). More...
 
MbResultType InitializeZ (MbeSpaceType typeSurface, MbeDimensionalConstraintType typeDim, const MbConstraintFixedValues &fixedValues, const MbPlacement3D &place)
 Initialize the Z-constraint (in case of validity). More...
 
MbResultType InitializeXYZ (MbeSpaceType typeSurface, MbeDimensionalConstraintType typeDim, const MbConstraintFixedValues &fixedValues, const MbPlacement3D &place)
 Initialize the XYZ-constraint (in case of validity). More...
 
MbResultType InitializeZW (MbeSpaceType typeSurface, MbeDimensionalConstraintType typeDim, const MbConstraintFixedValues &fixedValues, const MbPlacement3D &place)
 Initialize the ZW-constraint (in case of validity). More...
 
MbePositionConstraintType GetPosType () const
 Get the position constraint type.
 
MbeDimensionalConstraintType GetDimType () const
 Get the dimensional constraint type.
 
const MbConstraintFixedValuesGetFixedValues () const
 Get the structure with fixed values of surface parameters.
 
const MbPlacement3DGetPlacement () const
 Get the local coordinate system.
 
bool IsEmpty () const
 Check whether the constraint is empty.
 
void SetEmpty ()
 Set empty constraint.
 
Position constraints.
bool AddAxisConstraint (const MbVector3D &direction, double angle=0.)
 Add an axis constraint. More...
 
void AddCoaxialConstraint (const MbAxis3D &axis)
 Add a coaxial constraint. More...
 
Dimensional constraints.
bool AddCylinderRadiusConstraint (double radius)
 Fix cylinder radius. More...
 
bool AddSphereRadiusConstraint (double radius)
 Fix sphere radius. More...
 
bool AddConeAngleConstraint (double angle)
 Fix cone angle. More...
 
bool AddTorusRadiiConstraint (double majorRadius, double minorRadius)
 Fix torus radii. More...
 

Detailed Description

Constraint for primitive fitting.

Constraint for primitive fitting. Position constraint operates in a given local coordinate system. Fixed values for position and dimensional parameters are given by a structure.

Warning
Under development.

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