OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKShHealing
ShapeCustom


ShapeCustom Class Reference

This package is intended to
convert geometrical objects and topological. The
modifications of one geometrical object to another
(one) geometrical object are provided. The supported
modifications are the following:
conversion of BSpline and Bezier surfaces to analytical form,
conversion of indirect elementary surfaces (with left-handed
coordinate systems) into direct ones,
conversion of elementary surfaces to surfaces of revolution,
conversion of surface of linear extrusion, revolution, offset
surface to bspline,
modification of parameterization, degree, number of segments of bspline
surfaces, scale the shape.
.

#include <ShapeCustom.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)

Static Public Member Functions

static Standard_EXPORT TopoDS_Shape ApplyModifier (const TopoDS_Shape &S, const Handle(BRepTools_Modification)&M, TopTools_DataMapOfShapeShape &context, BRepTools_Modifier &MD)
 Applies modifier to shape and checks sharing in the case assemblies.
.
static Standard_EXPORT TopoDS_Shape DirectFaces (const TopoDS_Shape &S)
 Returns a new shape without indirect surfaces.
.
static Standard_EXPORT TopoDS_Shape ScaleShape (const TopoDS_Shape &S, const Standard_Real scale)
 Returns a new shape which is scaled original
.
static Standard_EXPORT TopoDS_Shape BSplineRestriction (const TopoDS_Shape &S, const Standard_Real Tol3d, const Standard_Real Tol2d, const Standard_Integer MaxDegree, const Standard_Integer MaxNbSegment, const GeomAbs_Shape Continuity3d, const GeomAbs_Shape Continuity2d, const Standard_Boolean Degree, const Standard_Boolean Rational, const Handle(ShapeCustom_RestrictionParameters)&aParameters)
 Returns a new shape with all surfaces, curves and pcurves
which type is BSpline/Bezier or based on them converted
having Degree less than <maxdegree> or number of spans less
than <nbmaxsegment> in dependence on parameter priority <degree>.
<gmaxdegree> and <gmaxsegments> are maximum possible degree
and number of spans correspondingly.
These values will be used in those cases when approximation with
specified parameters is impossible and one of GmaxDegree or
GMaxSegments is selected in dependence on priority.
Note that even if approximation is impossible with <gmaxdegree>
then number of spans can exceed specified <gmaxsegment>
<rational> specifies if to convert Rational BSpline/Bezier into
polynomial B-Spline.
If flags ConvOffSurf,ConvOffCurve3d,ConvOffCurve2d are Standard_True there are means
that Offset surfaces , Offset curves 3d and Offset curves 2d are converted to BSPline
correspondingly.
.
static Standard_EXPORT TopoDS_Shape ConvertToRevolution (const TopoDS_Shape &S)
 Returns a new shape with all elementary periodic surfaces converted
to Geom_SurfaceOfRevolution
.
static Standard_EXPORT TopoDS_Shape SweptToElementary (const TopoDS_Shape &S)
 Returns a new shape with all surfaces of revolution and linear extrusion
convert to elementary periodic surfaces
.
static Standard_EXPORT TopoDS_Shape ConvertToBSpline (const TopoDS_Shape &S, const Standard_Boolean extrMode, const Standard_Boolean revolMode, const Standard_Boolean offsetMode)
 Returns a new shape with all surfaces of linear extrusion, revolution
and offset surfaces converted according to flogs to
Geom_BSplineSurface (with same parametrisation).
.


Member Function Documentation

static Standard_EXPORT TopoDS_Shape ShapeCustom::ApplyModifier const TopoDS_Shape &  S,
const Handle(BRepTools_Modification)&  M,
TopTools_DataMapOfShapeShape &  context,
BRepTools_Modifier &  MD
[static]
 

static Standard_EXPORT TopoDS_Shape ShapeCustom::BSplineRestriction const TopoDS_Shape &  S,
const Standard_Real  Tol3d,
const Standard_Real  Tol2d,
const Standard_Integer  MaxDegree,
const Standard_Integer  MaxNbSegment,
const GeomAbs_Shape  Continuity3d,
const GeomAbs_Shape  Continuity2d,
const Standard_Boolean  Degree,
const Standard_Boolean  Rational,
const Handle(ShapeCustom_RestrictionParameters)&  aParameters
[static]
 

static Standard_EXPORT TopoDS_Shape ShapeCustom::ConvertToBSpline const TopoDS_Shape &  S,
const Standard_Boolean  extrMode,
const Standard_Boolean  revolMode,
const Standard_Boolean  offsetMode
[static]
 

static Standard_EXPORT TopoDS_Shape ShapeCustom::ConvertToRevolution const TopoDS_Shape &  S  )  [static]
 

static Standard_EXPORT TopoDS_Shape ShapeCustom::DirectFaces const TopoDS_Shape &  S  )  [static]
 

void ShapeCustom::operator delete void *  anAddress  )  [inline]
 

void* ShapeCustom::operator new size_t  size  )  [inline]
 

void* ShapeCustom::operator new size_t  ,
void *  anAddress
[inline]
 

static Standard_EXPORT TopoDS_Shape ShapeCustom::ScaleShape const TopoDS_Shape &  S,
const Standard_Real  scale
[static]
 

static Standard_EXPORT TopoDS_Shape ShapeCustom::SweptToElementary const TopoDS_Shape &  S  )  [static]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:42:35 2008 for OpenCASCADE by  doxygen 1.4.1