src/STL.php
public function toArray() : array
    {
        $facets = array();
        $count = $this->getFacetNormalCount();

        for ($i = 0; $i < $count; $i++) {
            $facets[] = $this->getFacetNormal($i)->toArray();
        }

        return array(
            "name" => $this->getSolidName(),
            "facets" => $facets
        );
    }
public function toArray() : array
    {
        $facets = array();
        $count = $this->getFacetNormalCount();

        for ($i = 0; $i < $count; $i++) {
            $facets[] = $this->getFacetNormal($i)->toArray();
        }

        return array(
            "name" => $this->getSolidName(),
            "facets" => $facets
        );
    }
public function toArray ( ) : array { $ facets = array ( ) ; $ count = $ this -> getFacetNormalCount ( ) ; for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ facets [ ] = $ this -> getFacetNormal ( $ i ) -> toArray ( ) ; } return array ( "name" => $ this -> getSolidName ( ) , "facets" => $ facets ) ; }
Converts STL back to array.

@return array
Converts STL back to array .