To produce a Shape Processing operation in the Main Menu select Repair - > Shape Processing.
This operation processes a shape using various operators.
Result: GEOM_Object.
TUI Command: geompy.ProcessShape(Shape, Operators, Parameters, Values), where Shape is a processed shape, Operators is a list of names of operators ("FixShape", "SplitClosedFaces", etc.), Parameters is a list of names of parameters (FixShape.Tolerance3d, etc), Values is a list of values of parameters in the same order as the Parameters list.
Arguments: 1 or more shapes.
1 |
SplitAngle this operator is intended for splitting faces based on conical surfaces, surfaces of revolution and cylindrical surfaces by angle SplitAngle.Angle angle (in radians) defining size of result segments. SplitAngle.MaxTolerance maximal possible tolerance on result shape |
2 |
SplitClosedFaces this operator is intended for dividing all closed faces in the shape according to the number of points. SplitClosedFaces.NbSplitPoints number of points for cutting each closed faces. |
3 |
FixFaceSize this operator is intended for removing small faces (case of the spot face and strip face) FixFaceSize.Tolerance work tolerance defining which faces will be removed. |
4 |
DropSmallEdges this operator is intended for removing small edges or merging with neigbour. DropSmallEdges.Tolerance3d work tolerance for detection and removing small edges. |
5 |
BsplineRestriction this operator is intended for re-approximation BSplines curves and surfaces or conversion of the curves and surfaces to BSplines with specified parameters. BSplineRestriction.SurfaceMode - mode of approximation of surfaces if restriction is necessary BSplineRestriction.Curve3dMode -mode of conversion of any 3D curve to BSpline and approximation. BSplineRestriction.Curve2dMode - mode of conversion of any 2D curve to BSpline and approximation BSplineRestriction.Tolerance3d work tolerance for definition of the possibility of the approximation of the surfaces and 3D curves with specified parameters. BSplineRestriction.Tolerance2d - work tolerance for definition of the possibility of the approximation of the 2D curves with specified parameters. BSplineRestriction.Continuity3d desired continuity of the resultant surfaces and 3D curves. BSplineRestriction.Continuity2d desired continuity of the resultant 2D curves. BSplineRestriction.RequiredDegree - required degree of the resultant BSplines BSplineRestriction.RequiredNbSegments - required maximum number of segments of resultant BSplines. |
6 |
SplitContinuity this operator is intended for splitting shapes to achieve continuities of curves and surfaces less than specified ones. SplitContinuity.Tolerance3d - 3D tolerance for correction of geometry. SplitContinuity.SurfaceContinuity - required continuity for surfaces. SplitContinuity.CurveContinuity - required continuity for curves. |
7 |
ToBezier - this operator is intended for conversion of the curves and surfaces of the all types into Bezier curves and surfaces. ToBezier.SurfaceMode - mode of conversion of the surfaces. ToBezier.Curve3dMode mode for conversion of the 3D curves. ToBezier.Curve2dMode mode for conversion of the 2D curves. ToBezier.MaxTolerance max possible tolerance on the resultant shape. |
8 |
FixShape this operator is intended for correction of the invalid shapes FixShape.Tolerance3d work tolerance for detection of the problems and correction of them. FixShape.MaxTolerance3d - maximal possible tolerance of the shape after correction. |
9 |
SameParameter this operator is intended for fixing edges having not same parameter 2D and 3D curves. SameParameter.Tolerance3d tolerance for detection and fix problems. |
Dialog Box:
Example:
Shape before applying Shape Processing (FixShape operator).
The same shape after applying Shape Processing.
Our TUI Scripts provide you with useful examples of the use of Repairing Operations.