Learn R Programming

retistruct (version 0.5.9)

ReconstructedOutline: Reconstruct outline into spherical surface

Description

Reconstruct outline into spherical surface. Reconstruction proceeds in a number of stages:

Usage

ReconstructedOutline(o, n = 500, alpha = 8, x0 = 0.5, report = print,
  plot.3d = FALSE, dev.flat = NA, dev.polar = NA)

Arguments

o
AnnotatedOutline object, containing the following information:[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
n
Number of points in triangulation.
alpha
Area scaling coefficient
x0
Area cutoff coefficient
report
Function used to report progress.
plot.3d
Whether to show 3D picture during optimisation.
dev.flat
Device to plot grid onto. Value of NA (default) means no plotting.
dev.polar
Device display projection. Value of NA (default) means no plotting.

Value

  • reconstructedOutline object containing the input information and the following modified and extra information:
  • PNew set of points in flattened object
  • gfNew set of forward pointers in flattened object
  • gbNew set of backward pointers in flattened object
  • philattitude of new points on sphere
  • lambdalongitude of new points on sphere
  • TtNew triangulation

Details

  1. The flat object is triangulated with at leastntriangles. This can introduce new vertices in the rim.
  2. The triangulated object is stitched.
  3. The stitched object is triangulated again, but this time it is not permitted to add extra vertices to the rim.
  4. The corresponding points determined by the stitching process are merged to form a new set of merged points and a new triangulation.
  5. The merged points are projected roughly to a sphere.
  6. The locations of the points on the sphere are moved so as to minimise the energy function.