public class GRSModel extends Model
GRS files are a simple file format for describing two-dimensional drawings made up of "polylines". The format was created for the textbook "Computer Graphics Using OpenGL", 3rd Ed, by Francis S Hill and Stephen M Kelley (see pages 61-63).
See https://en.wikipedia.org/wiki/Polyline
The structure of a GRS file is:
'*'
.
Modifier and Type | Field and Description |
---|---|
double |
bottom |
double |
left |
int |
numLineStrips |
double |
right |
double |
top |
lineSegmentList, vertexList, visible
Constructor and Description |
---|
GRSModel(java.io.File grsFile)
Create a wireframe model from the contents of an GRS file.
|
addLineSegment, addLineSegment, addVertex, setColor, setColorRandom, setRandomColors, setRandomLineSegmentColors, toString
public double bottom
public double left
public int numLineStrips
public double right
public double top
public GRSModel(java.io.File grsFile)
grsFile
- File
object for the GRS data file