Join two object meshes
joinedMesh = join(mesh1,mesh2)
example
joinedMesh = join(mesh1,mesh2) joins the object meshes mesh1 and mesh2 and returns joinedMesh with the combined objects.
joinedMesh
mesh1
mesh2
collapse all
This example shows how to create extendedObjectMesh objects and join them together.
extendedObjectMesh
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);
Extended object mesh, specified as an extendedObjectMesh object.
Joined object mesh, specified as an extendedObjectMesh object.
applyTransform
rotate
scale
scaleToFit
show
translate
You have a modified version of this example. Do you want to open this example with your edits?