|
Open CASCADE Technology
6.7.1
|
Converts a surface to the analitical form with given
precision. Conversion is done only the surface is bspline
of bezier and this can be approximed 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 <br>
Returns the result <br>
Works only if the Surface is BSpline or Bezier. <br>
Else, or in case of failure, returns a Null Handle <br>
| |
| 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 analitical form with given
precision. Conversion is done only the surface is bspline
of bezier and this can be approximed 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 <br>
Returns the result <br>
Works only if the Surface is BSpline or Bezier. <br>
Else, or in case of failure, returns a Null Handle <br>
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 | ) |
1.8.5