Shape Processing

To produce a Shape Processing operation in the Main Menu select Repair - > Shape Processing.

This operation processes one or more shapes using various operators.

 

The Result will be a GEOM_Object.

 

TUI Command: geompy.ProcessShape(Shape, Operators, Parameters, Values), where Shape is a processed shape, Operators is a list of operators ("FixShape", "SplitClosedFaces", etc.), Parameters is a list of parameters (“FixShape.Tolerance3d”, etc), Values is a list of values of parameters placed in the same order as in the list of Parameters .

 

In this dialog box you can select the object that you need to process, define its name and operators applied to it during processing.

 

 

Operators and Parameters (TUI names are given in brackets)

 

This and the previous parameters can take the following values:

Parametric Continuity

C0 (Positional Continuity): curves are joined (the end positions of curves or surfaces are coincidental. The curves or surfaces may still meet at an angle, giving rise to a sharp corner or edge).

C1 (Tangential Continuity): first derivatives are equal (the end vectors of curves or surfaces are parallel, ruling out sharp edges).

C2 (Curvature Continuity): first and second derivatives are equal (the end vectors of curves or surfaces are of the same magnitude).

CN N-th derivatives are equal (both the direction and the magnitude of the Nth derivatives of curves or surfaces (d/du C(u)) are the same at junction.

Geometric Continuity

G1: first derivatives are proportional at junction

The curve tangents thus have the same direction, but not necessarily the same magnitude. i.e., C1'(1) = (a,b,c) and C2'(0) = (k*a, k*b, k*c).

G2: first and second derivatives are proportional at junction

As the names imply, geometric continuity requires the geometry to be continuous, while parametric continuity requires that the underlying parameterization was continuous as well.

Parametric continuity of order n implies geometric continuity of order n, but not vice-versa.

 

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.