Improvement 0019703: deform (scale along axes) a shape.

This commit is contained in:
jfa 2008-07-10 13:33:57 +00:00
parent d72b7ebbff
commit f22d540e00
5 changed files with 15 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -9,13 +9,17 @@
shape. For this, you need to define the \b Shape to be scaled, the
<b>Central Point</b> of scale and the Scale Factor(s).
\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.
\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.
\n <b>Advanced option:</b>
\ref restore_presentation_parameters_page "Set presentation parameters and subshapes from arguments".
\image html transformation10.png
\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.
\image html transformation10a.png
\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.
\note If <b>Central Point</b> is not defined, the scaling will be
performed relatively the origin of global coordinate system.
@ -24,14 +28,18 @@ 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.
\image html transformation10.png
\n <b>Example:</b>
\n <b>Example of simple scaling:</b>
\image html scale_transformsn1.png
\image html scale_transformsn2.png
\n <b>Example of scaling on different factors along axes:</b>
\image html scale_transformsn3.png
\image html scale_transformsn4.png
Our <b>TUI Scripts</b> provide you with useful examples of the use of
\ref tui_scale "Scale Transformation" and of \ref swig_scale "Scale Along Axes Transformation"