Learn R Programming

doolkit (version 1.42.2)

opc: orientation patch count

Description

Count the number of orientation patches using poly.network.

Usage

opc(mesh, bins = 8, min.size = 3, rotation = 0)

Value

A data.frame displaying the number of patches and their size (number of triangles) for each orientation bin. Note: if you want the surface area of each patch, seepoly.network

Arguments

mesh

object of class mesh3d

bins

the number of orientation bins to be defined (default set to 8)

min.size

the minimal amount of polygons defining a "patch" (default set to 3)

rotation

if applicable, the number of degrees to which bins are to be rotated. By default the bins start from an angle of pi/2 and rotates clockwise.

References

tools:::Rd_expr_doi("10.1038/nature05433")Evans et al. (2007)

See Also

orient

opcr

Examples

Run this code
#8 bins (default):
opc <- opc(dkmodel$complex)
#8 bins starting from mesial, as in Evans et al. 2007:
opc <- opc(dkmodel$complex, rotation = -(360/16))
#4 bins (mesial, buccal, distal and lingual):
opc <- opc(dkmodel$complex, bins = 4, rotation = -(360/8))

Run the code above in your browser using DataLab