Description Usage Arguments Value Examples
After using adjust_xy()
to center the mesh, it must be moved up or down so
its origin lies in the x-y plane. adjust_z()
computes the 10 most frequent
values in the mesh's z-coordinates and translates the mesh by this amount,
accounting for the direction of the "offset."
1 | adjust_z(mesh, n_bins = 10000)
|
mesh |
a "mesh3d" object |
n_bins |
number of bins among which the coordinates should be split |
a "mesh3d" object with adjusted vertex coordinates
1 2 3 4 5 | xy_fixed <- remove_cyl(adjust_xy(untrimmed_mesh1))
z_fixed <- remove_cyl(adjust_z(xy_fixed))
rgl::shade3d(xy_fixed, alpha=1/2)
rgl::shade3d(z_fixed)
add_origin_axes()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.