meshOffset: inflate a mesh along its normals

View source: R/meshOffset.r

meshOffsetR Documentation

inflate a mesh along its normals

Description

translate vertices of a triangular mesh along its normals

Usage

meshOffset(mesh, offset)

Arguments

mesh

triangular mesh of class "mesh3d"

offset

distance to translate the vertices

Value

returns modified mesh.

Author(s)

Stefan Schlager

Examples


require(Morpho)
data(nose)
offset <- meshOffset(shortnose.mesh,3)
## Not run: 
require(rgl)
shade3d(shortnose.mesh,col=3)
wire3d(offset)

## End(Not run)

zarquon42b/mesheR documentation built on Nov. 14, 2024, 3:30 p.m.