Transform
Use a Transform node () to position, rotate, or scale an imported mesh. With the default settings, the imported mesh is not transformed.
Transform is an attribute that acts on the Import node only.
No associativity update is done for geometric entity numbers. It is recommended to add Transform attributes directly, before adding more operations to the meshing sequence.
To add a Transform attribute, right-click the Import node and select Transform (). Then use the sections below to specify the displacement, rotation angle, and scale factor for the transformation.
Position in Source
Control how the object is positioned relative to the coordinates in the file by matching a predefined point in the file with the origin or the specified Anchor position. The displacement offset is applied after the positions have been matched. From the Base list choose:
Origin (default) to position the origin in the file.
Corner to position the minimum coordinate of the imported mesh’s bounding box.
Center to position the center of the imported mesh’s bounding box.
Bottom to position the center in x and y, but minimum z-coordinate of the imported mesh’s bounding box. For 2D: position the center in the x-coordinate and minimum in the y-coordinate of the imported mesh’s bounding box.
Top to position the center in x and y, maximum in z-coordinate of the imported mesh’s bounding box. For 2D: position the center in the x-coordinate and maximum in the y-coordinate of the imported mesh’s bounding box.
Position to Match
Control where an additionally imported mesh object is positioned in relation to the model’s origin or existing mesh objects. Specify the Anchor point as Origin (default) or Vertex. For the option Vertex, specify a mesh vertex in the associated Anchor Vertex section. The mesh is translated so that the specified position in source is moved to the position to match. After that, any specified rotation or scaling is applied, and, lastly, if an offset is specified, it is added to the translation.
This section appears for all Import nodes succeeding the first Import node in a meshing sequence.
Displacement
Offset modifying the specified Base and Anchor points. Enter x, y, and The displacement is applied after the Base and Anchor points have been matched to the origin.
Axis (3D only)
The mesh is rotated so that the z-axis in the source mesh is rotated to the specified axis. Any specified rotation is performed around this axis (after the z-axis has been rotated to match this axis). Select Axis type as z-axis (default), x-axis, y-axis, Cartesian, or Spherical.
Rotation Angle
Specify a rotation of the mesh around the origin (as specified by the base point, but before the offset or translation to the anchor vertex is applied). If you want another center of rotation, you can use several Transform attributes in a sequence to first move the rotation center to the origin and then move it back.
Scale
Scale the mesh with an isotropic or anisotropic scale. Select Isotropic (default) or Anisotropic from the Scaling list and enter values for the scaling. Enter a negative scale to mirror the mesh. The scale is applied prior to any translation or rotation; the center used is the point specified in Position in Source.
See STL Import 2 — Remeshing an Imported Mesh:
Application Library path COMSOL_Multiphysics/Meshing_Tutorials/stl_vertebra_mesh_import.