Learn R Programming

rgl (version 1.2.8)

all.equal.mesh3d: Compare mesh3d objects in a meaningful way.

Description

These functions allow comparison of mesh3d objects, ignoring irrelevant differences.

compare_proxy.mesh3d can function as a compare_proxy method for the waldo package, by stripping out NULL components and ordering other components alphabetically by name.

all.equal.mesh3d compares mesh3d objects by using compare_proxy.mesh3d to standardize them, then using the regular all.equal function to compare them.

Usage

# S3 method for mesh3d
all.equal(target, current, ...)
compare_proxy.mesh3d(x, path = "x")

Value

all.equal.mesh3d returns TRUE, or a character vector describing (some of) the differences.

compare_proxy.mesh3d returns a list containing two components:

object

a copy of x with relevant components in alphabetical order.

path

a modification of the path label for x

Arguments

target, current

Two mesh3d objects to compare.

x

A single mesh3d object to standardize.

path

The string to use in a waldo display of this object.

...

Additional parameters to pass to all.equal.