Class DwgSolid


  • public class DwgSolid
    extends DwgObject
    The DwgSolid class represents a DWG Solid
    Author:
    jmorell
    • Constructor Detail

      • DwgSolid

        public DwgSolid()
    • Method Detail

      • readDwgSolidV15

        public void readDwgSolidV15​(int[] data,
                                    int offset)
                             throws Exception
        Read a Solid in the DWG format Version 15
        Parameters:
        data - Array of unsigned bytes obtained from the DWG binary file
        offset - The current bit offset where the value begins
        Throws:
        Exception - If an unexpected bit value is found in the DWG file. Occurs when we are looking for LwPolylines.
      • getCorner1

        public double[] getCorner1()
        Returns:
        Returns the corner1.
      • setCorner1

        public void setCorner1​(double[] corner1)
        Parameters:
        corner1 - The corner1 to set.
      • getCorner2

        public double[] getCorner2()
        Returns:
        Returns the corner2.
      • setCorner2

        public void setCorner2​(double[] corner2)
        Parameters:
        corner2 - The corner2 to set.
      • getCorner3

        public double[] getCorner3()
        Returns:
        Returns the corner3.
      • setCorner3

        public void setCorner3​(double[] corner3)
        Parameters:
        corner3 - The corner3 to set.
      • getCorner4

        public double[] getCorner4()
        Returns:
        Returns the corner4.
      • setCorner4

        public void setCorner4​(double[] corner4)
        Parameters:
        corner4 - The corner4 to set.
      • getElevation

        public double getElevation()
        Returns:
        Returns the elevation.
      • setElevation

        public void setElevation​(double elevation)
        Parameters:
        elevation - The elevation to set.
      • getExtrusion

        public double[] getExtrusion()
        Returns:
        Returns the extrusion.
      • getThickness

        public double getThickness()
        Returns:
        Returns the thickness.
      • setThickness

        public void setThickness​(double thickness)
        Parameters:
        thickness - The thickness to set.
      • setExtrusion

        public void setExtrusion​(double[] extrusion)
        Parameters:
        extrusion - The extrusion to set.