Function Reference: longbone_maxDistance

csg-toolkit: maxDistance = longbone_maxDistance (v)
csg-toolkit: [maxD_v1, maxD_v1] = longbone_maxDistance (v)
csg-toolkit: [maxDistance, maxD_v1, maxD_v1] = longbone_maxDistance (v)

Calculate the maximum distance of a long bone 3D model.

This function calculates the maximum distance of a long bone as represented by its mesh vertices. It requires an N×3 matrix as input argument, which contains the x,y,z coordinates in R3. The function also returns the point coordinates that correspond to the maximum distance.

longbone_maxDistance may be called with varying number of output arguments.

  • If one output argument is defined, then maximum distance is returned.
  • If two output arguments are defined, then the corresponding points of maximum distance are returned.
  • If 3 output arguments are defined, then the maximum distance along with its corresponding points are returned.

See also: longbone_Registration, longbone_Geometry

Source Code: longbone_maxDistance