Open CASCADE Technology 6.6.0
Public Member Functions
ShapeCustom_Surface Class Reference

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.

#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

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

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 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


Constructor & Destructor Documentation

ShapeCustom_Surface::ShapeCustom_Surface ( )
ShapeCustom_Surface::ShapeCustom_Surface ( const Handle< Geom_Surface > &  S)

Member Function Documentation

Handle_Geom_Surface ShapeCustom_Surface::ConvertToAnalytical ( const Standard_Real  tol,
const Standard_Boolean  substitute 
)
Handle_Geom_Surface ShapeCustom_Surface::ConvertToPeriodic ( const Standard_Boolean  substitute,
const Standard_Real  preci = -1 
)
Standard_Real ShapeCustom_Surface::Gap ( ) const
void ShapeCustom_Surface::Init ( const Handle< Geom_Surface > &  S)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines