Class Entity144_TrimmedSurface


  • public class Entity144_TrimmedSurface
    extends GeomSSEntity
    TRIMMED PARAMETRIC SURFACE ENTITY - This entity represents a surface that is a subset of another surface bounded on the outside by a boundary curve and on the inside (holes) with a series of boundary curves.

    This entity, when read from an IGES file, is converted to a SubrangeSurface surface if possible (if the number of boundary curve segments is exactly 4 or can be automatically converted into 4). This entity type can be written out to an IGES file. When reading in this entity, the IGES parameters are stored in the user data with the prefix "IGES_144_" followed by the parameter name.

    Modified by: Joseph A. Huwaldt

    Version:
    April 12, 2016
    Author:
    Joseph A. Huwaldt, Date: April 10, 2013
    • Constructor Detail

      • Entity144_TrimmedSurface

        public Entity144_TrimmedSurface​(Part p,
                                        DirEntry de)
        Default constructor.
        Parameters:
        p - part to which this entity is contained
        de - Directory Entry for this entity
      • Entity144_TrimmedSurface

        public Entity144_TrimmedSurface​(Part part,
                                        int DEnum,
                                        SubrangeSurface geom,
                                        int PTS,
                                        int PTO)
        Create this entity from the specified GeomSS geometry element.
        Parameters:
        part - The Part to which this entity is contained.
        DEnum - The line count from the start of the Directory Entry Section for this entry (odd number).
        geom - The GeomSS GeomPoint geometry to return an Entity for.
        PTS - Pointer to the DE of the surface entity that is to be trimmed.
        PTO - Pointer to the DE of the Curve on a Parametric Surface Entity that constitutes the outer boundary of the trimmed surface or zero.
    • Method Detail

      • check

        public void check()
        Checks to see if the entity is correct.
        Specified by:
        check in class Entity
      • read

        public void read​(java.io.RandomAccessFile in)
                  throws java.io.IOException
        Read the Parameter Data from the String read in by the superclass.
        Overrides:
        read in class Entity
        Parameters:
        in - input file
        Throws:
        java.io.IOException
      • canWrite

        public boolean canWrite()
        Returns true if the Entity can be written to an exchange file.
        Overrides:
        canWrite in class Entity
        Returns:
        true
      • write

        public int write​(java.io.PrintWriter writer,
                         int PDnum)
                  throws java.io.IOException
        Write this entity object's parameter data to the specified PrintWriter.
        Overrides:
        write in class Entity
        Parameters:
        writer - The PrintWriter to write the parameter data for this entity to.
        PDnum - The starting Parameter Data row index number.
        Returns:
        The Parameter Data row index number for the next row.
        Throws:
        java.io.IOException
      • getTypeString

        public java.lang.String getTypeString()
        Returns a short String describing this Entity object's type.
        Specified by:
        getTypeString in class Entity
        Returns:
        A short String describing this Entity object's type.
      • toString

        public java.lang.String toString()
        Dump to String.
        Overrides:
        toString in class Entity
        Returns:
        String containing the resulting text.