Interface Solid

All Superinterfaces:
Cloneable, Comparable, Geometry, Primitive, Serializable, Shape

public interface Solid extends Primitive

This interface is equivalent to the GM_Solid specified in ISO 19107. Solid is a subclass of Primitive, and is the basis for 3-dimensional geometry. The extent of a solid is defined by the boundary surfaces.

Author:
Jorge Piera, Jordi Torres Fabra, Rafa Gaitán Linares
See Also:
  • Method Details

    • addSurface

      void addSurface(Surface surface)
      Add a surface to the Solid
      Parameters:
      surface - the surface to add
    • removeSurface

      void removeSurface(int position)
      Remove surface from solid at concrete position
      Parameters:
      position - the concrete position
    • getNumSurfaces

      int getNumSurfaces()
      Get the number of surfaces in a solid
      Returns:
      the number of surfaces
    • getSurfaceAt

      Surface getSurfaceAt(int position)
      Gets a surface in a concrete position
      Parameters:
      position - the concrete position
      Returns:
      the surface
    • setAppearance

      void setAppearance(Appearance app)
      Sets the appearance of a Solid
      Parameters:
      app - the appearance
    • getAppearance

      Appearance getAppearance()
      Gets the appearance of a solid
      Returns: