Package de.javagl.ply

Interface MutablePlySource

    • Method Detail

      • addElement

        void addElement​(String elementName,
                        Element element)
        Add the given Element to the PLY data
        Parameters:
        elementName - The element name
        element - The Element
      • addElement

        void addElement​(int elementTypeIndex,
                        Element element)
        Add the given Element to the PLY data
        Parameters:
        elementTypeIndex - The element type index
        element - The Element
        Throws:
        IndexOutOfBoundsException - If the given index is negative or not smaller than the number of element types
      • addElements

        void addElements​(String elementName,
                         Collection<? extends Element> elements)
        Add the given Element objects to the PLY data
        Parameters:
        elementName - The element name
        elements - The Element objects
      • addElements

        void addElements​(int elementTypeIndex,
                         Collection<? extends Element> elements)
        Add the given Element objects to the PLY data
        Parameters:
        elementTypeIndex - The element type index
        elements - The Element objects
        Throws:
        IndexOutOfBoundsException - If the given index is negative or not smaller than the number of element types