2008-03-07 12:45:34 +05:00
|
|
|
/*!
|
|
|
|
|
|
|
|
\page scale_operation_page Scale Transform
|
|
|
|
|
|
|
|
\n To produce a <b>Scale Transform</b> in the <b>Main Menu</b> select
|
|
|
|
<b>Operations - > Transformation - > Scale Transform</b>
|
|
|
|
|
|
|
|
\n This operation creates a scaled shape basing on the initial
|
|
|
|
shape. For this, you need to define the \b Shape to be scaled, the
|
2008-07-10 18:19:34 +06:00
|
|
|
<b>Central Point</b> of scale and the Scale Factor(s).
|
2008-03-07 12:45:34 +05:00
|
|
|
\n The \b Result will be a \b GEOM_Object.
|
|
|
|
\n <b>TUI Command:</b> <em>geompy.MakeScaleTransform(Shape, CenterOfScale, Factor)</em>
|
|
|
|
\n <b>Arguments:</b> Name + 1 shape(s) + 1 vertex + 1 Scale Factor.
|
2008-07-10 18:19:34 +06:00
|
|
|
\n <b>TUI Command:</b> <em>geompy.MakeScaleAlongAxes(Shape, CenterOfScale, FactorX, FactorY, FactorZ)</em>
|
|
|
|
\n <b>Arguments:</b> Name + 1 shape(s) + 1 vertex + 3 Scale Factors.
|
2008-04-09 18:58:12 +06:00
|
|
|
\n <b>Advanced option:</b>
|
|
|
|
\ref restore_presentation_parameters_page "Set presentation parameters and subshapes from arguments".
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2008-07-10 18:19:34 +06:00
|
|
|
\note If <b>Central Point</b> is not defined, the scaling will be
|
|
|
|
performed relatively the origin of global coordinate system.
|
|
|
|
|
|
|
|
\note Scaling by a factor is a simple transformation, it does not modify
|
|
|
|
geometry of the shape, while scaling by different factors along axes
|
|
|
|
is a general transformation, which can modify geometry, for example, a
|
|
|
|
circle can be transformed into an ellipse.
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
\image html transformation10.png
|
|
|
|
|
|
|
|
\n <b>Example:</b>
|
|
|
|
|
|
|
|
\image html scale_transformsn1.png
|
|
|
|
|
|
|
|
\image html scale_transformsn2.png
|
|
|
|
|
|
|
|
Our <b>TUI Scripts</b> provide you with useful examples of the use of
|
2008-07-10 18:19:34 +06:00
|
|
|
\ref tui_scale "Scale Transformation" and of \ref swig_scale "Scale Along Axes Transformation"
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2008-04-09 18:58:12 +06:00
|
|
|
*/
|