Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Static Public Member Functions
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. More...

#include <ShapeCustom.hxx>

Static Public Member Functions

static TopoDS_Shape ApplyModifier (const TopoDS_Shape &S, const occ::handle< BRepTools_Modification > &M, NCollection_DataMap< TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher > &context, BRepTools_Modifier &MD, const Message_ProgressRange &theProgress=Message_ProgressRange(), const occ::handle< ShapeBuild_ReShape > &aReShape=nullptr)
 Applies modifier to shape and checks sharing in the case assemblies.
 
static TopoDS_Shape DirectFaces (const TopoDS_Shape &S)
 Returns a new shape without indirect surfaces.
 
static TopoDS_Shape ScaleShape (const TopoDS_Shape &S, const double scale)
 Returns a new shape which is scaled original.
 
static TopoDS_Shape BSplineRestriction (const TopoDS_Shape &S, const double Tol3d, const double Tol2d, const int MaxDegree, const int MaxNbSegment, const GeomAbs_Shape Continuity3d, const GeomAbs_Shape Continuity2d, const bool Degree, const bool Rational, const occ::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 true there are means that Offset surfaces , Offset curves 3d and Offset curves 2d are converted to BSPline correspondingly.
 
static TopoDS_Shape ConvertToRevolution (const TopoDS_Shape &S)
 Returns a new shape with all elementary periodic surfaces converted to Geom_SurfaceOfRevolution.
 
static 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 TopoDS_Shape ConvertToBSpline (const TopoDS_Shape &S, const bool extrMode, const bool revolMode, const bool offsetMode, const bool planeMode=false)
 Returns a new shape with all surfaces of linear extrusion, revolution, offset, and planar surfaces converted according to flags to Geom_BSplineSurface (with same parameterisation).
 

Detailed Description

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.

Member Function Documentation

◆ ApplyModifier()

Applies modifier to shape and checks sharing in the case assemblies.

◆ BSplineRestriction()

static TopoDS_Shape ShapeCustom::BSplineRestriction ( const TopoDS_Shape & S,
const double Tol3d,
const double Tol2d,
const int MaxDegree,
const int MaxNbSegment,
const GeomAbs_Shape Continuity3d,
const GeomAbs_Shape Continuity2d,
const bool Degree,
const bool Rational,
const occ::handle< ShapeCustom_RestrictionParameters > & aParameters )
static

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 true there are means that Offset surfaces , Offset curves 3d and Offset curves 2d are converted to BSPline correspondingly.

◆ ConvertToBSpline()

static TopoDS_Shape ShapeCustom::ConvertToBSpline ( const TopoDS_Shape & S,
const bool extrMode,
const bool revolMode,
const bool offsetMode,
const bool planeMode = false )
static

Returns a new shape with all surfaces of linear extrusion, revolution, offset, and planar surfaces converted according to flags to Geom_BSplineSurface (with same parameterisation).

◆ ConvertToRevolution()

static TopoDS_Shape ShapeCustom::ConvertToRevolution ( const TopoDS_Shape & S)
static

Returns a new shape with all elementary periodic surfaces converted to Geom_SurfaceOfRevolution.

◆ DirectFaces()

static TopoDS_Shape ShapeCustom::DirectFaces ( const TopoDS_Shape & S)
static

Returns a new shape without indirect surfaces.

◆ ScaleShape()

static TopoDS_Shape ShapeCustom::ScaleShape ( const TopoDS_Shape & S,
const double scale )
static

Returns a new shape which is scaled original.

◆ SweptToElementary()

static TopoDS_Shape ShapeCustom::SweptToElementary ( const TopoDS_Shape & S)
static

Returns a new shape with all surfaces of revolution and linear extrusion convert to elementary periodic surfaces.


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