ff true the mesh will be cleaned, if false, the mesh will only be analyzed, with results returned in the promise
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (data)
callbackFunc(data)
Where data is:
data.err = err;
data.numBorders data.numFlippedTriangles data.numHoles data.numNonManifold
Clears the current texture map
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
Generate vertex colors for the polygon context, resulting in a colorized object
true if using Volume Rendering (VR) colorization or false for Transfer Function (TF) colorization
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
Converts a mesh from an vertex buffer represtentation to an index buffer representation. This operation can result in a large reduction in the number of vertices needed to define the mesh. This will also reduce the amount of memory required to store the mesh data.
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
Setting to determine if the polygon rendering should be effected by the cut planes
true if polygons should be clipped by cut planes, false otherwise
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
Setting to determine if texture lighting shoudl be enabled or disabled
true if texture lighting is to be enabled, false otherwise
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
This method determine if shading is enabled for the whole polygon context
true if the entire polygon context shoudl have shading enabled, false otherwise
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
Get the current polygon mesh details and return this from the promse.
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (data)
callbackFunc(data)
Where data is:
data.err data.numVerticies data.numPolygons data.numIndicies
Return the polygon context ID associated with this object
Allows the mesh gradients to be inverted
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
Executes a set of mesh optimization algorithms such as polygon decimation, connected set limitation, and vertex smoothing. This method can perfom all of these operations, or a subset of them.
determings if the connected set reduction operation is run
value between 0 and 100 that sets the connected set size threshold. For example, if a mesh has 100 polygons and islandPercentage is set to 10, then all sets containing 10 or fewer polygons are deleted
determings if the decimate operation is run
value between 0 and 100 that determines the percentage of polygons that will be removed. For example, if set to 75, then 75 percent of the polygons will be removed.
determines if the smoothing operation is run before the decimate operation
determines if the smoothing operation is run after the decimate operation
value between 0 and 1 that determines how aggressively the mesh is smoothed. Higher values equate to more smoothing.
determines if the polygon flip operation is applied
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
When rendeirng polygons on MPR views, you typically render as an outline that intersects with the curent view. The width of the line is specified by this method. This is NOT used when setType is set to lines.
width of the line when rendering an outline.
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
Saves the polygon context to the specifieid file on the server, in either OBJ, STL, or OBJ format.
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
Sets the backface culling mode
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
Sets the texture mapping source to the specified JPEG file.
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
Sets the texture mapping source to the specified rendering engine.
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
Sets a 4x4 matrix for each of the vertices to be multiplied by before being displayed
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
Sets if polygon rendering mode should be lines (as an outline) or triangles
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
This method sets the color for the entire polygon context
color to be applied to the entire polygon context
This is an asynchronous method that returns a Promise as follows:
Promise .then() .catch (err: ReturnCode )
callbackFunc(err: ReturnCode )
Generated using TypeDoc
Converts a mesh to a manifold representation for compatibility with a 3D printer. A manifold mesh has no holes, border edges, inverted triangles, or intersecting and interior polygons. Not all meshes can be cleaned in a single operation. Prior application of parameters in the Optimize function may be necessary to successfully clean a mesh.