Scale¶
Scale feature makes a scaled shape basing on the initial shape.
To create a Scale in the active part:
select in the Main Menu Features - > Scale item or
click Scale button in the toolbar
Two Scale algorithms are:
by one common factor
by different factors along axes
Scale by one common factor¶
Scale by one common factor scales the entire object without modification the geometry of the shape: dimensions change evenly in all three orthogonal directions.
Input fields:
Main objects panel contains shapes to be scaled. Shapes are selected in 3D OCC viewer or object browser; Transformation of COMPSOLID subshapes is prohibited.
Center point defines the point relatively to which the object is scaled. Point is selected in 3D OCC viewer or object browser;
Scale factor defines the multiplier of axial dimensions. If Scale Factor is negative, the object is mirrored through the Central Point.
TUI Command:
-
model.
addScale
(Part_doc, [shape, ]center, factor)¶ - Parameters
part – The current part object.
list – A list of shapes in format model.selection(TYPE, shape).
object – A center point in format model.selection(TYPE, shape).
real – Scale factor.
- Returns
Result object.
Result¶
Result of operation is transformed initial shape shown in wireframe mode together with initial shape in shading mode.
See Also a sample TUI Script of Scale by one common factor operation.
Scale by different factors along axes¶
Scale by different factors along axes is a general transformation, which can modify the geometry, for example, a sphere can be transformed into an ellipsoid.
Input fields:
Main objects panel contains shapes to be scaled. Shapes are selected in 3D OCC viewer or object browser; Transformation of COMPSOLID subshapes is prohibited.
Center point defines the point relatively to which the object is scaled. Point is selected in 3D OCC viewer or object browser;
Scale factor in X, Scale factor in Y, Scale factor in Z define the the multipliers of axial dimensions. If Scale Factor is negative, the object is mirrored through the Central Point.
TUI Command:
-
model.
addScale
(Part_doc, [shape, ]center, factors)¶ - Parameters
part – The current part object.
list – A list of shapes in format model.selection(TYPE, shape).
object – A center point in format model.selection(TYPE, shape).
list – A list of three scale factor values along X. Y, Z axes.
- Returns
Result object.
Result¶
Result of operation is transformed initial shape.
See Also a sample TUI Script of Scale by different factors along axes operation.