Interface Drawable3d

    • Method Detail

      • getBounds

        Bounds3d getBounds()
        Retrieve the bounding box of the object.
        Returns:
        Bounds3d; the bounding box of the object
      • getDimensions

        default int getDimensions()
        Return the number of dimensions.
        Specified by:
        getDimensions in interface Drawable<Point3d>
        Returns:
        int; the number of dimensions
      • project

        Drawable2d project()
                    throws DrawRuntimeException
        Project the object onto the z=0 plane.
        Returns:
        Drawable2d; the projected object
        Throws:
        DrawRuntimeException - when projecting onto the z=0 plane results in an invalid object. E.g. a Line3d that consists of points that all have the exact same x and y coordinates cannot be a line after projecting on the z=0 plane.