Open CASCADE Technology  7.2.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. 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_SurfaceConvertToAnalytical (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_SurfaceConvertToPeriodic (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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ShapeCustom_Surface() [1/2]

ShapeCustom_Surface::ShapeCustom_Surface ( )

◆ ShapeCustom_Surface() [2/2]

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

Member Function Documentation

◆ ConvertToAnalytical()

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

◆ ConvertToPeriodic()

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.

◆ Gap()

Standard_Real ShapeCustom_Surface::Gap ( ) const

Returns maximal deviation of converted surface from the original one computed by last call to ConvertToAnalytical.

◆ Init()

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

The documentation for this class was generated from the following file: