Mesh creation and loading
[Desktop Automation]
Methods
Name | Syntax | Description |
---|---|---|
createheightmapmesh | Mesh = system:createheightmapmesh(filename:String, width:integer, height:integer, depth:integer, invert:Boolean, mingray:integer); | Converts JPG, PNG, or BMP bitmap file data into a continuous relief mesh based on grayscale values at one quad of triangles per pixel. mingray , ranging from 0 to 255, sets a minimum gray value before conversion but after inversion; any pixel with a grayscale value lower than this number is assumed 0 instead. Invert converts the image to its negative before applying the threshold. |
createimagemesh | Mesh = system:createimagemesh(filename:String, width:integer, height:integer, depth:integer, treshhold:integer); | Converts JPG, PNG, or BMP bitmap file data into a two-level relief mesh. threshold , ranging from 0 to 255, splits the grayscale ranges within which pixels are either omitted from or are admitted to the conversion. |
createtextmesh | Mesh=system:createtextmesh(text:String, width:integer, height:integer; depth:integer) | Creates a lettering mesh from a text string |
createmesh | system:createmesh(); | Creates a mesh with no triangles |
load3ds | system:load3ds(filename:String); | Loads a 3DS file |
load3mf | system:load3mf(filename:String); | Loads a 3MF file |
loadamf | system:loadamf(filename:String); | Loads an AMF file |
loadgts | system:loadgts(filename:String); | Loads a GTS file |
loadncm | system:loadncm(filename:String); | Loads an NCM file |
loadobj | system:loadobj(filename:String); | Loads an OBJ file |
loadply | system:loadply(filename:String); | Loads a PLY file |
loadstl | system:loadstl(filename:String); | Loads an STL file |
loadvoxel | system:loadvoxel(filename:String); | Loads an SVX file |
loadvrml | system:loadvrml(filename:String); | Loads a VRML file |
loadx3d | system:loadx3d(filename:String); | Loads an X3D file |
loadzpr | system:loadzpr(filename:String); | Loads a ZPR file |