public class Mesh
extends java.lang.Object
| Constructor and Description |
|---|
Mesh(int slice,
int cell,
double area,
double volume)
Instantiates a new mesh.
|
Mesh(int slice,
int cell,
double area,
double volume,
java.util.ArrayList<Point> outline)
Instantiates a new mesh.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSegment(Segment s)
Adds the segment.
|
Segment |
closestSegmentTo(Point p)
Closest segment to.
|
double |
distanceTo(Point p)
Distance to.
|
double |
getArea()
Gets the area.
|
int |
getCell()
Gets the cell.
|
java.util.ArrayList<Point> |
getOutline()
Gets the outline.
|
java.util.ArrayList<Segment> |
getSegments()
Gets the segments.
|
int |
getSlice()
Gets the slice.
|
double |
getTotalLength()
Gets the total length.
|
double |
getVolume()
Gets the volume.
|
Point |
projectionOf(Point p)
Projection of.
|
public Mesh(int slice,
int cell,
double area,
double volume)
slice - the slicecell - the cellarea - the areavolume - the volumepublic Mesh(int slice,
int cell,
double area,
double volume,
java.util.ArrayList<Point> outline)
slice - the slicecell - the cellarea - the areavolume - the volumeoutline - the outlinepublic java.util.ArrayList<Point> getOutline()
public void addSegment(Segment s)
s - the spublic double distanceTo(Point p)
p - the ppublic Point projectionOf(Point p)
p - the ppublic Segment closestSegmentTo(Point p)
p - the ppublic java.util.ArrayList<Segment> getSegments()
public double getTotalLength()
public int getSlice()
public int getCell()
public double getArea()
public double getVolume()