![]() |
Open CASCADE Technology Reference Manual 8.0.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 occ::handle< Geom_Surface > &S) | |
| void | Init (const occ::handle< Geom_Surface > &S) |
| double | Gap () const |
| Returns maximal deviation of converted surface from the original one computed by last call to ConvertToAnalytical. | |
| occ::handle< Geom_Surface > | ConvertToAnalytical (const double tol, const bool 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. | |
| occ::handle< Geom_Surface > | ConvertToPeriodic (const bool substitute, const double 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. | |
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 occ::handle< Geom_Surface > & | S | ) |
| occ::handle< Geom_Surface > ShapeCustom_Surface::ConvertToAnalytical | ( | const double | tol, |
| const bool | 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
| occ::handle< Geom_Surface > ShapeCustom_Surface::ConvertToPeriodic | ( | const bool | substitute, |
| const double | 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.
| double 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 occ::handle< Geom_Surface > & | S | ) |