FormIt Plugin API v25.0.0 (2025.0.0)
Loading...
Searching...
No Matches
FormIt.Utils API

Description

Functions

json FormIt.Utils.DecodeBase64Bytes (decodeBytes)
 Decode a vector of bytes from base64 format Parameters: In: bytes to decode Out: decoded bytes.
 
json FormIt.Utils.EncodeBase64Bytes (encodeBytes)
 Encode a vector of bytes to base64 format Parameters: In: bytes to encode Out: encoded string
 
json FormIt.Utils.NewGuid ()
 NewGuid() function.
 
json FormIt.Utils.GuidFromString (hexStr)
 GuidFromString() function.
 
json FormIt.Utils.ModelStatisticsSummary (nHistoryId)
 Get the model summary statistics data.
 

Function Documentation

◆ DecodeBase64Bytes()

json FormIt.Utils.DecodeBase64Bytes ( decodeBytes  )

Decode a vector of bytes from base64 format Parameters: In: bytes to decode Out: decoded bytes.

Parameters
[in]decodeBytesArray of char
Returns
outBytes

◆ EncodeBase64Bytes()

json FormIt.Utils.EncodeBase64Bytes ( encodeBytes  )

Encode a vector of bytes to base64 format Parameters: In: bytes to encode Out: encoded string

Parameters
[in]encodeBytesArray of char
Returns
resultString

◆ GuidFromString()

json FormIt.Utils.GuidFromString ( hexStr  )

GuidFromString() function.

Parameters
[in]hexStrString
Returns
JSON_UNDEFINED, i.e. {}

◆ ModelStatisticsSummary()

json FormIt.Utils.ModelStatisticsSummary ( nHistoryId  )

Get the model summary statistics data.

Note we could also return data per history but for now that is not required and in large models could be expensive to pass through the emscripten boundary. For now we are mostly interested in the number of triangles. Parameters: In: nHistoryId Out: json object containing the results.

Parameters
[in]nHistoryIdint
Returns
JSON_UNDEFINED, i.e. {}

◆ NewGuid()

json FormIt.Utils.NewGuid ( )

NewGuid() function.

Returns
{...}