join

Join two object meshes

Description

example

joinedMesh = join(mesh1,mesh2) joins the object meshes mesh1 and mesh2 and returns joinedMesh with the combined objects.

Examples

collapse all

This example shows how to create extendedObjectMesh objects and join them together.

Construct two meshes of unit dimensions.

sph = extendedObjectMesh('sphere');
cub = extendedObjectMesh('cuboid');

Join the two meshes.

cub = translate(cub,[0 0 1]);
sphCub = join(sph,cub);

Visualize the final mesh.

show(sphCub);

Input Arguments

collapse all

Extended object mesh, specified as an extendedObjectMesh object.

Extended object mesh, specified as an extendedObjectMesh object.

Output Arguments

collapse all

Joined object mesh, specified as an extendedObjectMesh object.

Introduced in R2020a