|
This task shows you how to deform an original shape, e.g.
to take a spring back effect into account.
You will:
- select the original shape,
- apply a displacement defined by a cluster of vectors
(these vectors have been computed by a dedicated action).
The original shape is thus transformed into a new one, by a digitized
morphing.
The original shape i.e. the Element to deform
can be a solid or an open shape and
you can select one or several elements
(if you select several elements, Digitized Morphing will create one feature
for each input element).
The displacement is defined by a vector file. It is a text
file that:
-
contains one point and one vector per line (X, Y, Z, DX,
DY, DZ).
-
contains only coordinates, no comment line, no title.
-
the decimal separator used in this text file must be that defined in your
OS regional settings.
-
Extract of a text file:
You can also define the displacement by selecting a
CATAnalysis or a Deviation Analysis feature.
|
|
- The resulting surface is strongly dependent on the deformation field
...
Be careful to use a consistent field of vectors (with the right format
such as X Y Z without separator).
- To ensure a high accuracy of the output, the source points must be
close to the surface to deform.
- Depending on the number of faces of the element to deform,
of the number of vectors and of the complexity of the morphing, the
computation may be time consuming.
|
|
The morphing is computed at each point found in the text
file, with the corresponding vector,
resulting in a new, deformed shape.
The information contained in the text file is stored as a
link to the feature that will be created.
This link can be checked and updated with the Update Digitized Morphing
action.
|
|
Using a Deviation Analysis Feature -
Limitations
A Deviation Analysis feature is not a representation of a deformation of
a shape. It is only a set of vectors resulting of a deviation analysis
computation between a cloud of points and a surface: the displacements
created by a Deviation Analysis between two shapes are different from the
displacements to apply to transform a shape into the other one, especially
in the case where the initial shape presents sharp edges or curvature
variations or when the deformation includes a "stretching" of the initial
shape.
Examples:
Deviation Analysis vectors between Shape 1 and Shape 2:
Displacements required to transform Shape 1 into Shape 2:
Deviation Analysis vectors between Shape 1 and Shape 2
Displacements required to transform Shape 1 into Shape 2
Deviation Analysis vectors between Shape 1 and Shape 2
Displacements required to transform Shape 1 into Shape 2
|
|
The shape to deform is
DeformationInput01.CATPart
in the samples directory.
The file of vectors used to compute the
deformation is
DeformationVectors01.txt in the samples directory.The sample is a simple example.
The next task explains how to use a limiting contour.
Additional information on the parameters that
apply to more complex models can be found in the
Digitized Morphing Parameters chapter.
|
|
-
Click the Digitized Morphing icon
.
The Digitized Morphing dialog box is displayed:
|
|
Digitized Morphing is available on a part level only. If you are working in a product structure, double-click a part to
activate it
before clicking the Digitized Morphing icon
.
The dialog box looks like this:
You can create the result in a new CATPart that will be inserted under
the Product you are working in,
or in the current CATPart, that is the one you have activated.
Select the requested option.
The names of the CATPart or of the product are given for information only
and cannot be edited.
|
|
-
Select Surface.1 as the
Element to deform.
If you select one element, its name is displayed in the text field.
If you select several elements, the information given is the number of
elements selected.
Click
to:
- display the list of elements selected,
- reset your selection,
- remove elements from the selection.
|
-
In the Deformation Element tab, click
and select DeformationVectors01.txt from the samples directory.
You can select one or several vector files. Click
to:
-
display the list of files selected,
-
reset your selection,
-
remove files from the selection.
|
|
|
You can select:
|
|
-
Statistics on the computation are displayed. They pile up
as you modify the parameters.
-
Tune up the other parameters
and click Preview.
A deformed shape is displayed in blue.
-
Click OK. A deformed shape is created and a
DigitizedMorphing.1 feature is created in the specification tree.
The input is sent to the NoShow.
|
|
- If you have selected several elements to deform, one
feature is created for each element to deform.
- Result is a set of features
or datum entities.
|
|