Aspose.3D for Node.js via Java is an extensible and feature rich API that integrates 3D file generation, manipulation, conversion, and processing functions into your own Node.js application.API supports Discreet3DS, WavefrontOBJ, FBX (ASCII, Binary), STL (ASCII, Binary), Universal3D, Collada, glTF, GLB, PLY, DirectX, Google Draco file formats and more. Developers can create, read, convert, modify and control the substance of 3D document formats easily.
- Generate 3D files via API or using templates.
- Convert 3D files to other supported formats.
- Create 3D model and change its size.
- Change the position of the 3D model.
3D: 3DS, 3MF, AMF, ASE, DAE, DXF, DRC, FBX, GLTF, GLB, JT, OBJ, PLY, RVM, STL, U3D, VRML, X Images: JPG, JPEG, PNG, BMP, TIFF, GIF, TGA
Fixed Layout: PDF 3D: 3DS, AMF, RVM, GLTF, GLB, DRC, DAE, FBX, OBJ, STL, U3D, PLY, USD, USDZ Microsoft: DOCX, XLSX, PPTX Web: HTML
var aspose = aspose || {};
aspose.threed = require("aspose.threed");
var scene = new aspose.threed.Scene();
var box=new aspose.threed.Box();
scene.getRootNode().createChildNode(box);
scene.save("out.stl");
var aspose = aspose || {};
aspose.threed = require("./lib/aspose.threed");
var scene = new aspose.threed.Scene();
var plane=new aspose.threed.Plane();
plane.setUp(new aspose.threed.Vector3(1, 1, 3));
scene.getRootNode().createChildNode(plane);
scene.save("ChangePlaneOrientation.obj");
var aspose = aspose || {};
aspose.threed = require("./lib/aspose.threed");
// Create a scene
var scene = new aspose.threed.Scene();
// Initialize cylinder
var cylinder1 =new aspose.threed.Cylinder(2, 2, 10, 20, 1, false);
// Set OffsetTop
cylinder1.setOffsetTop(new aspose.threed.Vector3(5, 3, 0));
// Create ChildNode
var node1=scene.getRootNode().createChildNode(cylinder1);
node1.getTransform().setTranslation(new aspose.threed.Vector3(10, 0, 0));
// Initialize second cylinder without customized OffsetTop
var cylinder2 =new aspose.threed.Cylinder(2, 2, 10, 20, 1, false);
// Create ChildNode
scene.getRootNode().createChildNode(cylinder2);
// Save
scene.save("CustomizedOffsetTopCylinder.obj");
var aspose = aspose || {};
aspose.threed = require("./lib/aspose.threed");
// initialize a scene
var scene = new aspose.threed.Scene();
// initialize a Sphere
var sphere=new aspose.threed.Sphere();
// set radius
sphere.setRadius(10);
// add sphere to the scene
scene.getRootNode().createChildNode(sphere);
// save scene
scene.save("sphere.obj");
Product Page | Product Documentation | Blog | API Reference | Source Code Samples | Free Support | Temporary License