src/STLFacetNormal.php
public static function fromArray(array $stlFacetNormalArray) : STLFacetNormal
    {
        $class = new self();
        $class->setCoordinatesArray($stlFacetNormalArray["coordinates"]);
        $class->setVertex(STLVertex::fromArray($stlFacetNormalArray["vertex"]));
        return $class;
    }
public static function fromArray(array $stlFacetNormalArray) : STLFacetNormal
    {
        $class = new self();
        $class->setCoordinatesArray($stlFacetNormalArray["coordinates"]);
        $class->setVertex(STLVertex::fromArray($stlFacetNormalArray["vertex"]));
        return $class;
    }
public static function fromArray ( array $ stlFacetNormalArray ) : STLFacetNormal { $ class = new self ( ) ; $ class -> setCoordinatesArray ( $ stlFacetNormalArray [ "coordinates" ] ) ; $ class -> setVertex ( STLVertex :: fromArray ( $ stlFacetNormalArray [ "vertex" ] ) ) ; return $ class ; }
Class constructor from an STL facet normal array.

Example facet normal array:
array(
"coordinates" => array(0.5651193, -0.07131607, 0.8219211),
"vertex" => array(
array(
-71.74323, 47.70205, 4.666243
),
array(
-72.13071, 47.70205, 4.932664
),
array(
-72.1506, 47.2273, 4.905148
)
)
)

@param array $stlFacetNormalArray
@return STLFacetNormal
Class constructor from an STL facet normal array .