wire3d: Draw a mesh as line segments in 3D

Description Usage Arguments Details See Also

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## 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


anglr documentation built on July 29, 2020, 9:06 a.m.