aspose / 3d-sdk-php
A PHP library for communicating with the Aspose.3D Cloud API
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- friendsofphp/php-cs-fixer: ~1.12
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is not auto-updated.
Last update: 2024-11-18 22:57:00 UTC
README
PHP SDK for 3D File Formats
Aspose.3D Cloud SDK for PHP empowers your PHP applications to connect with 3D document formats. The APIs let engineers read, convert, build, alter and control the substance of the 3D document formats in the Cloud. All without any 3D modeling and rendering software installed on the machine.
Process 3D Objects & Files in the Cloud
- Create 3D entities - Box, Sphere, Plane, Torus, Cylinder.
- Perform processing of 3D models and attributes.
- Perform transformation, translation, rotation & scaling of 3D objects.
- Convert 3D files to other format.
- Convert whole of the 3D file or convert a specific part only.
- Extract 3D scenes and export to various formats.
- Perform parametric modeling, 3D modeling & data processing.
- Create cloud-based folder structure & perform cloud-based conversion of 3D files.
- Extract 3D raw data from PDF. Password-protected 3D PDF file supported as well.
- Supports working with triangulate meshes, triangulate whole or part of the 3D scene.
- Remove 3D objects from a scene.
Enhancements Version 20.5
- Added support to read/write more file formats.
- Added support for HTML file format conversion.
- New feature added to Triangulate part of the scene (Specified by OAP) and save the scene to a different file.
Please visit Aspose.3D Cloud 20.5 Release Notes.
Read & Write 3D Formats
Additive Manufacturing Format AMF, 3D Studio 3DS, AVEVA RVM, Google Draco DRC, Collada DAE, AutoCAD DXF, Autodesk FBX, Wavefront OBJ, 3D PDF, Polygon File Format PLY, Standard Triangle Language STL, Universal3D U3D, GL Transmission Format GLTF
Read-Only Formats
Siemens JT, DirectX X, 3D Manufacturing Format 3MF, 3D Studio Max ASE
Write 3D Formats As
HTML
Get Started with Aspose.3D Cloud SDK for PHP
First, register an account at Aspose Cloud Dashboard to get you application information. Next, get the SDK. you can directly use the SDK in your project via source code. Better get it from Packagist distribution as follows.
Instal via Composer
Aspose.3D Cloud SDK for PHP is available on Packagist as 3d-sdk-php
package. Run the following command to get it.
composer require aspose/3d-sdk-php
Use Composer's autoload to start using the SDK.
require_once('vendor/autoload.php');
PDF to PLY in PHP
// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required). $threeDApi = new ThreeDCloudApi('client_credentials', 'MY_CLIENT_ID', 'MY_CLIENT_SECRET'); $name = "template3d.pdf"; $saveOpt = new PlySaveOption(); $saveOpt->setSaveFormat(SaveFormat::PLY); $saveOpt->setFileSystem(new FileSystem()); $saveOpt->getFileSystem()->setFileSystemType(FileSystemType::MemoryFileSystem); $positionComponents = array("x", "y", "z"); $saveOpt->setPositionComponents($positionComponents); $newfilename = "output.ply";; $folder = "3DTest"; $isOverwrite = "true"; $storage = "My_Storage_Name"; $result = $threedApi->postConvertByOpt($name, $saveOpt, $newfilename, $folder, $isOverwrite, $storage);
Aspose.3D Cloud SDKs in Popular Languages
Home | Product Page | Documentation | Live Demo | API Reference | Code Samples | Blog | Free Support | Free Trial