Open CASCADE Technology 6.6.0
Public Member Functions | Protected Attributes
ShapeUpgrade_SplitSurface Class Reference

Splits a Surface with a criterion.

#include <ShapeUpgrade_SplitSurface.hxx>

Inheritance diagram for ShapeUpgrade_SplitSurface:
Inheritance graph
[legend]

Public Member Functions

 ShapeUpgrade_SplitSurface ()
 Empty constructor.

void Init (const Handle< Geom_Surface > &S)
 Initializes with single supporting surface.

void Init (const Handle< Geom_Surface > &S, const Standard_Real UFirst, const Standard_Real ULast, const Standard_Real VFirst, const Standard_Real VLast)
 Initializes with single supporting surface with bounding parameters.

void SetUSplitValues (const Handle< TColStd_HSequenceOfReal > &UValues)
 Sets U parameters where splitting has to be done

void SetVSplitValues (const Handle< TColStd_HSequenceOfReal > &VValues)
 Sets V parameters where splitting has to be done

virtual void Build (const Standard_Boolean Segment)
 Performs splitting of the supporting surface.
If resulting surface is B-Spline and Segment is True,
the result is composed with segments of the surface bounded
by the U and V SplitValues (method Geom_BSplineSurface::Segment
is used).
If Segment is False, the result is composed with
Geom_RectangularTrimmedSurface all based on the same complete
surface.
Fields myNbResultingRow and myNbResultingCol must be set to
specify the size of resulting grid of surfaces.

virtual void Compute (const Standard_Boolean Segment=Standard_True)
 Calculates points for correction/splitting of the surface.

void Perform (const Standard_Boolean Segment=Standard_True)
 Performs correction/splitting of the surface.
First defines splitting values by method Compute(), then calls method Build().

const
Handle_TColStd_HSequenceOfReal & 
USplitValues () const
 returns all the U splitting values including the
First and Last parameters of the input surface

const
Handle_TColStd_HSequenceOfReal & 
VSplitValues () const
 returns all the splitting V values including the
First and Last parameters of the input surface

Standard_Boolean Status (const ShapeExtend_Status status) const
 Returns the status
OK - no splitting is needed
DONE1 - splitting required and gives more than one patch
DONE2 - splitting is required, but gives only single patch (initial)
DONE3 - geometric form of the surface or parametrisation is modified

const
Handle_ShapeExtend_CompositeSurface & 
ResSurfaces () const
 Returns obtained surfaces after splitting as CompositeSurface

Protected Attributes

Handle_TColStd_HSequenceOfReal myUSplitValues
Handle_TColStd_HSequenceOfReal myVSplitValues
Standard_Integer myNbResultingRow
Standard_Integer myNbResultingCol
Handle_Geom_Surface mySurface
Standard_Integer myStatus
Handle_ShapeExtend_CompositeSurface myResSurfaces

Constructor & Destructor Documentation

ShapeUpgrade_SplitSurface::ShapeUpgrade_SplitSurface ( )

Member Function Documentation

virtual void ShapeUpgrade_SplitSurface::Build ( const Standard_Boolean  Segment) [virtual]
virtual void ShapeUpgrade_SplitSurface::Compute ( const Standard_Boolean  Segment = Standard_True) [virtual]
void ShapeUpgrade_SplitSurface::Init ( const Handle< Geom_Surface > &  S)
void ShapeUpgrade_SplitSurface::Init ( const Handle< Geom_Surface > &  S,
const Standard_Real  UFirst,
const Standard_Real  ULast,
const Standard_Real  VFirst,
const Standard_Real  VLast 
)
void ShapeUpgrade_SplitSurface::Perform ( const Standard_Boolean  Segment = Standard_True)
const Handle_ShapeExtend_CompositeSurface& ShapeUpgrade_SplitSurface::ResSurfaces ( ) const
void ShapeUpgrade_SplitSurface::SetUSplitValues ( const Handle< TColStd_HSequenceOfReal > &  UValues)
void ShapeUpgrade_SplitSurface::SetVSplitValues ( const Handle< TColStd_HSequenceOfReal > &  VValues)
Standard_Boolean ShapeUpgrade_SplitSurface::Status ( const ShapeExtend_Status  status) const
const Handle_TColStd_HSequenceOfReal& ShapeUpgrade_SplitSurface::USplitValues ( ) const
const Handle_TColStd_HSequenceOfReal& ShapeUpgrade_SplitSurface::VSplitValues ( ) const

Field Documentation

Handle_ShapeExtend_CompositeSurface ShapeUpgrade_SplitSurface::myResSurfaces [protected]
Handle_Geom_Surface ShapeUpgrade_SplitSurface::mySurface [protected]
Handle_TColStd_HSequenceOfReal ShapeUpgrade_SplitSurface::myUSplitValues [protected]
Handle_TColStd_HSequenceOfReal ShapeUpgrade_SplitSurface::myVSplitValues [protected]

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