getFlame: Get the shape of a single flame

Description Usage Arguments Value Examples

Description

Get the shape of a single flame

Usage

1
2
getFlame(faces = 10, radius = 0.3, dz = 1, z.exp = 1.1, expand = 1,
  turn = 0)

Arguments

faces

number of side and height

radius

maximum width

dz

increase in height per z-side

z.exp

exponetial z factor

expand

linear width (x/y) expend factor with height

turn

twist the flame a bit

Value

list of vertices and ids to be used with rgl::triangles3d

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
center = getFlame(dz=0.8)
triangles3d(center$vertices[center$id[, (2 * 20 + 1):150], ],
            col="#e6ffff", alpha=1, shininess=1,lit=FALSE)
inner = getFlame(dz=0.97, expand=2)
triangles3d(inner$vertices[inner$id[, (2 * 20 + 1):175], ],
            col="#f0ff00", alpha=0.6, shininess=1,lit=FALSE)
outer = getFlame(dz=1, expand=3)
triangles3d(outer$vertices[outer$id[, (2*20+1):200], ],
            col="#ce1301", alpha=0.3,shininess=10,lit=FALSE)

## End(Not run)

DGVM3D documentation built on May 2, 2019, 3:47 p.m.