Package mil.nga.sf

Class 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 Detail

      • PolyhedralSurface

        public PolyhedralSurface()
        Constructor
      • PolyhedralSurface

        public PolyhedralSurface​(boolean hasZ,
                                 boolean hasM)
        Constructor
        Parameters:
        hasZ - has z
        hasM - 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 type
        hasZ - has z
        hasM - has m
    • Method Detail

      • getPolygons

        public List<Polygon> getPolygons()
        Get polygons
        Returns:
        polygons
      • setPolygons

        public void setPolygons​(List<Polygon> polygons)
        Set polygons
        Parameters:
        polygons - polygons
      • addPolygon

        public void addPolygon​(Polygon polygon)
        Add polygon
        Parameters:
        polygon - polygon
      • addPolygons

        public void addPolygons​(List<Polygon> polygons)
        Add polygons
        Parameters:
        polygons - polygons
      • 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
        Specified by:
        copy in class Geometry
        Returns:
        geometry copy
      • isEmpty

        public boolean isEmpty()
        Is the Geometry empty
        Specified by:
        isEmpty in class Geometry
        Returns:
        true if empty
      • isSimple

        public boolean isSimple()
        Determine if this Geometry has no anomalous geometric points, such as self intersection or self tangency
        Specified by:
        isSimple in class Geometry
        Returns:
        true if simple