Package mil.nga.sf
Class PolyhedralSurface
- java.lang.Object
-
- mil.nga.sf.Geometry
-
- mil.nga.sf.Surface
-
- mil.nga.sf.PolyhedralSurface
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TIN
public class PolyhedralSurface extends Surface
Contiguous collection of polygons which share common boundary segments.- Author:
- osbornb
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description PolyhedralSurface()
ConstructorPolyhedralSurface(boolean hasZ, boolean hasM)
ConstructorPolyhedralSurface(List<Polygon> polygons)
Constructorprotected
PolyhedralSurface(GeometryType type, boolean hasZ, boolean hasM)
ConstructorPolyhedralSurface(Polygon polygon)
ConstructorPolyhedralSurface(PolyhedralSurface polyhedralSurface)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPatch(Polygon patch)
Add patchvoid
addPatches(List<Polygon> patches)
Add patchesvoid
addPolygon(Polygon polygon)
Add polygonvoid
addPolygons(List<Polygon> polygons)
Add polygonsGeometry
copy()
Copy the geometryboolean
equals(Object obj)
Polygon
getPatch(int n)
Get the Nth polygon patchList<Polygon>
getPatches()
Get patchesPolygon
getPolygon(int n)
Get the Nth polygonList<Polygon>
getPolygons()
Get polygonsint
hashCode()
boolean
isEmpty()
Is the Geometry emptyboolean
isSimple()
Determine if this Geometry has no anomalous geometric points, such as self intersection or self tangencyint
numPatches()
Get the number of polygonsint
numPolygons()
Get the number of polygonsvoid
setPatches(List<Polygon> patches)
Set patchesvoid
setPolygons(List<Polygon> polygons)
Set polygons-
Methods inherited from class mil.nga.sf.Geometry
expandEnvelope, getCentroid, getDegreesCentroid, getDimension, getEnvelope, getGeometryType, hasM, hasZ, is3D, isMeasured, setHasM, setHasZ, updateZM
-
-
-
-
Constructor Detail
-
PolyhedralSurface
public PolyhedralSurface()
Constructor
-
PolyhedralSurface
public PolyhedralSurface(boolean hasZ, boolean hasM)
Constructor- Parameters:
hasZ
- has zhasM
- has m
-
PolyhedralSurface
public PolyhedralSurface(List<Polygon> polygons)
Constructor- Parameters:
polygons
- list of polygons
-
PolyhedralSurface
public PolyhedralSurface(Polygon polygon)
Constructor- Parameters:
polygon
- polygon
-
PolyhedralSurface
public PolyhedralSurface(PolyhedralSurface polyhedralSurface)
Copy Constructor- Parameters:
polyhedralSurface
- polyhedral surface to copy
-
PolyhedralSurface
protected PolyhedralSurface(GeometryType type, boolean hasZ, boolean hasM)
Constructor- Parameters:
type
- geometry typehasZ
- has zhasM
- has m
-
-
Method Detail
-
getPatches
public List<Polygon> getPatches()
Get patches- Returns:
- patches
- See Also:
getPolygons()
-
setPolygons
public void setPolygons(List<Polygon> polygons)
Set polygons- Parameters:
polygons
- polygons
-
setPatches
public void setPatches(List<Polygon> patches)
Set patches- Parameters:
patches
- patches- See Also:
setPolygons(List)
-
addPolygon
public void addPolygon(Polygon polygon)
Add polygon- Parameters:
polygon
- polygon
-
addPatch
public void addPatch(Polygon patch)
Add patch- Parameters:
patch
- patch- See Also:
addPolygon(Polygon)
-
addPolygons
public void addPolygons(List<Polygon> polygons)
Add polygons- Parameters:
polygons
- polygons
-
addPatches
public void addPatches(List<Polygon> patches)
Add patches- Parameters:
patches
- patches- See Also:
addPolygons(List)
-
numPolygons
public int numPolygons()
Get the number of polygons- Returns:
- number of polygons
-
numPatches
public int numPatches()
Get the number of polygons- Returns:
- number of polygons
- See Also:
numPolygons()
-
getPolygon
public Polygon getPolygon(int n)
Get the Nth polygon- Parameters:
n
- nth polygon to return- Returns:
- polygon
-
getPatch
public Polygon getPatch(int n)
Get the Nth polygon patch- Parameters:
n
- nth polygon patch to return- Returns:
- polygon patch
- See Also:
getPolygon(int)
-
copy
public Geometry copy()
Copy the geometry
-
isEmpty
public boolean isEmpty()
Is the Geometry empty
-
isSimple
public boolean isSimple()
Determine if this Geometry has no anomalous geometric points, such as self intersection or self tangency
-
-