The rgl Package - NexTag Supports Open Source Initiatives
The rgl Package - NexTag Supports Open Source Initiatives
The rgl Package - NexTag Supports Open Source Initiatives
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
32 qmesh3d<br />
Value<br />
Each primitive function returns the integer object ID of the shape that was added to the scene. <strong>The</strong>se<br />
can be passed to <strong>rgl</strong>.pop to remove the object from the scene.<br />
See Also<br />
<strong>rgl</strong>.material, <strong>rgl</strong>.spheres, <strong>rgl</strong>.texts, <strong>rgl</strong>.surface, <strong>rgl</strong>.sprites<br />
Examples<br />
<strong>rgl</strong>.open()<br />
<strong>rgl</strong>.points(rnorm(1000), rnorm(1000), rnorm(1000), color=heat.colors(1000), size=2)<br />
qmesh3d<br />
3D Quadrangle Mesh objects<br />
Description<br />
Usage<br />
3D Quadrangle Mesh object creation and a collection of sample objects.<br />
Arguments<br />
qmesh3d(vertices, indices, homogeneous = TRUE, material = NULL, normals = NULL)<br />
cube3d(trans = identityMatrix(), ...) # cube object<br />
oh3d(trans = identityMatrix(), ...) # an 'o' object<br />
dot3d(x, ...) # draw dots at the vertices of an object<br />
## S3 method for class 'qmesh3d':<br />
dot3d(x, override = TRUE, ...)<br />
wire3d(x, ...) # draw a wireframe object<br />
## S3 method for class 'qmesh3d':<br />
wire3d(x, override = TRUE, ...)<br />
shade3d(x, ...) # draw a shaded object<br />
## S3 method for class 'qmesh3d':<br />
shade3d(x, override = TRUE, ...)<br />
x<br />
a qmesh3d object (class qmesh3d)<br />
vertices 3- or 4-component vector of coordinates<br />
indices 4-component vector of quad indices<br />
homogeneous logical indicating if homogeneous (four component) coordinates are used.<br />
material material properties for later rendering<br />
normals normals at each vertex<br />
trans transformation to apply to objects; see below for defaults<br />
... additional rendering parameters<br />
override should the parameters specified here override those stored in the object?