Required
mesh| Type: | UnstructuredMesh |
| Description: | The mesh to extrude. |
def extrude(
mesh: UnstructuredMesh,
offsets: npt.NDArray,
scale: npt.NDArray | None = None,
rotation: npt.NDArray | None = None,
center: npt.NDArray | None = None,
) -> UnstructuredMesh: ...| Type: | UnstructuredMesh |
| Description: | The mesh to extrude. |
| Type: | npt.NDArray |
| Description: | offsets, either in the new dimension or all 3 dimension, shape is (nextrude, ) or (nextrude, 3) |
| Type: | npt.NDArray | None |
| Default value: | None |
| Description: | scaling factor for each extruded copy, relative to the center, shape is (nextrude,) |
| Type: | npt.NDArray | None |
| Default value: | None |
| Description: | rotation of each extruded copy in terms of euler angles relative to the center, shape is (nextrude, 3) |
| Type: | npt.NDArray | None |
| Default value: | None |
| Description: | center coordinates for rotation, defaults to the center of mass of the original 2D mesh, shape is (3,) |
UnstructuredMeshdef extrude_side_set(
mesh: UnstructuredMesh,
side_set: str,
offsets: npt.NDArray,
scale: npt.NDArray | None = None,
rotation: npt.NDArray | None = None,
center: npt.NDArray | None = None,
) -> UnstructuredMesh: ...| Type: | UnstructuredMesh |
| Description: | The mesh to extrude. |
| Type: | str |
| Description: | name of the side set |
| Type: | npt.NDArray |
| Description: | offsets, either in the new dimension or all 3 dimension, shape is (nextrude, ) or (nextrude, 3) |
| Type: | npt.NDArray | None |
| Default value: | None |
| Description: | scaling factor for each extruded copy, relative to the center, shape is (nextrude,) |
| Type: | npt.NDArray | None |
| Default value: | None |
| Description: | rotation of each extruded copy in terms of euler angles relative to the center, shape is (nextrude, 3) |
| Type: | npt.NDArray | None |
| Default value: | None |
| Description: | center coordinates for rotation, defaults to the center of mass of the original 2D mesh, shape is (3,) |
UnstructuredMeshdef extrude_side_set_2D(
mesh: UnstructuredMesh,
side_set: str,
offsets: npt.NDArray,
direction: str | None = None,
) -> UnstructuredMesh: ...| Type: | UnstructuredMesh |
| Description: | The mesh to extrude. |
| Type: | str |
| Description: | name of the side set |
| Type: | npt.NDArray |
| Description: | offsets, either in the new dimension or all 3 dimension, shape is (nextrude, ) or (nextrude, 3) |
| Type: | str | None |
| Default value: | None |
| Description: | Optional axis of extrusion if offsets is a one-dimensional array. Must be x or y. |
UnstructuredMesh