Autodesk Creative Platform Core Version 1.19.0
A broad and deep collection of 2D and 3D capabilities.

Solid3D Overview

Represents manifold geometry that is water-tight and may contain multiple lumps.

See Also: Solid, Solid.make, Solid.extrude

Introduced in Version: 1.0.0

Class Member Summary

Class Member Details

Mesh3D mesh

Returns the mesh object inside the solid instance.

String toJSON()

Overrides the default serialization process of JSON.stringify method, and returns the serialized JSON with below format

1 Example:

{
   "Verts":  [x1, y1, z1, x2, y2, z2, ...],
   "Tris":   [0, 1, 2, ...],
   "Bounds": [minX, minY, minZ, maxX, maxY, maxZ]
}

Solid3D transform (matrix) | Chainable

Transforms the solid object by the transformation matrix given in tm, which must be a 16-element array of numbers or a Matrix3D instance.

2 Examples:

   // Scale to 2X and translation by 5, 5, 5
   var tm = [
               2, 0, 0, 0,
               0, 2, 0, 0,
               0, 0, 2, 0,
               5, 5, 5, 1
            ];
   solid.transform(tm);
   // Scale to 2X and translation by 5, 5, 5
   var tm = new Matrix3D();
   tm.identity().scaling(2).translation(5, 5, 5);
   solid.transform(tm);