wire3d: Draw a mesh as line segments in 3D

wire3dR Documentation

Draw a mesh as line segments in 3D

Description

Draw line segments with rgl from any shape3d classed object. Produces a 3D scatterplot like that produced by rgl::plot3d(), but from a mesh-alike object.

Usage

## S3 method for class 'sc'
wire3d(x, ...)

## S3 method for class 'TRI'
wire3d(x, ...)

## S3 method for class 'TRI0'
wire3d(x, ...)

## S3 method for class 'DEL'
wire3d(x, ...)

## S3 method for class 'DEL0'
wire3d(x, ...)

## S3 method for class 'QUAD'
wire3d(x, ...)

## S3 method for class 'matrix'
wire3d(x, ...)

## S3 method for class 'sf'
wire3d(x, ...)

## S3 method for class 'Spatial'
wire3d(x, ...)

## S3 method for class 'triangulation'
wire3d(x, ...)

## S3 method for class 'trip'
wire3d(x, ...)

## S3 method for class 'BasicRaster'
wire3d(x, ...)

Arguments

x

sp, sf, raster, trip, or any other model understood by anglr/silicate

...

pass material3d properties to rgl

Details

Objects that are not explicitly surfaces will be triangulated in order to produce the mesh. Whether this is a good idea or not is an open question.

It is not currently technically defined or clear how colour properties are mapped to line segments by default ... there is a problem of what property to use from features that share the same vertex or edge, and we have put that aside and erred on the side of inaccuracy in favour of getting a pretty plot (hopefully). (Properties that come later - lower rows - win, I think.

See Also

plot3d as.mesh3d persp3d dot3d shade3d


hypertidy/rangl documentation built on Nov. 24, 2022, 10:29 p.m.