2017 © Pedro Peláez
 

library stl

STL file manipulation library for PHP 7

image

php3d/stl

STL file manipulation library for PHP 7

  • Sunday, July 31, 2016
  • by grosan.flaviu
  • Repository
  • 2 Watchers
  • 6 Stars
  • 96 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 5 % Grown

The README.md

php3d-stl

Build Status Scrutinizer Code Quality Build Status, (*1)

Synopsis

This library provides PHP 7 functionality for reading and writing from and to 3D objects stored in STereoLithography (STL) files, useful for manipulating 3D objects for 3D Printing., (*2)

Set-up

Add this to your composer.json file:, (*3)

  [...]
  "require": {
      [...]
      "php3d/stl": "1.*"
  }

Then run composer:, (*4)

composer.phar install

Examples

Read an STL file:, (*5)

use php3d\stl\STL;
use php3d\stl\STLFacetNormal;

$stl = STL::fromString(file_get_contents("/path/to/file.stl"));

Add a new facet:, (*6)

$stl->addFacetNormal(STLFacetNormal::fromArray(array(
    "coordinates" => array( 1, 2, 3), // Facet normal coordinates.
    "vertex" => array(
        array(
            3, 4, 5
        ),
        array(
            3, 4, 5
        ),
        array(
            3, 4, 5
        )
    )
)));

To split an object:, (*7)

(new STLSplit($stl))->split();

Write back to file:, (*8)

file_put_contents("/path/to/file.stl", $stl->toString());

The Versions

31/07 2016

dev-master

9999999-dev https://github.com/fgheorghe/php3d-stl

STL file manipulation library for PHP 7

  Sources   Download

MIT

The Requires

 

3d stl stereolithography 3d printing

28/07 2016

1.0.2

1.0.2.0 https://github.com/

STL file manipulation library for PHP 7

  Sources   Download

MIT

The Requires

 

3d stl stereolithography 3d printing

25/07 2016

1.0.1

1.0.1.0 https://github.com/

STL file manipulation library for PHP 7

  Sources   Download

MIT

The Requires

 

3d stl stereolithography 3d printing

25/07 2016

1.0.0

1.0.0.0 https://github.com/

STL file manipulation library for PHP 7

  Sources   Download

MIT

The Requires

 

3d stl stereolithography 3d printing