Learn R Programming

geomorph (version 1.1-6)

editTemplate: Edit 3D template

Description

An interactive function to remove landmarks from a 3D template file.

Usage

editTemplate(template, fixed, n)

Arguments

template
Matrix of template 3D coordinates.
fixed
Number of "fixed" landmark points (non surface sliding points)
n
Number of points to be removed

Value

  • Function returns a matrix containing the x,y,z coordinates of the new template landmarks. Function also writes to working directory 'template.txt' containing the x,y,z coordinates of the template

Details

Function edits a 'template.txt' file made by buildtemplate, which must be in current working directory. Function overwrites 'template.txt' in working directory with edited version. Use read.table("template.txt", header = T). Selection{ Choosing which landmarks will be deleted involves landmark selection using a mouse in the rgl plot window. With a standard 3-button (PC) buildtemplate uses:
  1. the RIGHT mouse button (primary) to choose points to be deleted (click-drag a box around landmark),
  2. the LEFT mouse button (secondary) is used to rotate mesh,
  3. the mouse SCROLLER (third/middle) is used to zoom in and out.
NOTE: Digitizing functions on MACINTOSH computers using a standard 3-button mice works as specified. Macs using platform specific single button mice:
  1. press button to rotate 3D mesh,
  2. press button while pressing CONTROL key to choose points to be deleted (click-drag a box around landmark),
  3. press button while pressing OPTION key to zoom in and out.
Mac mouse settings need adjustment to acquire zooming functions of the "middle/third" mouse button/scroller. Some instructions can be found at http://blog.boastr.net/. In addition, freeware providing "Middle Click" functionality is available at http://magicprefs.com/ for "magicmice" now standard on many Macintosh machines. }