cylinder3d: Visualise a 3D cylinder

Description Usage Arguments Value Author(s) Examples

View source: R/cylinder3d.R

Description

Visualise a 3D cylinder

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
cylinder3d(
  p_start = c(0, 0, 0),
  orient = c(1, 1, 1),
  radius = 0.25,
  length = 1,
  order = 0,
  n_seg = 12,
  axis = F,
  cylinders = T,
  circles = F,
  transparent = T
)

Arguments

p_start

A vector with the start point of the cylinder in 3D (x,y,z)

orient

Directional vector of the cylinder axis (x1,y1,z1)

radius

Radius of the cylinder (in meter)

length

Length of the cylinder (in meter)

order

Branch order level of the cylinder. This is optional for coloring. Default 0

n_seg

Number of segments that draw the cylinder. Default 12

axis

Display the cylinder axis. Default to FALSE.

cylinders

Display the cylinder. Defaut to TRUE.

circles

Display circles at the end of the cylinder. Default to FALSE.

transparent

Makes the cylinder transparent. Default to TRUE with transparency of 0.3

Value

Does not return anything at the moment.

Author(s)

Matthias Kunz, last updated: 29.04.2019

Examples

1
cylinder3d(p_start = c(0,0,0), orient = c(1,1,1), radius = 0.25, length = 1)

spatial-mk/tre3d documentation built on April 1, 2020, 5:26 p.m.