All Frameworks Class Hierarchy This Framework Previous Next Indexes
FreeFormOperators Class CATInterproxSur
Mathematics.CATCGMVirtual
|
+---CATInterproxSur
Usage: you must use this class as is. You should never derive it.
public class CATInterproxSur
Class representing the geometric operator that deforms surfaces on a set of points.
Several parameters define this operator:
- The tension parameter strengthens the shape: a higher tension gives a flatter shape.
- The curvature (or smoothness) parameter regularizes the surface curvature:
a higher curvature coefficient gives a smoother surface.
This operator projects the set of points on the surfaces and use a least squares method to deform the surfaces.
To use it in BASIC mode:
- Create it with the CreateInterproxSur global method. The run is automatically done and the
input surfaces are directly deformed.
- delete the operator with the usual C++ delete operator after use.
To use it in ADVANCED mode:
- Create it with the CreateInterproxSur global method.
- Change the smoothness or tension parameters with the SetXxx methods.
- Run it. This step directly deforms the input surfaces, it is the reason why there is no GetResult
method. You can Run again the operator with different parameters,
allowing you to iterate on the deformation.
- delete the operator after use.
Constructor and Destructor Index
- o
~CATInterproxSur()
-
Method Index
- o
Run()
- Runs this operator (ADVANCED mode).
- o
SetContinuity(int*)
- Defines the continuity constraints.
- o
SetCurvatureParameter(double)
- Defines the smoothness parameter (ADVANCED mode).
- o
SetTensionParameter(double)
- Defines the tension parameter (ADVANCED mode).
Constructor and Destructor
o ~CATInterproxSur
public virtual ~CATInterproxSur( | ) |
-
Methods
o Run
public virtual void Run( | )=0 |
-
Runs this operator (ADVANCED mode).
The input surfaces are directly modified
o SetContinuity
public virtual void SetContinuity( | const int* | iImposition)=0 |
-
Defines the continuity constraints.
- Parameters:
-
- iImposition
- The array [4*Nbsur] defining the type of constraints at each extremities of the deformed surface.
The array is filled as follows, for the input surfaces from 0 <= i < Nbsur:
- iImposition[0+4*i] for the iso-parametric boundary v=0 of the i-th surface.
- iImposition[1+4*i] for the iso-parametric boundary u=0 of the i-th surface.
- iImposition[2+4*i] for the iso-parametric boundary v=vmax of the i-th surface.
- iImposition[3+4*i] for the iso-parametric boundary u=umax of the i-th surface.
Legal values: 0 for a free boundary,
1 for a C0 continuity with the input surface,
2 for a C1 continuity, 3 for a C2 continuity.
o SetCurvatureParameter
public virtual void SetCurvatureParameter( | const double | iSmoothness)=0 |
-
Defines the smoothness parameter (ADVANCED mode).
- Parameters:
-
- iSmoothness
- The new value of the smoothness parameter.
o SetTensionParameter
public virtual void SetTensionParameter( | const double | iTension)=0 |
-
Defines the tension parameter (ADVANCED mode).
- Parameters:
-
- iTension
- The new value of the tension parameter.
This object is included in the file: CATInterproxSur.h
If needed, your Imakefile.mk should include the module: CATFreeFormOperators