Open CASCADE Technology
7.7.0
|
Converts a surface to the analytical form with given precision. Conversion is done only the surface is bspline of bezier and this can be approximated by some analytical surface with that precision. More...
#include <ShapeCustom_Surface.hxx>
Public Member Functions | |
ShapeCustom_Surface () | |
ShapeCustom_Surface (const Handle< Geom_Surface > &S) | |
void | Init (const Handle< Geom_Surface > &S) |
Standard_Real | Gap () const |
Returns maximal deviation of converted surface from the original one computed by last call to ConvertToAnalytical. More... | |
Handle< Geom_Surface > | ConvertToAnalytical (const Standard_Real tol, const Standard_Boolean substitute) |
Tries to convert the Surface to an Analytic form Returns the result Works only if the Surface is BSpline or Bezier. Else, or in case of failure, returns a Null Handle. More... | |
Handle< Geom_Surface > | ConvertToPeriodic (const Standard_Boolean substitute, const Standard_Real preci=-1) |
Tries to convert the Surface to the Periodic form Returns the resulting surface Works only if the Surface is BSpline and is closed with Precision::Confusion() Else, or in case of failure, returns a Null Handle. More... | |
Converts a surface to the analytical form with given precision. Conversion is done only the surface is bspline of bezier and this can be approximated by some analytical surface with that precision.
ShapeCustom_Surface::ShapeCustom_Surface | ( | ) |
ShapeCustom_Surface::ShapeCustom_Surface | ( | const Handle< Geom_Surface > & | S | ) |
Handle< Geom_Surface > ShapeCustom_Surface::ConvertToAnalytical | ( | const Standard_Real | tol, |
const Standard_Boolean | substitute | ||
) |
Tries to convert the Surface to an Analytic form Returns the result Works only if the Surface is BSpline or Bezier. Else, or in case of failure, returns a Null Handle.
If <substitute> is True, the new surface replaces the actual one in <me>
It works by analysing the case which can apply, creating the corresponding analytic surface, then checking coincidence Warning: Parameter laws are not kept, hence PCurves should be redone
Handle< Geom_Surface > ShapeCustom_Surface::ConvertToPeriodic | ( | const Standard_Boolean | substitute, |
const Standard_Real | preci = -1 |
||
) |
Tries to convert the Surface to the Periodic form Returns the resulting surface Works only if the Surface is BSpline and is closed with Precision::Confusion() Else, or in case of failure, returns a Null Handle.
Standard_Real ShapeCustom_Surface::Gap | ( | ) | const |
Returns maximal deviation of converted surface from the original one computed by last call to ConvertToAnalytical.
void ShapeCustom_Surface::Init | ( | const Handle< Geom_Surface > & | S | ) |