Deformation by Curve

Предыдущая страницаВ началоСледующая страница

Calling the command:

Keyboard

Ribbon

DeformationbyCurve

3D Model > Special > Deformation > Deformation by Curve

Keyboard

Textual Menu

<3DRV>

Operation > Deformation > Deformation by Curve

The law of the deformation by curve is determined by two space curves (source and target). The source curve is identified with the deformed body in its initial state; the target curve – in the resulting state. The space transformation law is constructed in such a way as to provide the transformation of the source curve to the target one.

In general case, the source and the target curves can have arbitrary shapes. Most often, a line (for example, one of the edges of the deformed body or a straight 3D path) is used as the source 3D curve.

When constructing the deformation law, in each point of the two curves the auxiliary LCS1(s) and LCS2(s) (s – the curve parameter) are calculated, whose pairwise superposition allows a user to define more precisely the space orientation of the resulting body. The auxiliary LCS are computed by the system in the following way: the tangent to the source/target curve at the current point is taken as the X-axis, the normal to the auxiliary surface at the given point of the same curve is taken as the Y-axis, the Z-axis is the vector product of the X and Y axes.

The auxiliary surfaces for the source and target curves can be constructed differently depending on the selected algorithm of the deformation by curve:

3D Curve – 3D Curve;

Curve – Spiral;

Pair of Curves – Pair of Curves.

3D Curve – 3D Curve

When using this algorithm, a user specifies an auxiliary direction vector for each of the curves (source and target). For this purpose, a user defines the LCS one of the axes of which will define the direction vector.

The auxiliary surface for both curves (source and target) is formed by moving the direction vectors along the corresponding curves by using the minimum twist method.

As an example of using this algorithm, consider one of the typical problems solved by this algorithm  – wrapping the source body into a ring. The resulting body can be closed.

clip4743   clip4744

3D Curve – Spiral

This algorithm is based on the assumption that the target curve resembles a “spiral”, that is, there is a space axis around which this curve is “wound”. The use of this algorithm of the deformation by curve allows a user to “wind” bodies around the axisymmetric curves in the most natural way.

In this algorithm, a user defines an additional direction vector for the source curve (by selecting LCS and one of its axes). The auxiliary surface for the source curve is formed in the same way as in the previous case by moving the given direction vector along the curve by using the minimum twist method.

A user also defines the axis of the target curve by selecting the LCS and the desired axis. For the target curve the auxiliary surface is formed as a set of vectors directed from each point of the curve at the axis along the shortest distance.

clip4745   clip4746

Pair of 3D Curves – Pair of 3D Curves

In this algorithm, for each of the main curves (source and target) an additional 3D twist curve is specified.

When calculating the transformation law, the auxiliary surfaces for the source and target curves are formed as the set of vectors directed from each point of the source/target curve at the corresponding to it point of the twist curve.

clip4747   clip4748

Creating Deformation by Curve

The first step after invoking this command is the selection of the deformed body:

SelectBody

<O>

Select Body to Deform

This option is turned on by default upon the entry into the command. The deformed body is selected with the help of Левый клик Текст in the 3D window or in the tree of the 3D model. The selected body is highlighted.

After selecting the deformed body, the desired deformation algorithm has to be selected. To do it, use the Type drop-down list in the command's parameters window.

Depending on the deformation algorithm selected, the following steps sequence will vary.

s986

Creating 3D Curve – 3D Curve deformation

If in the Type list the user selects the value 3D Curve – 3D Curve, then in the automenu the following option becomes active:

SelectBody

<O>

Select Body to Deform

This option is turned on by default upon the entry into the command. The deformed body is selected with the help of Левый клик Текст in the 3D window or in the tree of the 3D model. The selected body is highlighted.

After that, the system will prompt a user to select the source curve:

3DpathCopy

<T>

Select Source Curve

The drop down list of this option contains the list of the 3D elements capable of defining a 3D curve. The selected curve is marked in the 3D scene.

Cancellation of the source curve selection can be done with the help of the option:

CancelSourceSpline

<H>

Cancel Source Curve Selection

After selecting the source curve, a user needs to specify the LCS one of the axes of which will serve as the direction vector for the source curve:

SourceLCS

<L>

Select Source LCS

In the command's parameters window, specify the axis of the LCS which will serve as the direction vector for the source curve (Source direction parameter). One or two axes of the LCS can be unavailable for the selection which means that the selection of the corresponding direction vector will not be possible for the selected source and target curves.

On the basis of the defined direction vector the system automatically computes the auxiliary surface for the source curve and the auxiliary LCS at each point of the curve. For clearness, in the 3D window the auxiliary LCS will be shown for the start point of the source curve.

The button FlipDirection allows a user to change the direction of the obtained direction vector of the source curve, and, therefore, the orientation of the auxiliary LCS.

s987

To cancel the selection of the LCS, which specifies the direction vector of the source curve, the following option is used:

LCSCancel

<C>

Cancel LCS selection

The target curve and its direction vector are defined similarly with the help of the following options:

SelectCurveTarget

<B>

Select Target Curve

CancelCurveTarget

<D>

Cancel Target Curve Selection

SelectSourceLCS

<M>

Select Target LCS

LCSCancel

<N>

Cancel LCS selection

By changing axes which specify the direction vectors for both curves as well as the directions of these axes, it is possible to find the desired choice of the transformation. For obtaining the desired result, it is also possible to use the FlipDirection Reverse Target Curve button, which allows a user to change the direction of the selected target curve.

Creating Curve – Spiral deformation

If in the Type list the user selects the Curve – Spiral value, then in the automenu the following option becomes active:

SelectBody

<O>

Select Body to Deform

The deformed body is selected with the help of Левый клик Текст in the 3D window or in the tree of the 3D model.

After that, the system will prompt the user to select the source curve:

3DpathCopy

<T>

Select Source Curve

Cancellation of the source curve selection can be done with the help of the option:

CancelSourceSpline

<H>

Cancel Source Curve Selection

After selecting the source curve, a user needs to specify the LCS the axis of which will serve as the direction vector for the source curve:

SourceLCS

<L>

Select Source LCS

In the command's parameters window, specify the axis of the selected LCS which will serve as the direction vector for the source curve (Source Direction parameter). In the 3D window the auxiliary LCS will be shown for the start point of the source curve.

The button FlipDirection allows a user to change the direction of the obtained direction vector of the source curve.

To cancel the selection of the LCS, which specifies the direction vector of the source curve, the following option is used:

s988

LCSCancel

<C>

Cancel LCS selection

The target curve and its axis are selected similarly with the help of the following options:

SelectCurveTarget

<B>

Select Target Curve

CancelCurveTarget

<D>

Cancel Target Curve Selection

SelectSourceLCS

<M>

Select Target LCS

LCSCancel

<N>

Cancel LCS selection

As in the previous case, for obtaining the desired result, it is also possible to use the FlipDirection Reverse Target Curve button, which allows a user to change the direction of the selected target curve.

Creating Pair of Curves – Pair of Curves deformation

When choosing the Pair of Curves – Pair of Curves option, the following option becomes active in the automenu:

SelectBody

<O>

Select Body to Deform

The deformed body is selected with the help of Левый клик Текст in the 3D window or in the tree of the 3D model.

After that, the system will prompt the user to select the source curve:

3DpathCopy

<T>

Select Source Curve

Cancellation of the source curve selection can be done with the help of the option:

CancelSourceSpline

<H>

Cancel Source Curve Selection

After that, it is necessary to define the twist curve for the source curve of deformation:

SelectCurveSource

<K>

Select Source Twist Curve

This curve is selected in the 3D window or in the tree of the 3D model.

To cancel selection of the source twist curve, use the option:

CancelCurveTargetSelection

<L>

Cancel Source Twist Curve Selection

The target curve and its twist curve are selected similarly with the help of the following options:

SelectCurveTarget

<B>

Select Target Curve

CancelCurveTarget

<D>

Cancel Target Curve Selection

SelectCurveSource

<M>

Select Target Twist Curve

CancelCurveSource

<N>

Cancel Target Twist Curve Selection

In addition, in the command's parameters window the FlipDirection Reverse Target Curve button is available, which allows a user to change the direction of the selected target curve.

s989