org.opensourcephysics.display3d.core
Interface ElementTessellation

All Superinterfaces:
Element, InteractionSource
All Known Implementing Classes:
ElementTessellation

public interface ElementTessellation
extends Element

Title: ElementSurface

Description: A 3D Surface made of tiles

Version:
December 2007
Author:
Francisco Esquembre

Nested Class Summary
static class ElementTessellation.Loader
           
 
Field Summary
 
Fields inherited from interface org.opensourcephysics.display3d.core.Element
TARGET_POSITION, TARGET_SIZE
 
Method Summary
 double[][][] getTiles()
          Gets the data of the surface.
 void setTiles(double[][][] data)
          Sets the data of the tiles.
 
Methods inherited from interface org.opensourcephysics.display3d.core.Element
getDrawingPanel3D, getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isVisible, loadUnmutableObjects, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrame
 
Methods inherited from interface org.opensourcephysics.display3d.core.interaction.InteractionSource
addInteractionListener, getInteractionTarget, removeInteractionListener
 

Method Detail

setTiles

void setTiles(double[][][] data)
Sets the data of the tiles.

Parameters:
data - the double[nTiles][nVertex][3] array of coordinates for the tiles. The number of vertex of the tiles may vary.

getTiles

double[][][] getTiles()
Gets the data of the surface.

Returns:
the double[nTiles][nVertex][3] array of coordinates for the tiles.